[Tizen] Print processor name for debug 20/303120/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 19 Dec 2023 04:17:15 +0000 (13:17 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Wed, 20 Dec 2023 06:05:06 +0000 (15:05 +0900)
Change-Id: Iefc357da0e56ed2c482c89a0a819b997aa953fa3
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali-extension/internal/rive-animation-view/animation-renderer/rive-animation-renderer-manager.h [changed mode: 0755->0644]
dali-extension/internal/rive-animation-view/rive-animation-manager.h
dali-extension/vector-animation-renderer/vector-animation-plugin-manager.h [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index d760654..760d59f
@@ -2,7 +2,7 @@
 #define DALI_EXTENSION_INTERNAL_RIVE_ANIMATION_RENDERER_MANAGER_H
 
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
  */
 
 // EXTERNAL INCLUDES
-#include <dali/public-api/common/vector-wrapper.h>
-#include <dali/devel-api/threading/mutex.h>
 #include <dali/devel-api/adaptor-framework/event-thread-callback.h>
+#include <dali/devel-api/threading/mutex.h>
 #include <dali/integration-api/processor-interface.h>
+#include <dali/public-api/common/vector-wrapper.h>
 #include <memory>
 
 // INTERNAL INCLUDES
@@ -34,14 +34,12 @@ namespace Extension
 {
 namespace Internal
 {
-
 /**
  * @brief Rive animation renderer manager
  */
 class RiveAnimationRendererManager : public Integration::Processor
 {
 public:
-
   /**
    * @brief Create or retrieve RiveAnimationRendererManager singleton.
    *
@@ -69,21 +67,26 @@ public:
   void TriggerEvent(RiveAnimationRendererEventHandler& handler);
 
 protected: // Implementation of Processor
-
   /**
    * @copydoc Dali::Integration::Processor::Process()
    */
   void Process(bool postProcessor) override;
 
-private:
+  /**
+   * @copydoc Dali::Integration::Processor::GetProcessorName()
+   */
+  std::string_view GetProcessorName() const override
+  {
+    return "RiveAnimationRendererManager";
+  }
 
+private:
   /**
    * @brief Event callback to process events.
    */
   void OnEventTriggered();
 
 private:
-
   /**
    * @brief Constructor.
    */
@@ -101,7 +104,6 @@ private:
   RiveAnimationRendererManager& operator=(const RiveAnimationRendererManager&) = delete;
 
 private:
-
   std::vector<RiveAnimationRendererEventHandler*> mEventHandlers;
   std::vector<RiveAnimationRendererEventHandler*> mTriggeredHandlers;
   Dali::Mutex                                     mMutex;
index ba08c60..73bb14b 100644 (file)
@@ -99,6 +99,14 @@ protected: // Implementation of Processor
    */
   void Process(bool postProcessor) override;
 
+  /**
+   * @copydoc Dali::Integration::Processor::GetProcessorName()
+   */
+  std::string_view GetProcessorName() const override
+  {
+    return "RiveAnimationManager";
+  }
+
 private:
   // Undefined
   RiveAnimationManager(const RiveAnimationManager& manager) = delete;
old mode 100755 (executable)
new mode 100644 (file)
index f973003..540d48e
  */
 
 // EXTERNAL INCLUDES
-#include <dali/public-api/common/vector-wrapper.h>
-#include <dali/devel-api/threading/mutex.h>
 #include <dali/devel-api/adaptor-framework/event-thread-callback.h>
+#include <dali/devel-api/threading/mutex.h>
 #include <dali/integration-api/processor-interface.h>
+#include <dali/public-api/common/vector-wrapper.h>
 #include <memory>
 
 // INTERNAL INCLUDES
 
 namespace Dali
 {
-
 namespace Plugin
 {
-
 /**
  * @brief Tizen vector animation manager
  */
 class VectorAnimationPluginManager : public Integration::Processor
 {
 public:
-
   /**
    * @brief Create or retrieve VectorAnimationPluginManager singleton.
    *
@@ -53,36 +50,41 @@ public:
    *
    * @param handler The event handler to add.
    */
-  void AddEventHandler( VectorAnimationEventHandler& handler );
+  void AddEventHandler(VectorAnimationEventHandler& handler);
 
   /**
    * @brief Remove the event handler.
    *
    * @param handler The event handler to remove.
    */
-  void RemoveEventHandler( VectorAnimationEventHandler& handler );
+  void RemoveEventHandler(VectorAnimationEventHandler& handler);
 
   /**
    * @brief Trigger the event.
    */
-  void TriggerEvent( VectorAnimationEventHandler& handler );
+  void TriggerEvent(VectorAnimationEventHandler& handler);
 
 protected: // Implementation of Processor
-
   /**
    * @copydoc Dali::Integration::Processor::Process()
    */
   void Process(bool postProcessor) override;
 
-private:
+  /**
+   * @copydoc Dali::Integration::Processor::GetProcessorName()
+   */
+  std::string_view GetProcessorName() const override
+  {
+    return "VectorAnimationPluginManager";
+  }
 
+private:
   /**
    * @brief Event callback to process events.
    */
   void OnEventTriggered();
 
 private:
-
   /**
    * @brief Constructor.
    */
@@ -94,21 +96,20 @@ private:
   virtual ~VectorAnimationPluginManager();
 
   // Undefined
-  VectorAnimationPluginManager( const VectorAnimationPluginManager& ) = delete;
+  VectorAnimationPluginManager(const VectorAnimationPluginManager&) = delete;
 
   // Undefined
-  VectorAnimationPluginManager& operator=( const VectorAnimationPluginManager& ) = delete;
+  VectorAnimationPluginManager& operator=(const VectorAnimationPluginManager&) = delete;
 
 private:
-
-  std::vector< VectorAnimationEventHandler* > mEventHandlers;
-  std::vector< VectorAnimationEventHandler* > mTriggeredHandlers;
-  Dali::Mutex                                      mMutex;
-  std::unique_ptr< EventThreadCallback >           mEventTrigger;
+  std::vector<VectorAnimationEventHandler*> mEventHandlers;
+  std::vector<VectorAnimationEventHandler*> mTriggeredHandlers;
+  Dali::Mutex                               mMutex;
+  std::unique_ptr<EventThreadCallback>      mEventTrigger;
 };
 
 } // namespace Plugin
 
-} // namespace Dali;
+} // namespace Dali
 
 #endif // DALI_TIZEN_VECTOR_ANIMATION_MANAGER_H