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 53a26c5..73a4021 100644 (file)
@@ -1,24 +1,25 @@
 #ifndef __DALI_INTERNAL_THREAD_LOCAL_STORAGE_H__
 #define __DALI_INTERNAL_THREAD_LOCAL_STORAGE_H__
 
-//
-// Copyright (c) 2014 Samsung Electronics Co., Ltd.
-//
-// Licensed under the Flora License, Version 1.0 (the License);
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//     http://floralicense.org/license/
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an AS IS BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
+/*
+ * 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 
 // INTERNAL INCLUDES
-#include <dali/internal/event/common/stage-impl.h>
+#include <dali/internal/event/common/stage-def.h>
 
 namespace Dali
 {
@@ -38,11 +39,9 @@ class NotificationManager;
 class ResourceClient;
 class ResourceManager;
 class ImageFactory;
-class ModelFactory;
-class FontFactory;
 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,18 +129,6 @@ public:
   ImageFactory& GetImageFactory();
 
   /**
-   * Returns the Model Factory
-   * @return reference to the Image Factory
-   */
-  ModelFactory& GetModelFactory();
-
-  /**
-   * Returns the Font Factory
-   * @return reference to the Font Factory
-   */
-  FontFactory& GetFontFactory();
-
-  /**
    * Returns the Shader Factory
    * @return reference to the Shader Factory
    */
@@ -143,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
 
 };