X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fimage%2Fimage-visual.h;h=c2eca0e3c8badb2cc4f28a46db87180e786cdc97;hb=a1e6ba9ce55ab38ec56cbd718cb62624a8c656a3;hp=24d652be248604f04c6db98d07602e5254cf023a;hpb=f4c1e7f52d49c3ce033b9ee4c3c7414b06a22d45;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/image/image-visual.h b/dali-toolkit/internal/visuals/image/image-visual.h index 24d652b..c2eca0e 100644 --- a/dali-toolkit/internal/visuals/image/image-visual.h +++ b/dali-toolkit/internal/visuals/image/image-visual.h @@ -174,9 +174,9 @@ protected: virtual ~ImageVisual(); /** - * @copydoc Visual::Base::DoInitialize + * @copydoc Visual::Base::DoSetProperties */ - virtual void DoInitialize( Actor& actor, const Property::Map& propertyMap ); + virtual void DoSetProperties( const Property::Map& propertyMap ); /** * @copydoc Visual::Base::DoSetOnStage @@ -231,13 +231,15 @@ private: /** * @brief Creates the Dali::Renderer (potentially from the renderer cache), initializing it + * @param[in] textures to use */ - void CreateRenderer(); + void CreateRenderer( TextureSet& textures ); /** * @brief Creates the Dali::Renderer for NativeImage with custom sampler type and prefix, initializing it + * @param NativeImageRenderer */ - void CreateNativeImageRenderer(); + void CreateNativeImageRenderer( NativeImage& nativeImage ); /** * @brief Query whether resources requires to be loaded synchronously. @@ -256,8 +258,9 @@ private: * @param[in] url The URL of the image resource to use. * @param[in] synchronousLoading If true, the resource is loaded synchronously, otherwise asynchronously. * @param[in] attemptAtlasing If true will attempt atlasing, otherwise create unique texture + * @return the texture set to use */ - void CreateTextureSet( Vector4& textureRect, const std::string& url, bool synchronousLoading, bool attemptAtlasing ); + TextureSet CreateTextureSet( Vector4& textureRect, const std::string& url, bool synchronousLoading, bool attemptAtlasing ); /** * Callback function of image resource loading succeed @@ -276,27 +279,20 @@ private: */ void CleanCache(const std::string& url); - /** - * Set shader code for nativeimage if it exists - */ - void SetNativeFragmentShaderCode( Dali::NativeImage& nativeImage ); - private: Image mImage; PixelData mPixels; - TextureSet mTextureSet; Vector4 mPixelArea; WeakHandle mPlacementActor; std::string mImageUrl; - std::string mNativeFragmentShaderCode; Dali::ImageDimensions mDesiredSize; Dali::FittingMode::Type mFittingMode:3; Dali::SamplingMode::Type mSamplingMode:4; Dali::WrapMode::Type mWrapModeU:3; Dali::WrapMode::Type mWrapModeV:3; - bool mNativeImageFlag:1; + }; } // namespace Internal