mRenderer(),
mWidth( 0 ),
mHeight( 0 ),
- mPreviousFrame( 0 )
+ mPreviousFrame( 0 ),
+ mFrameRate( 60.0f )
{
+ mCount++;
+
+ if( mCount == 2 )
+ {
+ mFrameRate = 0.1f;
+ }
+ }
+
+ ~VectorAnimationRenderer()
+ {
+ mCount--;
}
void SetRenderer( Dali::Renderer renderer )
float GetFrameRate() const
{
- return 60.0f;
+ return mFrameRate;
}
void GetDefaultSize( uint32_t& width, uint32_t& height ) const
public:
+ static uint32_t mCount;
+
std::string mUrl;
Dali::Renderer mRenderer;
uint32_t mWidth;
uint32_t mHeight;
uint32_t mPreviousFrame;
+ float mFrameRate;
Dali::VectorAnimationRenderer::UploadCompletedSignalType mUploadCompletedSignal;
};
+uint32_t VectorAnimationRenderer::mCount = 0;
+
inline VectorAnimationRenderer& GetImplementation( Dali::VectorAnimationRenderer& renderer )
{
DALI_ASSERT_ALWAYS( renderer && "VectorAnimationRenderer handle is empty." );