X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=adaptors%2Ftizen%2Fnative-image-source-impl.h;h=505d8b23107a5c84c261a64b60435e551ff2e48f;hb=42a87676ee90611c5f6085187919fb11e10b19f5;hp=5e251b7395a5ccb8365a3cfa2ce99aa5ee0e89c3;hpb=4007cf03ac87c757328d571d8be81a0b511ba3e2;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/adaptors/tizen/native-image-source-impl.h b/adaptors/tizen/native-image-source-impl.h old mode 100644 new mode 100755 index 5e251b7..505d8b2 --- a/adaptors/tizen/native-image-source-impl.h +++ b/adaptors/tizen/native-image-source-impl.h @@ -21,6 +21,7 @@ // EXTERNAL INCLUDES #include #include +#include // INTERNAL INCLUDES #include @@ -33,6 +34,7 @@ namespace Internal namespace Adaptor { + class EglImageExtensions; /** @@ -77,6 +79,11 @@ public: void SetSource( Any source ); /** + * @copydoc Dali::NativeImageSource::IsColorDepthSupported( ColorDepth colorDepth ) + */ + bool IsColorDepthSupported( Dali::NativeImageSource::ColorDepth colorDepth ); + + /** * destructor */ ~NativeImageSource(); @@ -97,6 +104,11 @@ public: unsigned int TargetTexture(); /** + * @copydoc Dali::NativeImageSource::PrepareTexture() + */ + void PrepareTexture(); + + /** * @copydoc Dali::NativeImageSource::GetWidth() */ unsigned int GetWidth() const @@ -138,6 +150,11 @@ public: */ const char* GetCustomSamplerTypename(); + /** + * @copydoc Dali::NativeImageInterface::Extension::GetEglImageTextureTarget() + */ + int GetEglImageTextureTarget(); + private: /** @@ -158,16 +175,20 @@ private: tbm_surface_h GetSurfaceFromAny( Any source ) const; + bool CheckBlending( tbm_format format ); + private: unsigned int mWidth; ///< image width unsigned int mHeight; ///< image heights - bool mOwnTbmsurface; ///< Whether we created pixmap or not - tbm_surface_h mTbmsurface; + bool mOwnTbmSurface; ///< Whether we created pixmap or not + tbm_surface_h mTbmSurface; + tbm_format mTbmFormat; bool mBlendingRequired; ///< Whether blending is required Dali::NativeImageSource::ColorDepth mColorDepth; ///< color depth of image void* mEglImageKHR; ///< From EGL extension EglImageExtensions* mEglImageExtensions; ///< The EGL Image Extensions + bool mSetSource; }; } // namespace Adaptor