1 #ifndef __DALI_INTERNAL_ADAPTOR_INTERNAL_SERVICES_H__
2 #define __DALI_INTERNAL_ADAPTOR_INTERNAL_SERVICES_H__
5 * Copyright (c) 2014 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.
22 #include <dali/integration-api/core.h>
23 #include <dali/integration-api/gl-abstraction.h>
24 #include <base/interfaces/egl-factory-interface.h>
25 #include <base/interfaces/trigger-event-interface.h>
26 #include <base/interfaces/performance-interface.h>
27 #include <base/interfaces/vsync-monitor-interface.h>
28 #include <base/interfaces/kernel-trace-interface.h>
29 #include <render-surface-impl.h> // @todo move to base/interfaces
42 * A class to contain various interfaces provided by the adaptor which
43 * can be used by the cross platform parts of adaptor.
44 * E.g. any files held in adaptors/base/ directory
47 class AdaptorInternalServices
55 virtual Dali::Integration::Core& GetCore() = 0;
58 * @return platform abstraction
60 virtual Dali::Integration::PlatformAbstraction& GetPlatformAbstractionInterface() = 0;
63 * @return gles abstraction
65 virtual Dali::Integration::GlAbstraction& GetGlesInterface() = 0;
70 virtual EglFactoryInterface& GetEGLFactoryInterface() const = 0;
73 * @return trigger event
75 virtual TriggerEventInterface& GetTriggerEventInterface() = 0;
78 * @return render surface
80 virtual RenderSurface* GetRenderSurfaceInterface() = 0;
83 * @return vsync monitor interface
85 virtual VSyncMonitorInterface* GetVSyncMonitorInterface() = 0;
88 * @return performance interface
90 virtual PerformanceInterface* GetPerformanceInterface() = 0;
93 * @return kernel trace interface
95 virtual KernelTraceInterface& GetKernelTraceInterface() = 0;
102 AdaptorInternalServices()
109 virtual ~AdaptorInternalServices()
113 // Undefined copy constructor.
114 AdaptorInternalServices( const AdaptorInternalServices& );
116 // Undefined assignment operator.
117 AdaptorInternalServices& operator=( const AdaptorInternalServices& );
120 } // namespace Internal
122 } // namespace Adaptor
126 #endif // __DALI_INTERNAL_ADAPTOR_INTERNAL_SERVICES_H__