Revert "[Tizen] SceneHolder sets background color through the Scene to send an inform...
[platform/core/uifw/dali-adaptor.git] / dali / integration-api / render-surface-interface.h
index 501bf62..ad672ca 100644 (file)
@@ -66,7 +66,8 @@ public:
     mGraphics( nullptr ),
     mDisplayConnection( nullptr ),
     mDepthBufferRequired( Integration::DepthBufferAvailable::FALSE ),
-    mStencilBufferRequired( Integration::StencilBufferAvailable::FALSE )
+    mStencilBufferRequired( Integration::StencilBufferAvailable::FALSE ),
+    mBackgroundColor()
   {}
 
   /**
@@ -175,6 +176,24 @@ 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 )