X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali%2Finternal%2Fcommon%2Fcore-impl.h;h=0e745d7c145d20a1db71c0e3a465d375dca854ad;hb=5273729f378b095959406a31664af3bab60fb385;hp=d40f827ed679dac6f2c74d114ea7c1df1df2133a;hpb=449cde6cfe99f1e9297bec8cdb5cedff37502afb;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/common/core-impl.h b/dali/internal/common/core-impl.h index d40f827..0e745d7 100644 --- a/dali/internal/common/core-impl.h +++ b/dali/internal/common/core-impl.h @@ -1,8 +1,8 @@ -#ifndef __DALI_INTERNAL_CORE_H__ -#define __DALI_INTERNAL_CORE_H__ +#ifndef DALI_INTERNAL_CORE_H +#define DALI_INTERNAL_CORE_H /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2017 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. @@ -21,10 +21,10 @@ // INTERNAL INCLUDES #include #include +#include #include #include #include -#include #include #include @@ -53,9 +53,6 @@ class AnimationPlaylist; class PropertyNotificationManager; class EventProcessor; class GestureEventProcessor; -class ResourceClient; -class ResourceManager; -class ImageFactory; class ShaderFactory; class TouchResampler; class RelayoutController; @@ -65,8 +62,7 @@ namespace SceneGraph class UpdateManager; class RenderManager; class DiscardQueue; -class TextureCacheDispatcher; -class GeometryBatcher; +class RenderTaskProcessor; } /** @@ -84,7 +80,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 @@ -117,6 +116,11 @@ public: void SurfaceResized(unsigned int width, unsigned int height); /** + * @copydoc Dali::Integration::Core::SetTopMargin( unsigned int margin ) + */ + void SetTopMargin( unsigned int margin ); + + /** * @copydoc Dali::Integration::Core::SetDpi(unsigned int, unsigned int) */ void SetDpi(unsigned int dpiHorizontal, unsigned int dpiVertical); @@ -129,7 +133,7 @@ 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() @@ -137,16 +141,6 @@ public: void Render( Integration::RenderStatus& status ); /** - * @copydoc Dali::Integration::Core::Suspend() - */ - void Suspend(); - - /** - * @copydoc Dali::Integration::Core::Resume() - */ - void Resume(); - - /** * @copydoc Dali::Integration::Core::SceneCreated() */ void SceneCreated(); @@ -226,24 +220,6 @@ private: // for use by ThreadLocalStorage NotificationManager& GetNotificationManager(); /** - * Returns the Resource Manager. - * @return A reference to the Resource Manager. - */ - ResourceManager& GetResourceManager(); - - /** - * Returns the Resource client. - * @return A reference to the Resource Client. - */ - ResourceClient& GetResourceClient(); - - /** - * Returns the Image factory - * @return A reference to the Image factory. - */ - ImageFactory& GetImageFactory(); - - /** * Returns the Shader factory * @return A reference to the Shader binary factory. */ @@ -280,25 +256,20 @@ 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 - ImageFactory* mImageFactory; ///< Image resource factory - ShaderFactory* mShaderFactory; ///< Shader resource factory - ResourceClient* mResourceClient; ///< Asynchronous Resource Loading - ResourceManager* mResourceManager; ///< Asynchronous Resource Loading IntrusivePtr< RelayoutController > mRelayoutController; ///< Size negotiation relayout controller - SceneGraph::GeometryBatcher* mGeometryBatcher; ///< Instance of the geometry batcher - 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 + friend class ThreadLocalStorage; }; @@ -307,4 +278,4 @@ private: } // namespace Dali -#endif // __DALI_INTERNAL_CORE_H__ +#endif // DALI_INTERNAL_CORE_H