Delete ImageFactory and ImageFactoryCache as they are unused
[platform/core/uifw/dali-core.git] / dali / internal / event / common / thread-local-storage.h
index f0dff0c..4b16f1f 100644 (file)
@@ -2,7 +2,7 @@
 #define __DALI_INTERNAL_THREAD_LOCAL_STORAGE_H__
 
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 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
 {
@@ -38,13 +38,9 @@ class Core;
 class NotificationManager;
 class ResourceClient;
 class ResourceManager;
-class ImageFactory;
-class ModelFactory;
-class FontFactory;
 class ShaderFactory;
-class EventToUpdate;
 class GestureEventProcessor;
-class EmojiFactory;
+class RelayoutController;
 
 namespace SceneGraph
 {
@@ -90,6 +86,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
    */
@@ -120,24 +122,6 @@ public:
   ResourceClient& GetResourceClient();
 
   /**
-   * Returns the Image Factory
-   * @return reference to the Image Factory
-   */
-  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
    */
@@ -145,31 +129,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();
 
   /**
-   * Returns the Emoji factory.
-   * @return a reference to the Emoji factory.
+   * Return the relayout controller
+   * @Return Return a reference to the relayout controller
    */
-  EmojiFactory& GetEmojiFactory();
+  RelayoutController& GetRelayoutController();
 
 private:
 
-  Core* mCore;                            ///< reference to core
+  Core* mCore;                                              ///< reference to core
 
 };