Dali 3D User Interface Engine
thread-controller.h
Go to the documentation of this file.
1 #ifndef __DALI_INTERNAL_THREAD_CONTROLLER_H__
2 #define __DALI_INTERNAL_THREAD_CONTROLLER_H__
3 
4 /*
5  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20 
21 namespace Dali
22 {
23 
24 class RenderSurface;
25 
26 namespace Internal
27 {
28 
29 namespace Adaptor
30 {
31 
32 class AdaptorInternalServices;
33 class EnvironmentOptions;
34 class ThreadControllerInterface;
35 
40 {
41 public:
42 
46  ThreadController( AdaptorInternalServices& adaptorInterfaces, const EnvironmentOptions& environmentOptions );
47 
52 
60  void Initialize();
61 
68  void Start();
69 
73  void Pause();
74 
78  void Resume();
79 
85  void Stop();
86 
90  void RequestUpdate();
91 
97  void RequestUpdateOnce();
98 
104  void ReplaceSurface( RenderSurface* surface );
105 
109  void SetRenderRefreshRate( unsigned int numberOfVSyncsPerRender );
110 
111 private:
112 
113  // Undefined copy constructor.
115 
116  // Undefined assignment operator.
118 
119 private:
120 
122 };
123 
124 } // namespace Adaptor
125 
126 } // namespace Internal
127 
128 } // namespace Dali
129 
130 #endif // __DALI_INTERNAL_THREAD_CONTROLLER_H__
Dali Docs Home
Read more about Dali