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