X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fupdate%2Frendering%2Fscene-graph-renderer.h;h=030d25fba31803ef82f17b1c3cbb9108aaab8268;hb=b08d7b5d2cf90794ac88e71e667f2e6bbbf85923;hp=2ebddf889f52fa5a644027fd79ab96661d01f3f2;hpb=6b0e813ace0d83b593560ce37fb78ab1d7ab7535;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 2ebddf8..030d25f 100644 --- a/dali/internal/update/rendering/scene-graph-renderer.h +++ b/dali/internal/update/rendering/scene-graph-renderer.h @@ -186,16 +186,6 @@ public: void SetDepthFunction( DepthFunction::Type depthFunction ); /** - * Called when an actor with this renderer is added to the stage - */ - void OnStageConnect(); - - /* - * Called when an actor with this renderer is removed from the stage - */ - void OnStageDisconnect(); - - /** * 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. @@ -227,14 +217,6 @@ public: Opacity GetOpacity( BufferIndex updateBufferIndex, const Node& node ) const; /** - * Query whether the renderer is currently in use by an actor on the stage - */ - bool IsReferenced() const - { - return mReferenceCount > 0; - } - - /** * Called by the TextureSet to notify to the renderer that it has changed */ void TextureSetChanged(); @@ -336,7 +318,6 @@ private: size_t mIndexedDrawFirstElement; ///< first element index to be drawn using indexed draw size_t mIndexedDrawElementsCount; ///< number of elements to be drawn using indexed draw unsigned int mBlendBitmask; ///< The bitmask of blending options - unsigned int mReferenceCount; ///< Number of nodes currently using this renderer unsigned int mRegenerateUniformMap; ///< 2 if the map should be regenerated, 1 if it should be copied. unsigned short mResendFlag; ///< Indicate whether data should be resent to the renderer @@ -502,28 +483,6 @@ inline void SetDepthFunctionMessage( EventThreadServices& eventThreadServices, c new (slot) LocalType( &renderer, &Renderer::SetDepthFunction, depthFunction ); } -inline void OnStageConnectMessage( EventThreadServices& eventThreadServices, const Renderer& renderer ) -{ - typedef Message< Renderer > LocalType; - - // Reserve some memory inside the message queue - unsigned int* slot = eventThreadServices.ReserveMessageSlot( sizeof( LocalType ) ); - - // Construct message in the message queue memory; note that delete should not be called on the return value - new (slot) LocalType( &renderer, &Renderer::OnStageConnect ); -} - -inline void OnStageDisconnectMessage( EventThreadServices& eventThreadServices, const Renderer& renderer ) -{ - typedef Message< Renderer > LocalType; - - // Reserve some memory inside the message queue - unsigned int* slot = eventThreadServices.ReserveMessageSlot( sizeof( LocalType ) ); - - // Construct message in the message queue memory; note that delete should not be called on the return value - new (slot) LocalType( &renderer, &Renderer::OnStageDisconnect ); -} - } // namespace SceneGraph } // namespace Internal } // namespace Dali