SceneHolder sets background color through the Scene to send an information to the... 83/207783/5
authorJiyun Yang <ji.yang@samsung.com>
Wed, 12 Jun 2019 11:47:24 +0000 (20:47 +0900)
committerJiyun Yang <ji.yang@samsung.com>
Fri, 21 Jun 2019 04:37:30 +0000 (13:37 +0900)
Change-Id: Iaf55375b3218367efccd1c2d87f002ea4132f58b
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
dali/integration-api/render-surface-interface.h
dali/integration-api/scene-holder-impl.cpp

index ad672ca..501bf62 100644 (file)
@@ -66,8 +66,7 @@ public:
     mGraphics( nullptr ),
     mDisplayConnection( nullptr ),
     mDepthBufferRequired( Integration::DepthBufferAvailable::FALSE ),
-    mStencilBufferRequired( Integration::StencilBufferAvailable::FALSE ),
-    mBackgroundColor()
+    mStencilBufferRequired( Integration::StencilBufferAvailable::FALSE )
   {}
 
   /**
@@ -176,24 +175,6 @@ public:
    */
   virtual Integration::StencilBufferAvailable GetStencilBufferRequired() = 0;
 
-  /**
-   * @brief Sets the background color of the surface.
-   * @param[in] color The new background color
-   */
-  virtual void SetBackgroundColor( Vector4 color ) override
-  {
-    mBackgroundColor = color;
-  }
-
-  /**
-   * @brief Gets the background color of the surface.
-   * @return The background color
-   */
-  virtual Vector4 GetBackgroundColor() override
-  {
-    return mBackgroundColor;
-  }
-
 public:
 
   void SetAdaptor( Dali::Internal::Adaptor::AdaptorInternalServices& adaptor )
index deaf965..64d0a42 100644 (file)
@@ -205,15 +205,15 @@ Dali::RenderSurfaceInterface* SceneHolder::GetSurface() const
 
 void SceneHolder::SetBackgroundColor( const Vector4& color )
 {
-  if ( mSurface )
+  if( mScene )
   {
-    mSurface->SetBackgroundColor( color );
+    mScene.SetBackgroundColor( color );
   }
 }
 
 Vector4 SceneHolder::GetBackgroundColor() const
 {
-  return mSurface ? mSurface->GetBackgroundColor() : Vector4();
+  return mScene ? mScene.GetBackgroundColor() : Color::BLACK;
 }
 
 void SceneHolder::SetAdaptor(Dali::Adaptor& adaptor)