Revert "[Tizen] (Vector) Remove 'const' from GetLayerInfo method"
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / vector-animation-renderer.cpp
index 8daaba2..f55d839 100755 (executable)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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.
 namespace Dali
 {
 
-VectorAnimationRenderer VectorAnimationRenderer::New( const std::string& url, Renderer renderer, uint32_t width, uint32_t height )
+VectorAnimationRenderer VectorAnimationRenderer::New( const std::string& url )
 {
   Internal::Adaptor::VectorAnimationRendererPtr animationRenderer = Internal::Adaptor::VectorAnimationRenderer::New();
   if( animationRenderer )
   {
-    animationRenderer->Initialize( url, renderer, width, height );
+    animationRenderer->Initialize( url );
   }
 
   return VectorAnimationRenderer( animationRenderer.Get() );
@@ -59,29 +59,44 @@ VectorAnimationRenderer& VectorAnimationRenderer::operator=( const VectorAnimati
   return *this;
 }
 
+void VectorAnimationRenderer::SetRenderer( Renderer renderer )
+{
+  GetImplementation( *this ).SetRenderer( renderer );
+}
+
 void VectorAnimationRenderer::SetSize( uint32_t width, uint32_t height )
 {
   GetImplementation( *this ).SetSize( width, height );
 }
 
-bool VectorAnimationRenderer::StartRender()
+bool VectorAnimationRenderer::Render( uint32_t frameNumber )
 {
-  return GetImplementation( *this ).StartRender();
+  return GetImplementation( *this ).Render( frameNumber );
 }
 
-void VectorAnimationRenderer::StopRender()
+uint32_t VectorAnimationRenderer::GetTotalFrameNumber() const
 {
-  GetImplementation( *this ).StopRender();
+  return GetImplementation( *this ).GetTotalFrameNumber();
 }
 
-void VectorAnimationRenderer::Render( uint32_t frameNumber )
+float VectorAnimationRenderer::GetFrameRate() const
 {
-  GetImplementation( *this ).Render( frameNumber );
+  return GetImplementation( *this ).GetFrameRate();
 }
 
-uint32_t VectorAnimationRenderer::GetTotalFrameNumber()
+void VectorAnimationRenderer::GetDefaultSize( uint32_t& width, uint32_t& height ) const
 {
-  return GetImplementation( *this ).GetTotalFrameNumber();
+  GetImplementation( *this ).GetDefaultSize( width, height );
+}
+
+void VectorAnimationRenderer::GetLayerInfo( Property::Map& map ) const
+{
+  GetImplementation( *this ).GetLayerInfo( map );
+}
+
+VectorAnimationRenderer::UploadCompletedSignalType& VectorAnimationRenderer::UploadCompletedSignal()
+{
+  return GetImplementation( *this ).UploadCompletedSignal();
 }
 
 } // namespace Dali