Add post processor 66/257266/1
authorseungho <sbsh.baek@samsung.com>
Thu, 22 Apr 2021 01:52:59 +0000 (10:52 +0900)
committerseungho <sbsh.baek@samsung.com>
Thu, 22 Apr 2021 01:53:25 +0000 (10:53 +0900)
Change-Id: I557a9b372d758dbef8412db5cfab800ebb8f713e
Signed-off-by: seungho <sbsh.baek@samsung.com>
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-adaptor-impl.h
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-adaptor.cpp
dali-toolkit/internal/controls/canvas-view/canvas-view-impl.cpp
dali-toolkit/internal/controls/canvas-view/canvas-view-impl.h
dali-toolkit/internal/visuals/animated-vector-image/vector-animation-manager.cpp
dali-toolkit/internal/visuals/animated-vector-image/vector-animation-manager.h
dali-toolkit/internal/visuals/svg/svg-rasterize-thread.cpp
dali-toolkit/internal/visuals/svg/svg-rasterize-thread.h

index c3616b2..4970dc4 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_TOOLKIT_ADAPTOR_IMPL_H
 
 /*
 #define DALI_TOOLKIT_ADAPTOR_IMPL_H
 
 /*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 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.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -84,8 +84,8 @@ public:
   void AddWindow( Internal::Adaptor::SceneHolder* window );
   void RemoveWindow( Internal::Adaptor::SceneHolder* window );
 
   void AddWindow( Internal::Adaptor::SceneHolder* window );
   void RemoveWindow( Internal::Adaptor::SceneHolder* window );
 
-  void RegisterProcessor( Integration::Processor& processor );
-  void UnregisterProcessor( Integration::Processor& processor );
+  void RegisterProcessor( Integration::Processor& processor, bool postProcessor = false);
+  void UnregisterProcessor( Integration::Processor& processor, bool postProcessor = false);
 
   void SetApplication( Dali::TestApplication& testApplication );
 
 
   void SetApplication( Dali::TestApplication& testApplication );
 
index 1fe86c3..8f3095f 100644 (file)
@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 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.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -172,16 +172,16 @@ void Adaptor::RemoveWindow( Internal::Adaptor::SceneHolder* window )
   }
 }
 
   }
 }
 
-void Adaptor::RegisterProcessor( Integration::Processor& processor )
+void Adaptor::RegisterProcessor( Integration::Processor& processor, bool postProcessor )
 {
   Integration::Core& core = mTestApplication->GetCore();
 {
   Integration::Core& core = mTestApplication->GetCore();
-  core.RegisterProcessor( processor );
+  core.RegisterProcessor( processor, postProcessor );
 }
 
 }
 
-void Adaptor::UnregisterProcessor( Integration::Processor& processor )
+void Adaptor::UnregisterProcessor( Integration::Processor& processor, bool postProcessor )
 {
   Integration::Core& core = mTestApplication->GetCore();
 {
   Integration::Core& core = mTestApplication->GetCore();
-  core.UnregisterProcessor( processor );
+  core.UnregisterProcessor( processor, postProcessor );
 }
 
 void Adaptor::SetApplication( Dali::TestApplication& testApplication )
 }
 
 void Adaptor::SetApplication( Dali::TestApplication& testApplication )
@@ -368,14 +368,14 @@ const LogFactoryInterface& Adaptor::GetLogFactory()
   return *gLogFactory;
 }
 
   return *gLogFactory;
 }
 
-void Adaptor::RegisterProcessor( Integration::Processor& processor )
+void Adaptor::RegisterProcessor( Integration::Processor& processor, bool postProcessor)
 {
 {
-  mImpl->RegisterProcessor( processor );
+  mImpl->RegisterProcessor( processor, postProcessor );
 }
 
 }
 
-void Adaptor::UnregisterProcessor( Integration::Processor& processor )
+void Adaptor::UnregisterProcessor( Integration::Processor& processor, bool postProcessor)
 {
 {
-  mImpl->UnregisterProcessor( processor );
+  mImpl->UnregisterProcessor( processor, postProcessor );
 }
 
 } // namespace Dali
 }
 
 } // namespace Dali
index 07c77d9..342784a 100644 (file)
@@ -120,7 +120,7 @@ void CanvasView::OnSizeSet(const Vector3& targetSize)
   mChanged = true;
 }
 
   mChanged = true;
 }
 
-void CanvasView::Process()
+void CanvasView::Process(bool postProcessor)
 {
   if(!mCanvasRenderer)
   {
 {
   if(!mCanvasRenderer)
   {
index bc5c708..b2d5775 100644 (file)
@@ -82,7 +82,7 @@ protected: // Implementation of Processor
   /**
    * @copydoc Dali::Integration::Processor::Process()
    */
   /**
    * @copydoc Dali::Integration::Processor::Process()
    */
-  void Process() override;
+  void Process(bool postProcessor) override;
 
 private:
   /**
 
 private:
   /**
index 2286ea0..f23439d 100644 (file)
@@ -120,7 +120,7 @@ void VectorAnimationManager::UnregisterEventCallback(CallbackBase* callback)
   }
 }
 
   }
 }
 
-void VectorAnimationManager::Process()
+void VectorAnimationManager::Process(bool postProcessor)
 {
   for(auto&& iter : mEventCallbacks)
   {
 {
   for(auto&& iter : mEventCallbacks)
   {
index c52b800..fe6b87a 100644 (file)
@@ -92,7 +92,7 @@ protected: // Implementation of Processor
   /**
    * @copydoc Dali::Integration::Processor::Process()
    */
   /**
    * @copydoc Dali::Integration::Processor::Process()
    */
-  void Process() override;
+  void Process(bool postProcessor) override;
 
 private:
   // Undefined
 
 private:
   // Undefined
index 767bfb0..273f08b 100644 (file)
@@ -278,7 +278,7 @@ void SvgRasterizeThread::ApplyRasterizedSVGToSampler()
   UnregisterProcessor();
 }
 
   UnregisterProcessor();
 }
 
-void SvgRasterizeThread::Process()
+void SvgRasterizeThread::Process(bool postProcessor)
 {
   ApplyRasterizedSVGToSampler();
 }
 {
   ApplyRasterizedSVGToSampler();
 }
index b915b13..0204bef 100644 (file)
@@ -166,7 +166,7 @@ public:
   /**
    * @copydoc Dali::Integration::Processor::Process()
    */
   /**
    * @copydoc Dali::Integration::Processor::Process()
    */
-  void Process() override;
+  void Process(bool postProcessor) override;
 
 private:
   /**
 
 private:
   /**