X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fanimated-vector-image%2Fanimated-vector-image-visual.h;h=78848d0d5cf491152503499a0f142dfe017af8e2;hp=5d871f0d48c16e96a3f838e4b7b101721c71d596;hb=2c6a6697e24d39ef061f134b39f30acc5c47b0cb;hpb=072e6002280ed51a637ed54e0451bdbbe3c4ec79 diff --git a/dali-toolkit/internal/visuals/animated-vector-image/animated-vector-image-visual.h b/dali-toolkit/internal/visuals/animated-vector-image/animated-vector-image-visual.h index 5d871f0..78848d0 100644 --- a/dali-toolkit/internal/visuals/animated-vector-image/animated-vector-image-visual.h +++ b/dali-toolkit/internal/visuals/animated-vector-image/animated-vector-image-visual.h @@ -21,13 +21,14 @@ // EXTERNAL INCLUDES #include #include -#include +#include +#include // INTERNAL INCLUDES #include #include #include -#include +#include namespace Dali { @@ -39,7 +40,6 @@ namespace Internal { class ImageVisualShaderFactory; -class VectorRasterizeThread; class AnimatedVectorImageVisual; using AnimatedVectorImageVisualPtr = IntrusivePtr< AnimatedVectorImageVisual >; @@ -54,7 +54,7 @@ using AnimatedVectorImageVisualPtr = IntrusivePtr< AnimatedVectorImageVisual >; * | url | STRING | * */ -class AnimatedVectorImageVisual: public Visual::Base +class AnimatedVectorImageVisual: public Visual::Base, public ConnectionTracker { public: @@ -147,15 +147,40 @@ private: void DoSetProperty( Property::Index index, const Property::Value& value ); /** - * @brief Event callback from rasterize thread. This is called after the first frame is ready. + * @brief Called when the texture upload is completed. */ - void OnResourceReady(); + void OnUploadCompleted(); /** * @brief Event callback from rasterize thread. This is called after the animation is finished. */ void OnAnimationFinished(); + /** + * @brief Send animation data to the rasterize thread. + */ + void SendAnimationData(); + + /** + * @brief Set the vector image size. + */ + void SetVectorImageSize(); + + /** + * @brief Callback when the world scale factor changes. + */ + void OnScaleNotification( PropertyNotification& source ); + + /** + * @brief Callback when the size changes. + */ + void OnSizeNotification( PropertyNotification& source ); + + /** + * @brief Callback when the visibility of the actor is changed. + */ + void OnVisibilityChanged( Actor actor, bool visible, DevelActor::VisibilityChange::Type type ); + // Undefined AnimatedVectorImageVisual( const AnimatedVectorImageVisual& visual ) = delete; @@ -163,12 +188,22 @@ private: AnimatedVectorImageVisual& operator=( const AnimatedVectorImageVisual& visual ) = delete; private: - ImageVisualShaderFactory& mImageVisualShaderFactory; VisualUrl mUrl; - VectorRasterizeThread mVectorRasterizeThread; + VectorAnimationTaskPtr mVectorAnimationTask; + ImageVisualShaderFactory& mImageVisualShaderFactory; + PropertyNotification mScaleNotification; + PropertyNotification mSizeNotification; Vector2 mVisualSize; + Vector2 mVisualScale; WeakHandle< Actor > mPlacementActor; + int32_t mLoopCount; + uint32_t mStartFrame; + uint32_t mEndFrame; + uint32_t mResendFlag; DevelAnimatedVectorImageVisual::Action::Type mActionStatus; + DevelImageVisual::StopBehavior::Type mStopBehavior; + DevelImageVisual::LoopingMode::Type mLoopingMode; + bool mRendererAdded; }; } // namespace Internal