1 #ifndef __DALI_INTERNAL_THREAD_CONTROLLER_INTERFACE_H__
2 #define __DALI_INTERNAL_THREAD_CONTROLLER_INTERFACE_H__
5 * Copyright (c) 2017 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.
33 * Interface Class for all controlling threads.
35 class ThreadControllerInterface
40 * Virtual destructor. Not intended as base class.
42 virtual ~ThreadControllerInterface() { }
45 * Initializes the thread controller
47 virtual void Initialize() = 0;
50 * @copydoc Dali::Adaptor::Start()
52 virtual void Start() = 0;
55 * @copydoc Dali::Adaptor::Pause()
57 virtual void Pause() = 0;
60 * @copydoc Dali::Adaptor::Resume()
62 virtual void Resume() = 0;
65 * @copydoc Dali::Adaptor::Stop()
67 virtual void Stop() = 0;
70 * Called by the adaptor when core requires another update
72 virtual void RequestUpdate() = 0;
75 * Called by the adaptor when core requires one update
76 * If Adaptor is paused, we do one update and return to pause
78 virtual void RequestUpdateOnce() = 0;
81 * Replaces the surface.
82 * @param surface new surface
84 virtual void ReplaceSurface( RenderSurface* surface ) = 0;
89 virtual void ResizeSurface() = 0;
92 * @copydoc Dali::Adaptor::SetRenderRefreshRate()
94 virtual void SetRenderRefreshRate( unsigned int numberOfVSyncsPerRender ) = 0;
101 ThreadControllerInterface() { }
105 // Undefined copy constructor.
106 ThreadControllerInterface( const ThreadControllerInterface& );
108 // Undefined assignment operator.
109 ThreadControllerInterface& operator=( const ThreadControllerInterface& );
112 } // namespace Adaptor
114 } // namespace Internal
118 #endif // __DALI_INTERNAL_THREAD_CONTROLLER_INTERFACE_H__