projects
/
platform
/
core
/
uifw
/
dali-adaptor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a method to NativeImageSourceQueue
[platform/core/uifw/dali-adaptor.git]
/
dali
/
internal
/
imaging
/
common
/
native-image-source-factory.h
diff --git
a/dali/internal/imaging/common/native-image-source-factory.h
b/dali/internal/imaging/common/native-image-source-factory.h
index
3f3d759
..
f334f65
100644
(file)
--- a/
dali/internal/imaging/common/native-image-source-factory.h
+++ b/
dali/internal/imaging/common/native-image-source-factory.h
@@
-1,8
+1,8
@@
-#ifndef
TIZEN_ORG
_NATIVE_IMAGE_SOURCE_FACTORY_H
-#define
TIZEN_ORG
_NATIVE_IMAGE_SOURCE_FACTORY_H
+#ifndef
DALI_INTERNAL
_NATIVE_IMAGE_SOURCE_FACTORY_H
+#define
DALI_INTERNAL
_NATIVE_IMAGE_SOURCE_FACTORY_H
/*
/*
- * Copyright (c) 201
4
Samsung Electronics Co., Ltd.
+ * Copyright (c) 201
8
Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-18,8
+18,12
@@
*
*/
*
*/
+// EXTERNAL INCLUDES
#include <memory>
#include <memory>
+
+// INTERNAL INCLUDES
#include <dali/public-api/adaptor-framework/native-image-source.h>
#include <dali/public-api/adaptor-framework/native-image-source.h>
+#include <dali/devel-api/adaptor-framework/native-image-source-queue.h>
namespace Dali
{
namespace Dali
{
@@
-29,21
+33,27
@@
namespace Adaptor
{
class NativeImageSource;
{
class NativeImageSource;
-namespace NativeImageSourceFactory
+class NativeImageSourceQueue;
+
+class NativeImageSourceFactory
{
{
+public:
-__attribute__((weak))
-std::unique_ptr<Internal::Adaptor::NativeImageSource> New(unsigned int width,
- unsigned int height,
- Dali::NativeImageSource::ColorDepth depth,
- Any nativeImageSource);
+ NativeImageSourceFactory() = default;
+ virtual ~NativeImageSourceFactory() = default;
-}
+ virtual std::unique_ptr< NativeImageSource > CreateNativeImageSource( uint32_t width, uint32_t height,
+ Dali::NativeImageSource::ColorDepth depth, Any nativeImageSource ) = 0;
-} // Adaptor
+ virtual std::unique_ptr< NativeImageSourceQueue > CreateNativeImageSourceQueue( uint32_t width, uint32_t height,
+ Dali::NativeImageSourceQueue::ColorDepth depth, Any nativeImageSourceQueue ) = 0;
-}
// Internal
+}
;
+extern std::unique_ptr< NativeImageSourceFactory > GetNativeImageSourceFactory();
+
+} // Adaptor
+} // Internal
} // Dali
} // Dali
-#endif //
TIZEN_ORG
_NATIVE_IMAGE_SOURCE_FACTORY_H
+#endif //
DALI_INTERNAL
_NATIVE_IMAGE_SOURCE_FACTORY_H