X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fimaging%2Fcommon%2Fnative-image-source-factory.h;h=f334f65518223f1cf22335fc6f83ca5123cc6c09;hb=9e785224f3659b53537ebbe6e15f999f5d5e64a0;hp=3f3d759887a551c2211cf85eb0d87f160d4782a5;hpb=fe8f8ee27e49309bfe4b1400ee0c279da3d8336d;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git 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 --- 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) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 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. @@ -18,8 +18,12 @@ * */ +// EXTERNAL INCLUDES #include + +// INTERNAL INCLUDES #include +#include namespace Dali { @@ -29,21 +33,27 @@ namespace Adaptor { class NativeImageSource; -namespace NativeImageSourceFactory +class NativeImageSourceQueue; + +class NativeImageSourceFactory { +public: -__attribute__((weak)) -std::unique_ptr 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 -#endif //TIZEN_ORG_NATIVE_IMAGE_SOURCE_FACTORY_H +#endif // DALI_INTERNAL_NATIVE_IMAGE_SOURCE_FACTORY_H