1 #ifndef __DALI_TOOLKIT_ADAPTOR_IMPL_H__
2 #define __DALI_TOOLKIT_ADAPTOR_IMPL_H__
5 * Copyright (c) 2016 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.
21 #include <dali/devel-api/adaptor-framework/render-surface.h>
26 class DisplayConnection;
27 class ThreadSynchronizationInterface;
34 } // namespace Integration
36 class TestRenderSurface : public RenderSurface
39 virtual PositionSize GetPositionSize() const { PositionSize size; return size; }
41 virtual void InitializeEgl( EglInterface& egl ) {}
43 virtual void CreateEglSurface( EglInterface& egl ) {}
45 virtual void DestroyEglSurface( EglInterface& egl ) {}
47 virtual bool ReplaceEGLSurface( EglInterface& egl ) { return false; }
49 virtual void MoveResize( Dali::PositionSize positionSize ) {}
51 virtual void SetViewMode( ViewMode viewMode ) {}
53 virtual void StartRender() {}
55 virtual bool PreRender( EglInterface& egl, Integration::GlAbstraction& glAbstraction ) { return false; }
57 virtual void PostRender( EglInterface& egl, Integration::GlAbstraction& glAbstraction, DisplayConnection* displayConnection, bool replacingSurface ) {}
59 virtual void StopRender() {}
61 virtual void ReleaseLock() {}
63 virtual void SetThreadSynchronization( ThreadSynchronizationInterface& threadSynchronization ) {}
65 virtual RenderSurface::Type GetSurfaceType() { return RenderSurface::ECORE_RENDER_SURFACE; }
73 class Adaptor: public BaseObject
76 static Dali::Adaptor& Get();
81 static Dali::RenderSurface& GetSurface();
82 static Dali::Adaptor::AdaptorSignalType& AdaptorSignal();
83 static bool mAvailable;
84 static Vector<CallbackBase*> mCallbacks;
87 } // namespace Adaptor
88 } // namespace Internal
91 #endif // __DALI_TOOLKIT_ADAPTOR_IMPL_H__