X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fcommon%2Fstage-impl.cpp;h=3fbdade1c6b59d59fd8fa07b81836f532cf75dfc;hb=ed071a6b23490a5c8adebf4b5531481e2ee4cf83;hp=1cd7cf3783878994d78e3d703f9d1f2c7a74c555;hpb=ddb59ffd92705acd5b3c75be4533fecad4ca758b;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/common/stage-impl.cpp b/dali/internal/event/common/stage-impl.cpp index 1cd7cf3..3fbdade 100644 --- a/dali/internal/event/common/stage-impl.cpp +++ b/dali/internal/event/common/stage-impl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 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. @@ -89,9 +89,10 @@ SignalConnectorType signalConnector9( mType, SIGNAL_TOUCH, & StagePtr Stage::New( AnimationPlaylist& playlist, PropertyNotificationManager& propertyNotificationManager, SceneGraph::UpdateManager& updateManager, - NotificationManager& notificationManager ) + NotificationManager& notificationManager, + Integration::RenderController& renderController ) { - return StagePtr( new Stage( playlist, propertyNotificationManager, updateManager, notificationManager ) ); + return StagePtr( new Stage( playlist, propertyNotificationManager, updateManager, notificationManager, renderController ) ); } void Stage::Initialize() @@ -695,18 +696,21 @@ void Stage::RebuildDepthTree() Stage::Stage( AnimationPlaylist& playlist, PropertyNotificationManager& propertyNotificationManager, SceneGraph::UpdateManager& updateManager, - NotificationManager& notificationManager ) + NotificationManager& notificationManager, + Integration::RenderController& renderController ) : mAnimationPlaylist( playlist ), - mPropertyNotificationManager(propertyNotificationManager), - mUpdateManager(updateManager), - mNotificationManager(notificationManager), - mSize(Vector2::ZERO), - mBackgroundColor(Dali::Stage::DEFAULT_BACKGROUND_COLOR), + mPropertyNotificationManager( propertyNotificationManager ), + mUpdateManager( updateManager ), + mNotificationManager( notificationManager ), + mRenderController( renderController ), + mSize( Vector2::ZERO ), + mBackgroundColor( Dali::Stage::DEFAULT_BACKGROUND_COLOR ), mViewMode( MONO ), mStereoBase( DEFAULT_STEREO_BASE ), mTopMargin( 0 ), - mSystemOverlay(NULL), - mDepthTreeDirty( false ) + mSystemOverlay( NULL ), + mDepthTreeDirty( false ), + mForceNextUpdate( false ) { } @@ -715,6 +719,11 @@ SceneGraph::UpdateManager& Stage::GetUpdateManager() return mUpdateManager; } +Integration::RenderController& Stage::GetRenderController() +{ + return mRenderController; +} + unsigned int* Stage::ReserveMessageSlot( std::size_t size, bool updateScene ) { return mUpdateManager.ReserveMessageSlot( size, updateScene ); @@ -725,6 +734,18 @@ BufferIndex Stage::GetEventBufferIndex() const return mUpdateManager.GetEventBufferIndex(); } +void Stage::ForceNextUpdate() +{ + mForceNextUpdate = true; +} + +bool Stage::IsNextUpdateForced() +{ + bool nextUpdateForced = mForceNextUpdate; + mForceNextUpdate = false; + return nextUpdateForced; +} + Stage::~Stage() { delete mSystemOverlay;