1 #ifndef __DALI_INTERNAL_THREAD_CONTROLLER_H__
2 #define __DALI_INTERNAL_THREAD_CONTROLLER_H__
5 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
32 class AdaptorInternalServices;
33 class EnvironmentOptions;
34 class ThreadControllerInterface;
37 * Class to control all the threads.
39 class ThreadController
46 ThreadController( AdaptorInternalServices& adaptorInterfaces, const EnvironmentOptions& environmentOptions );
49 * Non virtual destructor. Not intended as base class.
54 * Initializes the thread controller
59 * @copydoc Dali::Adaptor::Start()
64 * @copydoc Dali::Adaptor::Pause()
69 * @copydoc Dali::Adaptor::Resume()
74 * @copydoc Dali::Adaptor::Stop()
79 * Called by the adaptor when core requires another update
84 * Called by the adaptor when core requires one update
85 * If Adaptor is paused, we do one update and return to pause
87 void RequestUpdateOnce();
90 * Replaces the surface.
91 * @param surface new surface
93 void ReplaceSurface( RenderSurface* surface );
96 * @copydoc Dali::Adaptor::SetRenderRefreshRate()
98 void SetRenderRefreshRate( unsigned int numberOfVSyncsPerRender );
102 // Undefined copy constructor.
103 ThreadController( const ThreadController& );
105 // Undefined assignment operator.
106 ThreadController& operator=( const ThreadController& );
110 ThreadControllerInterface* mThreadControllerInterface;
113 } // namespace Adaptor
115 } // namespace Internal
119 #endif // __DALI_INTERNAL_THREAD_CONTROLLER_H__