X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=pepper-dali%2Finternal%2Foutput-impl.h;h=a23813816feb1c72c5ff5177dad8415066bbde22;hb=3d372aa910ecc36a50925e4f559e65d000e5eff3;hp=4dc66bb4b2403b5781c60ecb365db838142a5392;hpb=9fc046f0695cf9d0488ec0cc4a5fb55f21d69c72;p=platform%2Fcore%2Fuifw%2Fpepper-dali.git diff --git a/pepper-dali/internal/output-impl.h b/pepper-dali/internal/output-impl.h index 4dc66bb..a238138 100644 --- a/pepper-dali/internal/output-impl.h +++ b/pepper-dali/internal/output-impl.h @@ -27,12 +27,8 @@ #include #include #include -#include #include -// TODO: temp -#include - namespace Dali { @@ -45,7 +41,7 @@ namespace Internal class Output; typedef IntrusivePtr OutputPtr; -class Output : public BaseObject, public ConnectionTracker, public ThreadSynchronizationInterface +class Output : public BaseObject, public ConnectionTracker { public: @@ -62,7 +58,7 @@ public: static void OnStartRepaintLoop( void* data ); static void OnRepaint( void* data, const pepper_list_t* planeList ); static void OnAttachSurface( void* data, pepper_surface_t* surface, int* width, int* height ); - static void OnFlushSurface( void* data, pepper_surface_t* surface, pepper_bool_t* keepBuffer ); + static void OnFlushSurfaceDamage( void* data, pepper_surface_t* surface, pepper_bool_t* keepBuffer ); public: //Signals @@ -91,33 +87,10 @@ private: void OnObjectViewAdded( Pepper::Object object, Pepper::ObjectView objectView ); void OnObjectViewDeleted( Pepper::Object object, Pepper::ObjectView objectView ); -private: // From ThreadSynchronizationInterface - - ///////////////////////////////////////////////////////////////////////////////////////////////// - // Called by the Event Thread if post-rendering is required - ///////////////////////////////////////////////////////////////////////////////////////////////// - - /** - * @copydoc ThreadSynchronizationInterface::PostRenderComplete() - */ - virtual void PostRenderComplete(); - - ///////////////////////////////////////////////////////////////////////////////////////////////// - //// Called by the Render Thread if post-rendering is required - ///////////////////////////////////////////////////////////////////////////////////////////////// - - /** - * @copydoc ThreadSynchronizationInterface::PostRenderStarted() - */ - virtual void PostRenderStarted(); - /** - * @copydoc ThreadSynchronizationInterface::PostRenderStarted() + * Callback function that is called when render thread is completed a frame */ - virtual void PostRenderWaitForCompletion(); - - // TODO: temp - bool OnRenderFinishTimerTick(); + void OnPostRender(); private: @@ -143,10 +116,7 @@ private: // Data Pepper::Output::OutputSignalType mObjectViewAddedSignal; Pepper::Output::OutputSignalType mObjectViewDeletedSignal; - bool mRepaintRequest; - - // TODO: temp - Timer mRenderFinishTimer; + bool mBufferAttached; }; } // namespace Internal