X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fupdate%2Frendering%2Fscene-graph-renderer.h;h=61605b6fcda8152ee199c374dd89978a5922f6a2;hb=be285a5aa0ba77ea635e8d8c2692d585ca30630e;hp=4249b0fe3828ed84c3f49372639746ed44926a9a;hpb=45628564543dd3f9229710ac0661259147353637;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/update/rendering/scene-graph-renderer.h b/dali/internal/update/rendering/scene-graph-renderer.h index 4249b0f..61605b6 100644 --- a/dali/internal/update/rendering/scene-graph-renderer.h +++ b/dali/internal/update/rendering/scene-graph-renderer.h @@ -185,10 +185,10 @@ public: void SetDepthFunction( DepthFunction::Type depthFunction ); /** - * Sets the stencil mode - * @param[in] mode The stencil function + * Sets the render mode + * @param[in] mode The render mode */ - void SetStencilMode( StencilMode::Type mode ); + void SetRenderMode( RenderMode::Type mode ); /** * Sets the stencil function @@ -233,12 +233,6 @@ public: void SetStencilOperationOnZPass( StencilOperation::Type stencilOperationOnZPass ); /** - * Sets whether or not to write to the color buffer - * @param[in] writeToColorBuffer True to write to the color buffer - */ - void SetWriteToColorBuffer( bool writeToColorBuffer ); - - /** * Prepare the object for rendering. * This is called by the UpdateManager when an object is due to be rendered in the current frame. * @param[in] updateBufferIndex The current update buffer index. @@ -381,7 +375,6 @@ private: BlendMode::Type mBlendMode:2; ///< Local copy of the mode of blending DepthWriteMode::Type mDepthWriteMode:2; ///< Local copy of the depth write mode DepthTestMode::Type mDepthTestMode:2; ///< Local copy of the depth test mode - bool mWriteToColorBuffer:1; ///< Local copy of the write to color buffer flag bool mUniformMapChanged[2]; ///< Records if the uniform map has been altered this frame bool mResourcesReady; ///< Set during the Update algorithm; true if the renderer has resources ready for the current frame. @@ -539,14 +532,14 @@ inline void SetDepthFunctionMessage( EventThreadServices& eventThreadServices, c new (slot) LocalType( &renderer, &Renderer::SetDepthFunction, depthFunction ); } -inline void SetStencilModeMessage( EventThreadServices& eventThreadServices, const Renderer& renderer, StencilMode::Type mode ) +inline void SetRenderModeMessage( EventThreadServices& eventThreadServices, const Renderer& renderer, RenderMode::Type mode ) { - typedef MessageValue1< Renderer, StencilMode::Type > LocalType; + typedef MessageValue1< Renderer, RenderMode::Type > LocalType; // Reserve some memory inside the message queue unsigned int* slot = eventThreadServices.ReserveMessageSlot( sizeof( LocalType ) ); - new (slot) LocalType( &renderer, &Renderer::SetStencilMode, mode ); + new (slot) LocalType( &renderer, &Renderer::SetRenderMode, mode ); } inline void SetStencilFunctionMessage( EventThreadServices& eventThreadServices, const Renderer& renderer, StencilFunction::Type stencilFunction ) @@ -619,15 +612,6 @@ inline void SetStencilOperationOnZPassMessage( EventThreadServices& eventThreadS new (slot) LocalType( &renderer, &Renderer::SetStencilOperationOnZPass, stencilOperation ); } -inline void SetWriteToColorBufferMessage( EventThreadServices& eventThreadServices, const Renderer& renderer, bool writeToColorBuffer ) -{ - typedef MessageValue1< Renderer, bool > LocalType; - - // Reserve some memory inside the message queue - unsigned int* slot = eventThreadServices.ReserveMessageSlot( sizeof( LocalType ) ); - - new (slot) LocalType( &renderer, &Renderer::SetWriteToColorBuffer, writeToColorBuffer ); -} } // namespace SceneGraph } // namespace Internal