Dali 3D User Interface Engine
render-helper.h
Go to the documentation of this file.
1 #ifndef __DALI_INTERNAL_RENDER_HELPER_H__
2 #define __DALI_INTERNAL_RENDER_HELPER_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
22 #include <egl-interface.h>
23 #include <render-surface.h> // needed for Dali::RenderSurface
24 
25 namespace Dali
26 {
27 
28 class RenderSurface;
29 class DisplayConnection;
30 
31 namespace Integration
32 {
33 class GlAbstraction;
34 }
35 
36 namespace Internal
37 {
38 namespace Adaptor
39 {
40 
41 class AdaptorInternalServices;
42 class EglFactoryInterface;
43 
48 {
49 public:
50 
55  RenderHelper( AdaptorInternalServices& adaptorInterfaces );
56 
60  ~RenderHelper();
61 
63  // Called on the Event Thread
65 
69  void Start();
70 
74  void Stop();
75 
77  // Called on the Rendering Thread
79 
85  void ConsumeEvents();
86 
92  void InitializeEgl();
93 
102  void ReplaceSurface( RenderSurface* newSurface );
103 
109  void ShutdownEgl();
110 
118  bool PreRender();
119 
125  void PostRender();
126 
127 private:
128 
129  // Undefined
131 
132  // Undefined
133  RenderHelper& operator=( const RenderHelper& RenderHelper );
134 
135 private: // Data
136 
139  EglInterface* mEGL;
140  RenderSurface* mSurface;
143 };
144 
145 } // namespace Adaptor
146 
147 } // namespace Internal
148 
149 } // namespace Dali
150 
151 #endif // __DALI_INTERNAL_RENDER_HELPER_H__
Dali Docs Home
Read more about Dali