Removed GL and GL Sync implementations
[platform/core/uifw/dali-adaptor.git] / dali / internal / adaptor / common / adaptor-internal-services.h
1 #ifndef __DALI_INTERNAL_ADAPTOR_INTERNAL_SERVICES_H__
2 #define __DALI_INTERNAL_ADAPTOR_INTERNAL_SERVICES_H__
3
4 /*
5  * Copyright (c) 2018 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 // EXTERNAL INCLUDES
22 #include <dali/integration-api/core.h>
23
24 // INTERNAL INCLUDES
25 #include <dali/integration-api/trigger-event-interface.h>
26 #include <dali/integration-api/trigger-event-factory-interface.h>
27 #include <dali/internal/graphics/gles20/egl-factory-interface.h>
28 #include <dali/internal/network/common/socket-factory-interface.h>
29 #include <dali/internal/system/common/performance-interface.h>
30 #include <dali/internal/graphics/common/vsync-monitor-interface.h>
31 #include <dali/internal/network/common/trace-interface.h>
32 #include <dali/integration-api/render-surface.h>
33
34
35 namespace Dali
36 {
37
38 namespace Integration
39 {
40 namespace Graphics
41 {
42 class Graphics;
43 } // graphics
44 } // integration
45
46 namespace Internal
47 {
48
49 namespace Adaptor
50 {
51
52 /**
53  * A class to contain various interfaces provided by the adaptor which
54  * can be used by the cross platform parts of adaptor.
55  * E.g. any files held in adaptors/base/ directory
56  *
57  */
58 class AdaptorInternalServices
59 {
60
61 public:
62
63   /**
64    * @return core
65    */
66   virtual Dali::Integration::Core& GetCore() = 0;
67
68   /**
69    * @return platform abstraction
70    */
71   virtual Dali::Integration::PlatformAbstraction& GetPlatformAbstractionInterface()  = 0;
72
73   /**
74    * @return egl factory
75    */
76   virtual EglFactoryInterface& GetEGLFactoryInterface() const  = 0;
77
78   /**
79    * @return Graphics
80    */
81   virtual Dali::Integration::Graphics::Graphics& GetGraphics() const = 0;
82
83   /**
84    * Used by update-thread to notify core (main-thread) it has messages to process
85    * @return trigger event ProcessCoreEvents
86    */
87   virtual TriggerEventInterface& GetProcessCoreEventsTrigger()  = 0;
88
89   /**
90    * @return trigger event factory interface
91    */
92   virtual TriggerEventFactoryInterface& GetTriggerEventFactoryInterface() = 0;
93
94   /**
95    * @return socket factory interface
96    */
97   virtual SocketFactoryInterface& GetSocketFactoryInterface() = 0;
98
99   /**
100    * @return render surface
101    */
102   virtual RenderSurface* GetRenderSurfaceInterface()  = 0;
103
104   /**
105    * @return vsync monitor interface
106    */
107   virtual VSyncMonitorInterface* GetVSyncMonitorInterface()  = 0;
108
109   /**
110    * @return performance interface
111    */
112   virtual PerformanceInterface* GetPerformanceInterface()  = 0;
113
114   /**
115    * @return interface for logging to the kernel ( e.g. using ftrace )
116    */
117   virtual TraceInterface& GetKernelTraceInterface()  = 0;
118
119   /**
120    * @return system trace interface, e.g. for using Tizen Trace (ttrace) or Android Trace (atrace)
121    */
122   virtual TraceInterface& GetSystemTraceInterface()  = 0;
123
124
125 protected:
126
127   /**
128    * constructor
129    */
130   AdaptorInternalServices()
131   {
132   };
133
134   /**
135    * virtual destructor
136    */
137   virtual ~AdaptorInternalServices()
138   {
139   };
140
141   // Undefined copy constructor.
142   AdaptorInternalServices( const AdaptorInternalServices& );
143
144   // Undefined assignment operator.
145   AdaptorInternalServices& operator=( const AdaptorInternalServices& );
146 };
147
148 } // namespace Internal
149
150 } // namespace Adaptor
151
152 } // namespace Dali
153
154 #endif // __DALI_INTERNAL_ADAPTOR_INTERNAL_SERVICES_H__