Moved Core Rendering API from devel-api to public-api
[platform/core/uifw/dali-core.git] / dali / internal / event / common / thread-local-storage.h
index fe1403c..73a4021 100644 (file)
@@ -2,7 +2,7 @@
 #define __DALI_INTERNAL_THREAD_LOCAL_STORAGE_H__
 
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2015 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@
  */
 
 // INTERNAL INCLUDES
-#include <dali/internal/event/common/stage-impl.h>
+#include <dali/internal/event/common/stage-def.h>
 
 namespace Dali
 {
@@ -39,10 +39,9 @@ class NotificationManager;
 class ResourceClient;
 class ResourceManager;
 class ImageFactory;
-class ModelFactory;
 class ShaderFactory;
-class EventToUpdate;
 class GestureEventProcessor;
+class RelayoutController;
 
 namespace SceneGraph
 {
@@ -88,6 +87,12 @@ public:
   static bool Created();
 
   /**
+   * Get a pointer to the TLS or NULL if not initialized
+   * @return pointer to the TLS
+   */
+  static ThreadLocalStorage* GetInternal();
+
+  /**
    * get platform abstraction
    * @return reference to core
    */
@@ -124,12 +129,6 @@ public:
   ImageFactory& GetImageFactory();
 
   /**
-   * Returns the Model Factory
-   * @return reference to the Image Factory
-   */
-  ModelFactory& GetModelFactory();
-
-  /**
    * Returns the Shader Factory
    * @return reference to the Shader Factory
    */
@@ -137,25 +136,25 @@ public:
 
   /**
    * Returns the current stage.
-   * @return A smart-pointer to the current stage.
+   * @return A pointer to the current stage.
    */
   StagePtr GetCurrentStage();
 
   /**
-   * Return the message controller
-   * @return A reference to the message controller
-   */
-  EventToUpdate& GetEventToUpdate();
-
-  /**
    * Returns the gesture event processor.
    * @return A reference to the gesture event processor.
    */
   GestureEventProcessor& GetGestureEventProcessor();
 
+  /**
+   * Return the relayout controller
+   * @Return Return a reference to the relayout controller
+   */
+  RelayoutController& GetRelayoutController();
+
 private:
 
-  Core* mCore;                            ///< reference to core
+  Core* mCore;                                              ///< reference to core
 
 };