X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fcommon%2Fcore-impl.h;h=d4d19e2f69b5b6fca3937e4fe2faa9b48dd13538;hb=1059695019f9df4774e2754b963966d8c80d5351;hp=cec1eb7648b784c4568ab731d4846713773c8ac6;hpb=09a4ac29b536cd57fc8c25ae586021acfce69c08;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/common/core-impl.h b/dali/internal/common/core-impl.h index cec1eb7..d4d19e2 100644 --- a/dali/internal/common/core-impl.h +++ b/dali/internal/common/core-impl.h @@ -2,7 +2,7 @@ #define DALI_INTERNAL_CORE_H /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2018 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,12 +19,13 @@ */ // INTERNAL INCLUDES +#include #include #include +#include #include #include #include -#include #include #include @@ -33,6 +34,7 @@ namespace Dali namespace Integration { +class Processor; class RenderController; class PlatformAbstraction; class GestureManager; @@ -53,7 +55,6 @@ class AnimationPlaylist; class PropertyNotificationManager; class EventProcessor; class GestureEventProcessor; -class ResourceManager; class ShaderFactory; class TouchResampler; class RelayoutController; @@ -63,7 +64,6 @@ namespace SceneGraph class UpdateManager; class RenderManager; class DiscardQueue; -class TextureCacheDispatcher; class RenderTaskProcessor; } @@ -82,7 +82,10 @@ public: Integration::GlAbstraction& glAbstraction, Integration::GlSyncAbstraction& glSyncAbstraction, Integration::GestureManager& gestureManager, - ResourcePolicy::DataRetention dataRetentionPolicy ); + ResourcePolicy::DataRetention dataRetentionPolicy, + Integration::RenderToFrameBuffer renderToFboEnabled, + Integration::DepthBufferAvailable depthBufferAvailable, + Integration::StencilBufferAvailable stencilBufferAvailable ); /** * Destructor @@ -132,22 +135,12 @@ public: /** * @copydoc Dali::Integration::Core::Update() */ - void Update( float elapsedSeconds, unsigned int lastVSyncTimeMilliseconds, unsigned int nextVSyncTimeMilliseconds, Integration::UpdateStatus& status ); + void Update( float elapsedSeconds, unsigned int lastVSyncTimeMilliseconds, unsigned int nextVSyncTimeMilliseconds, Integration::UpdateStatus& status, bool renderToFboEnabled, bool isRenderingToFbo ); /** * @copydoc Dali::Integration::Core::Render() */ - void Render( Integration::RenderStatus& status ); - - /** - * @copydoc Dali::Integration::Core::Suspend() - */ - void Suspend(); - - /** - * @copydoc Dali::Integration::Core::Resume() - */ - void Resume(); + void Render( Integration::RenderStatus& status, bool forceClear ); /** * @copydoc Dali::Integration::Core::SceneCreated() @@ -196,7 +189,24 @@ public: */ float GetStereoBase() const; -private: // for use by ThreadLocalStorage + + /** + * @copydoc Dali::Integration::Core::RegisterProcessor + */ + void RegisterProcessor( Dali::Integration::Processor& processor ); + + /** + * @copydoc Dali::Integration::Core::UnregisterProcessor + */ + void UnregisterProcessor( Dali::Integration::Processor& processor ); + +private: + /** + * Run each registered processor + */ + void RunProcessors(); + + // for use by ThreadLocalStorage /** * Returns the current stage. @@ -229,12 +239,6 @@ private: // for use by ThreadLocalStorage NotificationManager& GetNotificationManager(); /** - * Returns the Resource Manager. - * @return A reference to the Resource Manager. - */ - ResourceManager& GetResourceManager(); - - /** * Returns the Shader factory * @return A reference to the Shader binary factory. */ @@ -271,23 +275,21 @@ private: Integration::PlatformAbstraction& mPlatform; ///< The interface providing platform specific services. IntrusivePtr mStage; ///< The current stage - GestureEventProcessor* mGestureEventProcessor; ///< The gesture event processor - EventProcessor* mEventProcessor; ///< The event processor - SceneGraph::UpdateManager* mUpdateManager; ///< Update manager - SceneGraph::RenderManager* mRenderManager; ///< Render manager - SceneGraph::DiscardQueue* mDiscardQueue; ///< Used to cleanup nodes & resources when no longer in use. - SceneGraph::TextureCacheDispatcher* mTextureCacheDispatcher; ///< Used to send messages to TextureCache - LockedResourceQueue* mTextureUploadedQueue; ///< Stores resource ids which require post processing after render - NotificationManager* mNotificationManager; ///< Notification manager AnimationPlaylistOwner mAnimationPlaylist; ///< For 'Fire and forget' animation support OwnerPointer mPropertyNotificationManager; ///< For safe signal emmision of property changed notifications - ShaderFactory* mShaderFactory; ///< Shader resource factory - ResourceManager* mResourceManager; ///< Asynchronous Resource Loading IntrusivePtr< RelayoutController > mRelayoutController; ///< Size negotiation relayout controller - SceneGraph::RenderTaskProcessor* mRenderTaskProcessor; ///< Handles the processing of render tasks - bool mIsActive : 1; ///< Whether Core is active or suspended bool mProcessingEvent : 1; ///< True during ProcessEvents() + OwnerPointer mRenderTaskProcessor; ///< Handles the processing of render tasks + OwnerPointer mRenderManager; ///< Render manager + OwnerPointer mUpdateManager; ///< Update manager + OwnerPointer mDiscardQueue; ///< Used to cleanup nodes & resources when no longer in use. + OwnerPointer mShaderFactory; ///< Shader resource factory + OwnerPointer mNotificationManager; ///< Notification manager + OwnerPointer mGestureEventProcessor; ///< The gesture event processor + OwnerPointer mEventProcessor; ///< The event processor + Dali::Vector mProcessors; ///< Registered processors (not owned) + friend class ThreadLocalStorage; };