1d65f2794e876ea78b61515922e69ae5269d095c
[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/math/rect.h>
24 #include <dali/public-api/signals/callback.h>
25 #include <dali/public-api/math/uint-16-pair.h>
26 #include <dali/integration-api/render-controller.h>
27
28 // INTERNAL INCLUDES
29 #include <dali/public-api/adaptor-framework/tts-player.h>
30 #include <dali/devel-api/adaptor-framework/clipboard.h>
31 #include <dali/integration-api/scene.h>
32 #include <dali/integration-api/adaptor-framework/adaptor.h>
33 #include <dali/integration-api/adaptor-framework/scene-holder-impl.h>
34 #include <dali/integration-api/adaptor-framework/trigger-event-factory.h>
35 #include <dali/internal/adaptor/common/adaptor-internal-services.h>
36 #include <dali/internal/graphics/common/graphics-interface.h>
37 #include <dali/internal/legacy/common/tizen-platform-abstraction.h>
38 #include <dali/internal/network/common/socket-factory.h>
39 #include <dali/internal/system/common/core-event-interface.h>
40 #include <dali/internal/system/common/environment-options.h>
41 #include <dali/internal/system/common/kernel-trace.h>
42 #include <dali/internal/system/common/system-trace.h>
43 #include <dali/internal/window-system/common/damage-observer.h>
44 #include <dali/internal/window-system/common/window-visibility-observer.h>
45
46 namespace Dali
47 {
48
49 class RenderSurfaceInterface;
50
51 namespace Integration
52 {
53 class Core;
54 class GlAbstraction;
55 class Processor;
56 class AddOnManager;
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( Dali::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   /**
320    * @copydoc Dali::Adaptor::GetObjectRegistry()
321    */
322   Dali::ObjectRegistry GetObjectRegistry() const;
323
324 public:
325
326   /**
327    * @return the Core instance
328    */
329   virtual Dali::Integration::Core& GetCore();
330
331   /**
332    * @copydoc Dali::Adaptor::SetRenderRefreshRate()
333    */
334   void SetRenderRefreshRate( unsigned int numberOfVSyncsPerRender );
335
336   /**
337    * Return the PlatformAbstraction.
338    * @return The PlatformAbstraction.
339    */
340   Integration::PlatformAbstraction& GetPlatformAbstraction() const;
341
342   /**
343    * Destroy the TtsPlayer of specific mode.
344    * @param[in] mode The mode of TtsPlayer to destroy
345    */
346   void DestroyTtsPlayer(Dali::TtsPlayer::Mode mode);
347
348   /**
349    * Gets native window handle
350    *
351    * @return native window handle
352    */
353   Any GetNativeWindowHandle();
354
355   /**
356    * @brief Retrieve native window handle that the given actor is added to.
357    *
358    * @param[in] actor The actor
359    * @return native window handle
360    */
361   Any GetNativeWindowHandle( Dali::Actor actor );
362
363   /**
364    * Get the native display associated with the graphics backend
365    *
366    * @return A handle to the native display
367    */
368   Any GetGraphicsDisplay();
369
370   /**
371    * Sets use remote surface for Surface output
372    * @param[in] useRemoteSurface True if the remote surface is used
373    */
374   void SetUseRemoteSurface(bool useRemoteSurface);
375
376 public:
377
378   /**
379    * Adds an adaptor observer so that we can observe the adaptor's lifetime events.
380    * @param[in]  observer  The observer.
381    * @note Observers should remove themselves when they are destroyed.
382    */
383   void AddObserver( LifeCycleObserver& observer );
384
385   /**
386    * Removes the observer from the adaptor.
387    * @param[in]  observer  The observer to remove.
388    * @note Observers should remove themselves when they are destroyed.
389    */
390   void RemoveObserver( LifeCycleObserver& observer );
391
392   /**
393    * Emits the Notification event to the Dali core.
394    */
395   void SendNotificationEvent();
396
397   /**
398    * Request adaptor to update once
399    */
400   void RequestUpdateOnce();
401
402   /**
403    * @copydoc Dali::Adaptor::NotifySceneCreated()
404    */
405   void NotifySceneCreated();
406
407   /**
408    * @copydoc Dali::Adaptor::NotifyLanguageChanged()
409    */
410   void NotifyLanguageChanged();
411
412   /**
413    * Gets AppId of current application
414    */
415   void GetAppId( std::string& appId );
416
417   /**
418    * @copydoc Dali::Adaptor::SurfaceResizePrepare
419    */
420   void SurfaceResizePrepare( Dali::RenderSurfaceInterface* surface, SurfaceSize surfaceSize );
421
422   /**
423    * @copydoc Dali::Adaptor::SurfaceResizeComplete
424    */
425   void SurfaceResizeComplete( Dali::RenderSurfaceInterface* surface, SurfaceSize surfaceSize );
426
427   /**
428    * Sets layout direction of root by system language
429    * @param[in] locale System locale
430    */
431   void SetRootLayoutDirection( std::string locale );
432
433   /**
434    * @copydoc Dali::Adaptor::RenderOnce
435    */
436   void RenderOnce();
437
438   /**
439    * @copydoc Dali::Adaptor::GetLogFactory
440    */
441   const LogFactoryInterface& GetLogFactory();
442
443   /**
444    * @copydoc Dali::Adaptor::RegisterProcessor
445    */
446   void RegisterProcessor( Integration::Processor& processor );
447
448   /**
449    * @coydoc Dali::Adaptor::UnregisterProcessor
450    */
451   void UnregisterProcessor( Integration::Processor& processor );
452
453   /**
454    * Check MultipleWindow is supported
455    */
456   bool IsMultipleWindowSupported() const;
457
458 public:  //AdaptorInternalServices
459
460   /**
461    * @copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetPlatformAbstractionInterface()
462    */
463   virtual Dali::Integration::PlatformAbstraction& GetPlatformAbstractionInterface();
464
465   /**
466    * @copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetDisplayConnectionInterface()
467    */
468   virtual Dali::DisplayConnection& GetDisplayConnectionInterface();
469
470   /**
471    * @copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetGraphicsInterface()
472    */
473   virtual GraphicsInterface& GetGraphicsInterface();
474
475   /**
476    * @copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetTriggerEventInterface()
477    */
478   virtual TriggerEventInterface& GetProcessCoreEventsTrigger();
479
480   /**
481    * @copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetSocketFactoryInterface()
482    */
483   virtual SocketFactoryInterface& GetSocketFactoryInterface();
484
485   /**
486    * @copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetRenderSurfaceInterface()
487    */
488   virtual Dali::RenderSurfaceInterface* GetRenderSurfaceInterface();
489
490   /**
491    * @copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetPerformanceInterface()
492    */
493   virtual PerformanceInterface* GetPerformanceInterface();
494
495   /**
496    * copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetKernelTraceInterface()
497    */
498   virtual TraceInterface& GetKernelTraceInterface();
499
500   /**
501    * copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetSystemTraceInterface()
502    */
503   virtual TraceInterface& GetSystemTraceInterface();
504
505   /**
506    * copydoc Dali::Internal::Adaptor::AdaptorInternalServices::GetWindowContainerInterface()
507    */
508   virtual void GetWindowContainerInterface( WindowContainer& windows );
509
510 public: // Signals
511
512   /**
513    * @copydoc Dali::Adaptor::SignalResized
514    */
515   AdaptorSignalType& ResizedSignal()
516   {
517     return mResizedSignal;
518   }
519
520   /**
521    * @copydoc Dali::Adaptor::LanguageChangedSignal
522    */
523   AdaptorSignalType& LanguageChangedSignal()
524   {
525     return mLanguageChangedSignal;
526   }
527
528   /**
529    * @copydoc Dali::Adaptor::WindowCreatedSignal
530    */
531   WindowCreatedSignalType& WindowCreatedSignal()
532   {
533     return mWindowCreatedSignal;
534   }
535
536 public: // From Dali::Internal::Adaptor::CoreEventInterface
537
538   /**
539    * @copydoc Dali::Internal::Adaptor:CoreEventInterface:::ProcessCoreEvents()
540    */
541   virtual void ProcessCoreEvents();
542
543 private: // From Dali::Internal::Adaptor::CoreEventInterface
544
545   /**
546    * @copydoc Dali::Internal::Adaptor::CoreEventInterface::QueueCoreEvent()
547    */
548   virtual void QueueCoreEvent(const Dali::Integration::Event& event);
549
550 private: // From Dali::Integration::RenderController
551
552   /**
553    * @copydoc Dali::Integration::RenderController::RequestUpdate()
554    */
555   virtual void RequestUpdate( bool forceUpdate );
556
557   /**
558    * @copydoc Dali::Integration::RenderController::RequestProcessEventsOnIdle()
559    */
560   virtual void RequestProcessEventsOnIdle( bool forceProcess );
561
562 public: // From Dali::Internal::Adaptor::WindowVisibilityObserver
563
564   /**
565    * Called when the window becomes fully or partially visible.
566    */
567   virtual void OnWindowShown();
568
569   /**
570    * Called when the window is fully hidden.
571    */
572   virtual void OnWindowHidden();
573
574 private: // From Dali::Internal::Adaptor::DamageObserver
575
576   /**
577    * @copydoc Dali::Internal::Adaptor::DamageObserver::OnDamaged()
578    */
579   void OnDamaged( const DamageArea& area );
580
581 private:
582
583   // Undefined
584   Adaptor(const Adaptor&) = delete;
585   Adaptor& operator=(Adaptor&) = delete;
586
587 private:
588
589   /**
590    * Assigns the render surface to the adaptor
591    *
592    */
593   void SetSurface(Dali::RenderSurfaceInterface *surface);
594
595   /**
596    * called after surface is created
597    */
598   void SurfaceInitialized();
599
600   /**
601    * Sends an notification message from main loop idle handler
602    */
603   bool ProcessCoreEventsFromIdle();
604
605   /**
606    * Gets path for data/resource storage.
607    * @param[out] path Path for data/resource storage
608    */
609   void GetDataStoragePath(std::string& path);
610
611   /**
612    * Sets up system information if needs
613    */
614   void SetupSystemInformation();
615
616   /**
617    * Adds a callback to be run when entering an idle state.
618    *
619    * A callback of the following type should be used:
620    * @code
621    *   bool MyFunction();
622    * @endcode
623    * This callback will be called repeatedly as long as it returns true. A return of 0 deletes this callback.
624    */
625   bool AddIdleEnterer( CallbackBase* callback, bool forceAdd );
626
627   /**
628    * Removes a previously added the idle enterer callback.
629    */
630   void RemoveIdleEnterer( CallbackBase* callback );
631
632 private:
633
634   /**
635    * Constructor
636    * @param[in]  window       window handle
637    * @param[in]  adaptor      The public adaptor
638    * @param[in]  surface      A render surface can be one of the following
639    *                          - Pixmap, adaptor will use existing Pixmap to draw on to
640    *                          - Window, adaptor will use existing Window to draw on to
641    * @param[in]  environmentOptions  A pointer to the environment options. If NULL then one is created.
642    */
643   Adaptor( Dali::Integration::SceneHolder window, Dali::Adaptor& adaptor, Dali::RenderSurfaceInterface* surface, EnvironmentOptions* environmentOptions );
644
645 private: // Types
646
647   enum State
648   {
649     READY,                     ///< Initial state before Adaptor::Start is called.
650     RUNNING,                   ///< Adaptor is running.
651     PAUSED,                    ///< Adaptor has been paused.
652     PAUSED_WHILE_HIDDEN,       ///< Adaptor is paused while window is hidden (& cannot be resumed until window is shown).
653     PAUSED_WHILE_INITIALIZING, ///< Adaptor is paused while application is initializing.
654     STOPPED,                   ///< Adaptor has been stopped.
655   };
656
657   // There is no weak handle for BaseHandle in DALi, but we can't ref count the window here,
658   // so we have to store the raw pointer.
659   using WindowContainer = std::vector<Dali::Internal::Adaptor::SceneHolder*>;
660   using ObserverContainer = std::vector<LifeCycleObserver*>;
661
662 private: // Data
663
664   AdaptorSignalType                     mResizedSignal;               ///< Resized signal.
665   AdaptorSignalType                     mLanguageChangedSignal;       ///< Language changed signal.
666   WindowCreatedSignalType               mWindowCreatedSignal;    ///< Window created signal.
667
668   Dali::Adaptor&                        mAdaptor;                     ///< Reference to public adaptor instance.
669   State                                 mState;                       ///< Current state of the adaptor
670   Dali::Integration::Core*              mCore;                        ///< Dali Core
671   ThreadController*                     mThreadController;            ///< Controls the threads
672
673   std::unique_ptr< GraphicsInterface >  mGraphics;                    ///< Graphics interface
674   Dali::DisplayConnection*              mDisplayConnection;           ///< Display connection
675   WindowContainer                       mWindows;                     ///< A container of all the Windows that are currently created
676
677   std::unique_ptr<ConfigurationManager> mConfigurationManager;        ///< Configuration manager
678
679   TizenPlatform::TizenPlatformAbstraction* mPlatformAbstraction;      ///< Platform abstraction
680
681   CallbackManager*                      mCallbackManager;             ///< Used to install callbacks
682   bool                                  mNotificationOnIdleInstalled; ///< whether the idle handler is installed to send an notification event
683   TriggerEventInterface*                mNotificationTrigger;         ///< Notification event trigger
684   FeedbackPluginProxy*                  mDaliFeedbackPlugin;          ///< Used to access feedback support
685   FeedbackController*                   mFeedbackController;          ///< Plays feedback effects for Dali-Toolkit UI Controls.
686   Dali::TtsPlayer                       mTtsPlayers[Dali::TtsPlayer::MODE_NUM];                   ///< Provides TTS support
687   ObserverContainer                     mObservers;                   ///< A list of adaptor observer pointers
688   EnvironmentOptions*                   mEnvironmentOptions;          ///< environment options
689   PerformanceInterface*                 mPerformanceInterface;        ///< Performance interface
690   KernelTrace                           mKernelTracer;                ///< Kernel tracer
691   SystemTrace                           mSystemTracer;                ///< System tracer
692   ObjectProfiler*                       mObjectProfiler;              ///< Tracks object lifetime for profiling
693   SocketFactory                         mSocketFactory;               ///< Socket factory
694   ThreadMode                            mThreadMode;                  ///< The thread mode
695   const bool                            mEnvironmentOptionsOwned:1;   ///< Whether we own the EnvironmentOptions (and thus, need to delete it)
696   bool                                  mUseRemoteSurface:1;          ///< whether the remoteSurface is used or not
697
698   std::unique_ptr<Integration::AddOnManager> mAddOnManager;           ///< Pointer to the addon manager
699
700 public:
701   inline static Adaptor& GetImplementation(Dali::Adaptor& adaptor) { return *adaptor.mImpl; }
702 };
703
704 } // namespace Internal
705
706 } // namespace Adaptor
707
708 } // namespace Dali
709
710 #endif // DALI_INTERNAL_ADAPTOR_IMPL_H