[Tizen] Print log if animation play / stop 05/305705/1
authorEunki Hong <eunkiki.hong@samsung.com>
Tue, 6 Feb 2024 14:57:04 +0000 (23:57 +0900)
committerEunki Hong <eunkiki.hong@samsung.com>
Tue, 6 Feb 2024 14:57:04 +0000 (23:57 +0900)
Change-Id: I503a3608e30105e4b00f91f4c2744aeea84641ec
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
dali/internal/update/animation/scene-graph-animation.cpp

index 78657f9..24f543f 100644 (file)
@@ -221,6 +221,7 @@ void Animation::Pause()
   if(mState == Playing)
   {
     mState = Paused;
+    DALI_LOG_DEBUG_INFO("Animation[%u] with duration %f ms Paused\n", GetNotifyId(), mDurationSeconds * 1000.0f);
   }
 }
 
@@ -243,6 +244,7 @@ void Animation::Bake(BufferIndex bufferIndex, EndAction action)
 
 void Animation::SetAnimatorsActive(bool active)
 {
+  DALI_LOG_DEBUG_INFO("Animation[%u] with duration %f ms %s\n", GetNotifyId(), mDurationSeconds * 1000.0f, active ? "Play" : "Stop");
   for(auto&& item : mAnimators)
   {
     item->SetActive(active);
@@ -297,6 +299,7 @@ void Animation::OnDestroy(BufferIndex bufferIndex)
   }
 
   mState = Destroyed;
+  DALI_LOG_DEBUG_INFO("Animation[%u] with duration %f ms Destroyed\n", GetNotifyId(), mDurationSeconds * 1000.0f);
 }
 
 void Animation::SetLoopingMode(bool loopingMode)