Dali 3D User Interface Engine
separate-update-render-controller.h
Go to the documentation of this file.
1 #ifndef __DALI_INTERNAL_MULTI_THREAD_CONTROLLER_H__
2 #define __DALI_INTERNAL_MULTI_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 // INTERNAL INCLUDES
23 
24 namespace Dali
25 {
26 
27 class RenderSurface;
28 
29 namespace Internal
30 {
31 
32 namespace Adaptor
33 {
34 
35 class UpdateThread;
36 class RenderThread;
37 class VSyncNotifier;
38 class ThreadSynchronization;
39 class AdaptorInternalServices;
40 class EnvironmentOptions;
41 
50 {
51 public:
52 
56  SeparateUpdateRenderController( AdaptorInternalServices& adaptorInterfaces, const EnvironmentOptions& environmentOptions );
57 
62 
66  void Initialize();
67 
71  void Start();
72 
76  void Pause();
77 
81  void Resume();
82 
86  void Stop();
87 
91  void RequestUpdate();
92 
96  void RequestUpdateOnce();
97 
101  void ReplaceSurface( RenderSurface* surface );
102 
106  void SetRenderRefreshRate( unsigned int numberOfVSyncsPerRender );
107 
108 private:
109 
110  // Undefined copy constructor.
112 
113  // Undefined assignment operator.
115 
117 
123 };
124 
125 } // namespace Adaptor
126 
127 } // namespace Internal
128 
129 } // namespace Dali
130 
131 #endif // __DALI_INTERNAL_MULTI_THREAD_CONTROLLER_H__
Dali Docs Home
Read more about Dali