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>
26 #include <dali/integration-api/trigger-event-interface.h>
27 #include <dali/integration-api/trigger-event-factory-interface.h>
28 #include <dali/internal/window-system/common/display-connection.h>
29 #include <dali/internal/graphics/common/graphics-interface.h>
30 #include <dali/internal/graphics/gles20/egl-factory-interface.h>
31 #include <dali/internal/network/common/socket-factory-interface.h>
32 #include <dali/internal/system/common/performance-interface.h>
33 #include <dali/internal/graphics/common/vsync-monitor-interface.h>
34 #include <dali/internal/network/common/trace-interface.h>
35 #include <dali/integration-api/render-surface.h>
48 * A class to contain various interfaces provided by the adaptor which
49 * can be used by the cross platform parts of adaptor.
50 * E.g. any files held in adaptors/base/ directory
53 class AdaptorInternalServices
61 virtual Dali::Integration::Core& GetCore() = 0;
64 * @return platform abstraction
66 virtual Dali::Integration::PlatformAbstraction& GetPlatformAbstractionInterface() = 0;
69 * Used to access the Display Connection interface from the Render thread
70 * @return the Display Connection interface
72 virtual Dali::DisplayConnection& GetDisplayConnectionInterface() = 0;
75 * Used to access the abstracted graphics interface
76 * This also contains the depth and stencil buffers
77 * @return the graphics interface
79 virtual GraphicsInterface& GetGraphicsInterface() = 0;
82 * Used by update-thread to notify core (main-thread) it has messages to process
83 * @return trigger event ProcessCoreEvents
85 virtual TriggerEventInterface& GetProcessCoreEventsTrigger() = 0;
88 * @return trigger event factory interface
90 virtual TriggerEventFactoryInterface& GetTriggerEventFactoryInterface() = 0;
93 * @return socket factory interface
95 virtual SocketFactoryInterface& GetSocketFactoryInterface() = 0;
98 * @return render surface
100 virtual RenderSurface* GetRenderSurfaceInterface() = 0;
103 * @return vsync monitor interface
105 virtual VSyncMonitorInterface* GetVSyncMonitorInterface() = 0;
108 * @return performance interface
110 virtual PerformanceInterface* GetPerformanceInterface() = 0;
113 * @return interface for logging to the kernel ( e.g. using ftrace )
115 virtual TraceInterface& GetKernelTraceInterface() = 0;
118 * @return system trace interface, e.g. for using Tizen Trace (ttrace) or Android Trace (atrace)
120 virtual TraceInterface& GetSystemTraceInterface() = 0;
128 AdaptorInternalServices()
135 virtual ~AdaptorInternalServices()
139 // Undefined copy constructor.
140 AdaptorInternalServices( const AdaptorInternalServices& ) = delete;
142 // Undefined assignment operator.
143 AdaptorInternalServices& operator=( const AdaptorInternalServices& ) = delete;
146 } // namespace Internal
148 } // namespace Adaptor
152 #endif // DALI_INTERNAL_ADAPTOR_INTERNAL_SERVICES_H