Merge "Update window's geometry to ecore_wl2." into devel/master
[platform/core/uifw/dali-adaptor.git] / dali / internal / adaptor / common / adaptor-impl.h
1 #ifndef DALI_INTERNAL_ADAPTOR_IMPL_H
2 #define DALI_INTERNAL_ADAPTOR_IMPL_H
3
4 /*
5  * Copyright (c) 2020 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/public-api/common/vector-wrapper.h>
23 #include <dali/public-api/common/view-mode.h>
24 #include <dali/public-api/math/rect.h>
25 #include <dali/public-api/signals/callback.h>
26 #include <dali/public-api/math/uint-16-pair.h>
27 #include <dali/integration-api/render-controller.h>
28
29 // INTERNAL INCLUDES
30 #include <dali/public-api/adaptor-framework/tts-player.h>
31 #include <dali/devel-api/adaptor-framework/clipboard.h>
32 #include <dali/integration-api/scene.h>
33 #include <dali/integration-api/adaptor-framework/adaptor.h>
34 #include <dali/integration-api/adaptor-framework/scene-holder-impl.h>
35 #include <dali/integration-api/adaptor-framework/trigger-event-factory.h>
36 #include <dali/internal/adaptor/common/adaptor-internal-services.h>
37 #include <dali/internal/graphics/common/graphics-interface.h>
38 #include <dali/internal/legacy/common/tizen-platform-abstraction.h>
39 #include <dali/internal/network/common/socket-factory.h>
40 #include <dali/internal/system/common/core-event-interface.h>
41 #include <dali/internal/system/common/environment-options.h>
42 #include <dali/internal/system/common/kernel-trace.h>
43 #include <dali/internal/system/common/system-trace.h>
44 #include <dali/internal/window-system/common/damage-observer.h>
45 #include <dali/internal/window-system/common/window-visibility-observer.h>
46
47 namespace Dali
48 {
49
50 class RenderSurfaceInterface;
51
52 namespace Integration
53 {
54 class Core;
55 class GlAbstraction;
56 class Processor;
57 }
58
59 namespace Internal
60 {
61
62 namespace Adaptor
63 {
64 class DisplayConnection;
65 class GraphicsFactory;
66 class GlImplementation;
67 class GlSyncImplementation;
68 class ThreadController;
69 class TriggerEvent;
70 class CallbackManager;
71 class FeedbackPluginProxy;
72 class FeedbackController;
73 class VSyncMonitor;
74 class PerformanceInterface;
75 class LifeCycleObserver;
76 class ObjectProfiler;
77 class SceneHolder;
78 class ConfigurationManager;
79 enum class ThreadMode;
80
81 /**
82  * Implementation of the Adaptor class.
83  */
84 class Adaptor : public Integration::RenderController,
85                 public AdaptorInternalServices,
86                 public CoreEventInterface,
87                 public DamageObserver,
88                 public WindowVisibilityObserver
89 {
90 public:
91
92   using AdaptorSignalType =  Dali::Adaptor::AdaptorSignalType;
93   using WindowCreatedSignalType = Dali::Adaptor::WindowCreatedSignalType;
94
95   using SurfaceSize = Uint16Pair;          ///< Surface size type
96
97   /**
98    * Creates a New Adaptor
99    * @param[in]  window              The window handle
100    * @param[in]  surface             A render surface can be one of the following
101    *                                  - Pixmap, adaptor will use existing Pixmap to draw on to
102    *                                  - Window, adaptor will use existing Window to draw on to
103    * @param[in]  configuration       The context loss configuration ( to choose resource discard policy )
104    * @param[in]  environmentOptions  A pointer to the environment options. If NULL then one is created.
105    */
106   static Dali::Adaptor* New( Dali::Integration::SceneHolder window,
107                              Dali::RenderSurfaceInterface* surface,
108                              Dali::Configuration::ContextLoss configuration,
109                              EnvironmentOptions* environmentOptions );
110
111   /**
112    * Creates a New Adaptor
113    * @param[in]  window              The window handle
114    * @param[in]  configuration       The context loss configuration ( to choose resource discard policy )
115    * @param[in]  environmentOptions  A pointer to the environment options. If NULL then one is created.
116    */
117   static Dali::Adaptor* New( Dali::Integration::SceneHolder window,
118                              Dali::Configuration::ContextLoss configuration,
119                              EnvironmentOptions* environmentOptions );
120
121   /**
122    * Creates a New Adaptor
123    * @param[in]  graphicsFactory     A factory that creates the graphics interface
124    * @param[in]  window              The window handle
125    * @param[in]  surface             A render surface can be one of the following
126    *                                  - Pixmap, adaptor will use existing Pixmap to draw on to
127    *                                  - Window, adaptor will use existing Window to draw on to
128    * @param[in]  configuration       The context loss configuration ( to choose resource discard policy )
129    * @param[in]  environmentOptions  A pointer to the environment options. If NULL then one is created.
130    */
131   static Dali::Adaptor* New( GraphicsFactory& graphicsFactory,
132                              Dali::Integration::SceneHolder window,
133                              Dali::RenderSurfaceInterface* surface,
134                              Dali::Configuration::ContextLoss configuration,
135                              EnvironmentOptions* environmentOptions );
136
137   /**
138    * Creates a New Adaptor
139    * @param[in]  graphicsFactory     A factory that creates the graphics interface
140    * @param[in]  window              The window handle
141    * @param[in]  configuration       The context loss configuration ( to choose resource discard policy )
142    * @param[in]  environmentOptions  A pointer to the environment options. If NULL then one is created.
143    */
144   static Dali::Adaptor* New( GraphicsFactory& graphicsFactory,
145                              Dali::Integration::SceneHolder window,
146                              Dali::Configuration::ContextLoss configuration,
147                              EnvironmentOptions* environmentOptions );
148
149   /**
150    * 2-step initialisation, this should be called after creating an adaptor instance.
151    * @param[in]  graphicsFactory     A factory that creates the graphics interface
152    * @param[in]  configuration       The context loss configuration ( to choose resource discard policy )
153    */
154   void Initialize( GraphicsFactory& graphicsFactory, Dali::Configuration::ContextLoss configuration );
155
156   /**
157    * Virtual destructor.
158    */
159   virtual ~Adaptor();
160
161   /**
162    * @copydoc Dali::Adaptor::Get()
163    */
164   static Dali::Adaptor& Get();
165
166   /**
167    * @copydoc Dali::Adaptor::IsAvailable()
168    */
169   static bool IsAvailable();
170
171   /**
172    * @copydoc Dali::Core::SceneCreated();
173    */
174   void SceneCreated();
175
176 public: // AdaptorInternalServices implementation
177   /**
178    * @copydoc Dali::Adaptor::Start()
179    */
180   virtual void Start();
181
182   /**
183    * @copydoc Dali::Adaptor::Pause()
184    */
185   virtual void Pause();
186
187   /**
188    * @copydoc Dali::Adaptor::Resume()
189    */
190   virtual void Resume();
191
192   /**
193    * @copydoc Dali::Adaptor::Stop()
194    */
195   virtual void Stop();
196
197   /**
198    * @copydoc Dali::Adaptor::ContextLost()
199    */
200   virtual void ContextLost();
201
202   /**
203    * @copydoc Dali::Adaptor::ContextRegained()
204    */
205   virtual void ContextRegained();
206
207   /**
208    * @copydoc Dali::EventFeeder::FeedTouchPoint()
209    */
210   virtual void FeedTouchPoint( TouchPoint& point, int timeStamp );
211
212   /**
213    * @copydoc Dali::EventFeeder::FeedWheelEvent()
214    */
215   virtual void FeedWheelEvent( WheelEvent& wheelEvent );
216
217   /**
218    * @copydoc Dali::EventFeeder::FeedKeyEvent()
219    */
220   virtual void FeedKeyEvent( KeyEvent& keyEvent );
221
222   /**
223    * @copydoc Dali::Adaptor::ReplaceSurface()
224    */
225   virtual void ReplaceSurface( Dali::Integration::SceneHolder window, Dali::RenderSurfaceInterface& surface );
226
227   /**
228    * @copydoc Dali::Adaptor::GetSurface()
229    */
230   virtual Dali::RenderSurfaceInterface& GetSurface() const;
231
232   /**
233    * @copydoc Dali::Adaptor::ReleaseSurfaceLock()
234    */
235   virtual void ReleaseSurfaceLock();
236
237   /**
238    * Retrieve the TtsPlayer.
239    * @param[in] mode The mode of TtsPlayer
240    * @return A handle to the TtsPlayer.
241    */
242   virtual Dali::TtsPlayer GetTtsPlayer(Dali::TtsPlayer::Mode mode);
243
244   /**
245    * @copydoc Dali::Adaptor::AddIdle()
246    */
247   virtual bool AddIdle( CallbackBase* callback, bool hasReturnValue, bool forceAdd );
248
249   /**
250    * Adds a new Window instance to the Adaptor
251    * @param[in]  childWindow The child window instance
252    * @param[in]  childWindowName The child window title/name
253    * @param[in]  childWindowClassName The class name that the child window belongs to
254    * @param[in]  childWindowMode The mode of the child window
255    */
256   virtual bool AddWindow( Dali::Integration::SceneHolder childWindow,
257                           const std::string& childWindowName,
258                           const std::string& childWindowClassName,
259                           bool childWindowMode );
260
261   /**
262    * Removes an existing Window instance from the Adaptor
263    * @param[in]  window The Window instance
264    */
265   virtual bool RemoveWindow( Dali::Integration::SceneHolder* childWindow );
266
267   /**
268    * Removes an existing Window instance from the Adaptor
269    * @param[in]  windowName The Window name
270    * @note If two Windows have the same name, the first one that matches will be removed
271    */
272   virtual bool RemoveWindow( std::string childWindowName );
273
274   /**
275    * @copydoc Dali::Adaptor::RemoveIdle()
276    */
277   virtual void RemoveIdle( CallbackBase* callback );
278
279   /**
280    * @copydoc Dali::Adaptor::ProcessIdle()
281    */
282   virtual void ProcessIdle();
283
284   /**
285    * Sets a pre-render callback.
286    */
287   void SetPreRenderCallback( CallbackBase* callback );
288
289   /**
290    * Removes an existing Window instance from the Adaptor
291    * @param[in]  childWindow The Window instance
292    */
293   bool RemoveWindow( Dali::Internal::Adaptor::SceneHolder* childWindow );
294
295   /**
296    * @brief Deletes the rendering surface
297    * @param[in] surface to delete
298    */
299   void DeleteSurface( Dali::RenderSurfaceInterface& surface );
300
301   /**
302    * @brief Retrieve the window that the given actor is added to.
303    *
304    * @param[in] actor The actor
305    * @return The window the actor is added to or a null pointer if the actor is not added to any widnow.
306    */
307   Dali::Internal::Adaptor::SceneHolder* GetWindow( Dali::Actor& actor );
308
309   /**
310    * @copydoc Dali::Adaptor::GetWindows()
311    */
312   Dali::WindowContainer GetWindows() const;
313
314   /**
315    * @copydoc Dali::Adaptor::GetSceneHolders()
316    */
317   Dali::SceneHolderList GetSceneHolders() const;
318
319 public:
320
321   /**
322    * @return the Core instance
323    */
324   virtual Dali::Integration::Core& GetCore();
325
326   /**
327    * @copydoc Dali::Adaptor::SetRenderRefreshRate()
328    */
329   void SetRenderRefreshRate( unsigned int numberOfVSyncsPerRender );
330
331   /**
332    * Return the PlatformAbstraction.
333    * @return The PlatformAbstraction.
334    */
335   Integration::PlatformAbstraction& GetPlatformAbstraction() const;
336
337   /**
338    * Destroy the TtsPlayer of specific mode.
339    * @param[in] mode The mode of TtsPlayer to destroy
340    */
341   void DestroyTtsPlayer(Dali::TtsPlayer::Mode mode);
342
343   /**
344    * Gets native window handle
345    *
346    * @return native window handle
347    */
348   Any GetNativeWindowHandle();
349
350   /**
351    * @brief Retrieve native window handle that the given actor is added to.
352    *
353    * @param[in] actor The actor
354    * @return native window handle
355    */
356   Any GetNativeWindowHandle( Dali::Actor actor );
357
358   /**
359    * Get the native display associated with the graphics backend
360    *
361    * @return A handle to the native display
362    */
363   Any GetGraphicsDisplay();
364
365   /**
366    * Sets use remote surface for Surface output
367    * @param[in] useRemoteSurface True if the remote surface is used
368    */
369   void SetUseRemoteSurface(bool useRemoteSurface);
370
371 public:
372
373   /**
374    * Adds an adaptor observer so that we can observe the adaptor's lifetime events.
375    * @param[in]  observer  The observer.
376    * @note Observers should remove themselves when they are destroyed.
377    */
378   void AddObserver( LifeCycleObserver& observer );
379
380   /**
381    * Removes the observer from the adaptor.
382    * @param[in]  observer  The observer to remove.
383    * @note Observers should remove themselves when they are destroyed.
384    */
385   void RemoveObserver( LifeCycleObserver& observer );
386
387   /**
388    * Emits the Notification event to the Dali core.
389    */
390   void SendNotificationEvent();
391
392   /**
393    * Request adaptor to update once
394    */
395   void RequestUpdateOnce();
396
397   /**
398    * @copydoc Dali::Adaptor::NotifySceneCreated()
399    */
400   void NotifySceneCreated();
401
402   /**
403    * @copydoc Dali::Adaptor::NotifyLanguageChanged()
404    */
405   void NotifyLanguageChanged();
406
407   /**
408    * Gets AppId of current application
409    */
410   void GetAppId( std::string& appId );
411
412   /**
413    * @copydoc Dali::Adaptor::SurfaceResizePrepare
414    */
415   void SurfaceResizePrepare( Dali::RenderSurfaceInterface* surface, SurfaceSize surfaceSize );
416
417   /**
418    * @copydoc Dali::Adaptor::SurfaceResizeComplete
419    */
420   void SurfaceResizeComplete( Dali::RenderSurfaceInterface* surface, SurfaceSize surfaceSize );
421
422   /**
423    * Sets layout direction of root by system language
424    * @param[in] locale System locale
425    */
426   void SetRootLayoutDirection( std::string locale );
427
428   /**
429    * @copydoc Dali::Adaptor::RenderOnce
430    */
431   void RenderOnce();
432
433   /**
434    * @copydoc Dali::Adaptor::GetLogFactory
435    */
436   const LogFactoryInterface& GetLogFactory();
437
438   /**
439    * @copydoc Dali::Adaptor::RegisterProcessor
440    */
441   void RegisterProcessor( Integration::Processor& processor );
442
443   /**
444    * @coydoc Dali::Adaptor::UnregisterProcessor
445    */
446   void UnregisterProcessor( Integration::Processor& processor );
447
448   /**
449    * Check MultipleWindow is supported
450    */
451   bool IsMultipleWindowSupported() const;
452
453 public:  //AdaptorInternalServices
454
455   /**
456    * @copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetPlatformAbstractionInterface()
457    */
458   virtual Dali::Integration::PlatformAbstraction& GetPlatformAbstractionInterface();
459
460   /**
461    * @copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetDisplayConnectionInterface()
462    */
463   virtual Dali::DisplayConnection& GetDisplayConnectionInterface();
464
465   /**
466    * @copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetGraphicsInterface()
467    */
468   virtual GraphicsInterface& GetGraphicsInterface();
469
470   /**
471    * @copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetTriggerEventInterface()
472    */
473   virtual TriggerEventInterface& GetProcessCoreEventsTrigger();
474
475   /**
476    * @copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetSocketFactoryInterface()
477    */
478   virtual SocketFactoryInterface& GetSocketFactoryInterface();
479
480   /**
481    * @copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetRenderSurfaceInterface()
482    */
483   virtual Dali::RenderSurfaceInterface* GetRenderSurfaceInterface();
484
485   /**
486    * @copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetPerformanceInterface()
487    */
488   virtual PerformanceInterface* GetPerformanceInterface();
489
490   /**
491    * copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetKernelTraceInterface()
492    */
493   virtual TraceInterface& GetKernelTraceInterface();
494
495   /**
496    * copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetSystemTraceInterface()
497    */
498   virtual TraceInterface& GetSystemTraceInterface();
499
500   /**
501    * copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetWindowContainerInterface()
502    */
503   virtual void GetWindowContainerInterface( WindowContainer& windows );
504
505 public: // Signals
506
507   /**
508    * @copydoc Dali::Adaptor::SignalResized
509    */
510   AdaptorSignalType& ResizedSignal()
511   {
512     return mResizedSignal;
513   }
514
515   /**
516    * @copydoc Dali::Adaptor::LanguageChangedSignal
517    */
518   AdaptorSignalType& LanguageChangedSignal()
519   {
520     return mLanguageChangedSignal;
521   }
522
523   /**
524    * @copydoc Dali::Adaptor::WindowCreatedSignal
525    */
526   WindowCreatedSignalType& WindowCreatedSignal()
527   {
528     return mWindowCreatedSignal;
529   }
530
531 public: // From Dali::Internal::Adaptor::CoreEventInterface
532
533   /**
534    * @copydoc Dali::Internal::Adaptor:CoreEventInterface:::ProcessCoreEvents()
535    */
536   virtual void ProcessCoreEvents();
537
538 private: // From Dali::Internal::Adaptor::CoreEventInterface
539
540   /**
541    * @copydoc Dali::Internal::Adaptor::CoreEventInterface::QueueCoreEvent()
542    */
543   virtual void QueueCoreEvent(const Dali::Integration::Event& event);
544
545 private: // From Dali::Integration::RenderController
546
547   /**
548    * @copydoc Dali::Integration::RenderController::RequestUpdate()
549    */
550   virtual void RequestUpdate( bool forceUpdate );
551
552   /**
553    * @copydoc Dali::Integration::RenderController::RequestProcessEventsOnIdle()
554    */
555   virtual void RequestProcessEventsOnIdle( bool forceProcess );
556
557 public: // From Dali::Internal::Adaptor::WindowVisibilityObserver
558
559   /**
560    * Called when the window becomes fully or partially visible.
561    */
562   virtual void OnWindowShown();
563
564   /**
565    * Called when the window is fully hidden.
566    */
567   virtual void OnWindowHidden();
568
569 private: // From Dali::Internal::Adaptor::DamageObserver
570
571   /**
572    * @copydoc Dali::Internal::Adaptor::DamageObserver::OnDamaged()
573    */
574   void OnDamaged( const DamageArea& area );
575
576 private:
577
578   // Undefined
579   Adaptor(const Adaptor&) = delete;
580   Adaptor& operator=(Adaptor&) = delete;
581
582 private:
583
584   /**
585    * Assigns the render surface to the adaptor
586    *
587    */
588   void SetSurface(Dali::RenderSurfaceInterface *surface);
589
590   /**
591    * called after surface is created
592    */
593   void SurfaceInitialized();
594
595   /**
596    * Sends an notification message from main loop idle handler
597    */
598   bool ProcessCoreEventsFromIdle();
599
600   /**
601    * Gets path for data/resource storage.
602    * @param[out] path Path for data/resource storage
603    */
604   void GetDataStoragePath(std::string& path);
605
606   /**
607    * Sets up system information if needs
608    */
609   void SetupSystemInformation();
610
611   /**
612    * Adds a callback to be run when entering an idle state.
613    *
614    * A callback of the following type should be used:
615    * @code
616    *   bool MyFunction();
617    * @endcode
618    * This callback will be called repeatedly as long as it returns true. A return of 0 deletes this callback.
619    */
620   bool AddIdleEnterer( CallbackBase* callback, bool forceAdd );
621
622   /**
623    * Removes a previously added the idle enterer callback.
624    */
625   void RemoveIdleEnterer( CallbackBase* callback );
626
627 private:
628
629   /**
630    * Constructor
631    * @param[in]  window       window handle
632    * @param[in]  adaptor      The public adaptor
633    * @param[in]  surface      A render surface can be one of the following
634    *                          - Pixmap, adaptor will use existing Pixmap to draw on to
635    *                          - Window, adaptor will use existing Window to draw on to
636    * @param[in]  environmentOptions  A pointer to the environment options. If NULL then one is created.
637    */
638   Adaptor( Dali::Integration::SceneHolder window, Dali::Adaptor& adaptor, Dali::RenderSurfaceInterface* surface, EnvironmentOptions* environmentOptions );
639
640 private: // Types
641
642   enum State
643   {
644     READY,                     ///< Initial state before Adaptor::Start is called.
645     RUNNING,                   ///< Adaptor is running.
646     PAUSED,                    ///< Adaptor has been paused.
647     PAUSED_WHILE_HIDDEN,       ///< Adaptor is paused while window is hidden (& cannot be resumed until window is shown).
648     PAUSED_WHILE_INITIALIZING, ///< Adaptor is paused while application is initializing.
649     STOPPED,                   ///< Adaptor has been stopped.
650   };
651
652   // There is no weak handle for BaseHandle in DALi, but we can't ref count the window here,
653   // so we have to store the raw pointer.
654   using WindowContainer = std::vector<Dali::Internal::Adaptor::SceneHolder*>;
655   using ObserverContainer = std::vector<LifeCycleObserver*>;
656
657 private: // Data
658
659   AdaptorSignalType                     mResizedSignal;               ///< Resized signal.
660   AdaptorSignalType                     mLanguageChangedSignal;       ///< Language changed signal.
661   WindowCreatedSignalType               mWindowCreatedSignal;    ///< Window created signal.
662
663   Dali::Adaptor&                        mAdaptor;                     ///< Reference to public adaptor instance.
664   State                                 mState;                       ///< Current state of the adaptor
665   Dali::Integration::Core*              mCore;                        ///< Dali Core
666   ThreadController*                     mThreadController;            ///< Controls the threads
667
668   std::unique_ptr< GraphicsInterface >  mGraphics;                    ///< Graphics interface
669   Dali::DisplayConnection*              mDisplayConnection;           ///< Display connection
670   WindowContainer                       mWindows;                     ///< A container of all the Windows that are currently created
671
672   std::unique_ptr<ConfigurationManager> mConfigurationManager;        ///< Configuration manager
673
674   TizenPlatform::TizenPlatformAbstraction* mPlatformAbstraction;      ///< Platform abstraction
675
676   CallbackManager*                      mCallbackManager;             ///< Used to install callbacks
677   bool                                  mNotificationOnIdleInstalled; ///< whether the idle handler is installed to send an notification event
678   TriggerEventInterface*                mNotificationTrigger;         ///< Notification event trigger
679   FeedbackPluginProxy*                  mDaliFeedbackPlugin;          ///< Used to access feedback support
680   FeedbackController*                   mFeedbackController;          ///< Plays feedback effects for Dali-Toolkit UI Controls.
681   Dali::TtsPlayer                       mTtsPlayers[Dali::TtsPlayer::MODE_NUM];                   ///< Provides TTS support
682   ObserverContainer                     mObservers;                   ///< A list of adaptor observer pointers
683   EnvironmentOptions*                   mEnvironmentOptions;          ///< environment options
684   PerformanceInterface*                 mPerformanceInterface;        ///< Performance interface
685   KernelTrace                           mKernelTracer;                ///< Kernel tracer
686   SystemTrace                           mSystemTracer;                ///< System tracer
687   ObjectProfiler*                       mObjectProfiler;              ///< Tracks object lifetime for profiling
688   SocketFactory                         mSocketFactory;               ///< Socket factory
689   ThreadMode                            mThreadMode;                  ///< The thread mode
690   const bool                            mEnvironmentOptionsOwned:1;   ///< Whether we own the EnvironmentOptions (and thus, need to delete it)
691   bool                                  mUseRemoteSurface:1;          ///< whether the remoteSurface is used or not
692
693 public:
694   inline static Adaptor& GetImplementation(Dali::Adaptor& adaptor) { return *adaptor.mImpl; }
695 };
696
697 } // namespace Internal
698
699 } // namespace Adaptor
700
701 } // namespace Dali
702
703 #endif // DALI_INTERNAL_ADAPTOR_IMPL_H