[dali_1.0.34] Merge branch 'tizen' 19/37119/1
authorRichard Huang <r.huang@samsung.com>
Thu, 19 Mar 2015 11:04:33 +0000 (11:04 +0000)
committerRichard Huang <r.huang@samsung.com>
Thu, 19 Mar 2015 11:04:33 +0000 (11:04 +0000)
Change-Id: I9fa8d9d1726f97fc8cd485f629c3815cea8784cf

101 files changed:
adaptors/base/environment-options.cpp
adaptors/base/environment-options.h
adaptors/base/environment-variables.h
adaptors/common/adaptor-impl.cpp
adaptors/common/adaptor-impl.h
adaptors/common/application-impl.cpp
adaptors/common/bitmap-loader-impl.cpp
adaptors/common/framework.h
adaptors/common/gl/egl-image-extensions.cpp
adaptors/common/singleton-service-impl.cpp
adaptors/common/window-impl.h
adaptors/public-api/adaptor-framework/bitmap-saver.cpp
adaptors/public-api/adaptor-framework/window.h
adaptors/public-api/dali-adaptor-version.cpp
adaptors/tizen/file.list
adaptors/wayland/pixmap-image-impl-wl.cpp
adaptors/wayland/window-impl-wl.cpp
adaptors/x11/file.list
adaptors/x11/window-extensions.cpp [new file with mode: 0644]
adaptors/x11/window-extensions.h [new file with mode: 0644]
adaptors/x11/window-impl-x.cpp
automated-tests/src/dali-adaptor-internal/image-loaders.cpp
automated-tests/src/dali-adaptor-internal/image-loaders.h
automated-tests/src/dali-adaptor-internal/utc-Dali-GifLoader.cpp
automated-tests/src/dali-adaptor-internal/utc-Dali-ImageOperations.cpp
automated-tests/src/dali-platform-abstraction/CMakeLists.txt
automated-tests/src/dali-platform-abstraction/resource-collector.cpp
automated-tests/src/dali-platform-abstraction/utc-image-loading-common.h
build/tizen/adaptor/Makefile.am
build/tizen/configure.ac
packaging/dali-adaptor-common.spec
packaging/dali-adaptor-mobile.spec
packaging/dali-adaptor-tv.spec
packaging/dali-adaptor-wearable.spec
packaging/dali-adaptor.spec
platform-abstractions/portable/image-operations.cpp
platform-abstractions/portable/image-operations.h
platform-abstractions/slp/file.list [deleted file]
platform-abstractions/tizen/data-cache/data-cache-impl.cpp [moved from platform-abstractions/slp/data-cache/data-cache-impl.cpp with 99% similarity]
platform-abstractions/tizen/data-cache/data-cache-impl.h [moved from platform-abstractions/slp/data-cache/data-cache-impl.h with 97% similarity]
platform-abstractions/tizen/data-cache/data-cache-io.cpp [moved from platform-abstractions/slp/data-cache/data-cache-io.cpp with 99% similarity]
platform-abstractions/tizen/data-cache/data-cache-io.h [moved from platform-abstractions/slp/data-cache/data-cache-io.h with 97% similarity]
platform-abstractions/tizen/data-cache/data-compression.cpp [moved from platform-abstractions/slp/data-cache/data-compression.cpp with 98% similarity]
platform-abstractions/tizen/data-cache/data-compression.h [moved from platform-abstractions/slp/data-cache/data-compression.h with 91% similarity]
platform-abstractions/tizen/data-cache/metrics-cache.cpp [moved from platform-abstractions/slp/data-cache/metrics-cache.cpp with 99% similarity]
platform-abstractions/tizen/data-cache/metrics-cache.h [moved from platform-abstractions/slp/data-cache/metrics-cache.h with 94% similarity]
platform-abstractions/tizen/data-cache/tests/data-cache-debug.cpp [moved from platform-abstractions/slp/data-cache/tests/data-cache-debug.cpp with 99% similarity]
platform-abstractions/tizen/data-cache/tests/data-cache-debug.h [moved from platform-abstractions/slp/data-cache/tests/data-cache-debug.h with 84% similarity]
platform-abstractions/tizen/dynamics/dynamics-factory.cpp [moved from platform-abstractions/slp/dynamics/dynamics-factory.cpp with 98% similarity]
platform-abstractions/tizen/dynamics/dynamics-factory.h [moved from platform-abstractions/slp/dynamics/dynamics-factory.h with 97% similarity]
platform-abstractions/tizen/file.list [new file with mode: 0755]
platform-abstractions/tizen/font-platform/font-controller-impl.cpp [moved from platform-abstractions/slp/font-platform/font-controller-impl.cpp with 99% similarity]
platform-abstractions/tizen/font-platform/font-controller-impl.h [moved from platform-abstractions/slp/font-platform/font-controller-impl.h with 97% similarity]
platform-abstractions/tizen/image-loaders/image-loader.cpp [moved from platform-abstractions/slp/image-loaders/image-loader.cpp with 99% similarity]
platform-abstractions/tizen/image-loaders/image-loader.h [moved from platform-abstractions/slp/image-loaders/image-loader.h with 92% similarity]
platform-abstractions/tizen/image-loaders/loader-bmp.cpp [moved from platform-abstractions/slp/image-loaders/loader-bmp.cpp with 99% similarity]
platform-abstractions/tizen/image-loaders/loader-bmp.h [moved from platform-abstractions/slp/image-loaders/loader-bmp.h with 91% similarity]
platform-abstractions/tizen/image-loaders/loader-gif.cpp [moved from platform-abstractions/slp/image-loaders/loader-gif.cpp with 99% similarity]
platform-abstractions/tizen/image-loaders/loader-gif.h [moved from platform-abstractions/slp/image-loaders/loader-gif.h with 91% similarity]
platform-abstractions/tizen/image-loaders/loader-ico.cpp [moved from platform-abstractions/slp/image-loaders/loader-ico.cpp with 99% similarity]
platform-abstractions/tizen/image-loaders/loader-ico.h [moved from platform-abstractions/slp/image-loaders/loader-ico.h with 90% similarity]
platform-abstractions/tizen/image-loaders/loader-jpeg-turbo.cpp [moved from platform-abstractions/slp/image-loaders/loader-jpeg-turbo.cpp with 99% similarity]
platform-abstractions/tizen/image-loaders/loader-jpeg.cpp [moved from platform-abstractions/slp/image-loaders/loader-jpeg.cpp with 99% similarity]
platform-abstractions/tizen/image-loaders/loader-jpeg.h [moved from platform-abstractions/slp/image-loaders/loader-jpeg.h with 93% similarity]
platform-abstractions/tizen/image-loaders/loader-ktx.cpp [moved from platform-abstractions/slp/image-loaders/loader-ktx.cpp with 99% similarity]
platform-abstractions/tizen/image-loaders/loader-ktx.h [moved from platform-abstractions/slp/image-loaders/loader-ktx.h with 91% similarity]
platform-abstractions/tizen/image-loaders/loader-png.cpp [moved from platform-abstractions/slp/image-loaders/loader-png.cpp with 99% similarity]
platform-abstractions/tizen/image-loaders/loader-png.h [moved from platform-abstractions/slp/image-loaders/loader-png.h with 93% similarity]
platform-abstractions/tizen/image-loaders/loader-wbmp.cpp [moved from platform-abstractions/slp/image-loaders/loader-wbmp.cpp with 99% similarity]
platform-abstractions/tizen/image-loaders/loader-wbmp.h [moved from platform-abstractions/slp/image-loaders/loader-wbmp.h with 89% similarity]
platform-abstractions/tizen/resource-loader/debug/resource-loader-debug.cpp [moved from platform-abstractions/slp/resource-loader/debug/resource-loader-debug.cpp with 98% similarity]
platform-abstractions/tizen/resource-loader/debug/resource-loader-debug.h [moved from platform-abstractions/slp/resource-loader/debug/resource-loader-debug.h with 77% similarity]
platform-abstractions/tizen/resource-loader/image-encoder.h [moved from platform-abstractions/slp/resource-loader/image-encoder.h with 84% similarity]
platform-abstractions/tizen/resource-loader/loader-font.cpp [moved from platform-abstractions/slp/resource-loader/loader-font.cpp with 92% similarity]
platform-abstractions/tizen/resource-loader/loader-font.h [moved from platform-abstractions/slp/resource-loader/loader-font.h with 88% similarity]
platform-abstractions/tizen/resource-loader/platform-capabilities.h [moved from platform-abstractions/slp/resource-loader/platform-capabilities.h with 88% similarity]
platform-abstractions/tizen/resource-loader/resource-bitmap-requester.cpp [moved from platform-abstractions/slp/resource-loader/resource-bitmap-requester.cpp with 98% similarity]
platform-abstractions/tizen/resource-loader/resource-bitmap-requester.h [moved from platform-abstractions/slp/resource-loader/resource-bitmap-requester.h with 90% similarity]
platform-abstractions/tizen/resource-loader/resource-loader.cpp [moved from platform-abstractions/slp/resource-loader/resource-loader.cpp with 95% similarity]
platform-abstractions/tizen/resource-loader/resource-loader.h [moved from platform-abstractions/slp/resource-loader/resource-loader.h with 95% similarity]
platform-abstractions/tizen/resource-loader/resource-loading-client.h [moved from platform-abstractions/slp/resource-loader/resource-loading-client.h with 97% similarity]
platform-abstractions/tizen/resource-loader/resource-requester-base.cpp [moved from platform-abstractions/slp/resource-loader/resource-requester-base.cpp with 94% similarity]
platform-abstractions/tizen/resource-loader/resource-requester-base.h [moved from platform-abstractions/slp/resource-loader/resource-requester-base.h with 90% similarity]
platform-abstractions/tizen/resource-loader/resource-shader-requester.cpp [moved from platform-abstractions/slp/resource-loader/resource-shader-requester.cpp with 97% similarity]
platform-abstractions/tizen/resource-loader/resource-shader-requester.h [moved from platform-abstractions/slp/resource-loader/resource-shader-requester.h with 90% similarity]
platform-abstractions/tizen/resource-loader/resource-text-requester.cpp [moved from platform-abstractions/slp/resource-loader/resource-text-requester.cpp with 98% similarity]
platform-abstractions/tizen/resource-loader/resource-text-requester.h [moved from platform-abstractions/slp/resource-loader/resource-text-requester.h with 87% similarity]
platform-abstractions/tizen/resource-loader/resource-thread-base.cpp [moved from platform-abstractions/slp/resource-loader/resource-thread-base.cpp with 97% similarity]
platform-abstractions/tizen/resource-loader/resource-thread-base.h [moved from platform-abstractions/slp/resource-loader/resource-thread-base.h with 95% similarity]
platform-abstractions/tizen/resource-loader/resource-thread-image.cpp [moved from platform-abstractions/slp/resource-loader/resource-thread-image.cpp with 99% similarity]
platform-abstractions/tizen/resource-loader/resource-thread-image.h [moved from platform-abstractions/slp/resource-loader/resource-thread-image.h with 92% similarity]
platform-abstractions/tizen/resource-loader/resource-thread-shader.cpp [moved from platform-abstractions/slp/resource-loader/resource-thread-shader.cpp with 98% similarity]
platform-abstractions/tizen/resource-loader/resource-thread-shader.h [moved from platform-abstractions/slp/resource-loader/resource-thread-shader.h with 85% similarity]
platform-abstractions/tizen/resource-loader/resource-thread-text.cpp [moved from platform-abstractions/slp/resource-loader/resource-thread-text.cpp with 99% similarity]
platform-abstractions/tizen/resource-loader/resource-thread-text.h [moved from platform-abstractions/slp/resource-loader/resource-thread-text.h with 95% similarity]
platform-abstractions/tizen/tizen-font-configuration-parser.cpp [moved from platform-abstractions/slp/slp-font-configuration-parser.cpp with 96% similarity]
platform-abstractions/tizen/tizen-font-configuration-parser.h [moved from platform-abstractions/slp/slp-font-configuration-parser.h with 83% similarity]
platform-abstractions/tizen/tizen-logging.cpp [moved from platform-abstractions/slp/slp-logging.cpp with 96% similarity]
platform-abstractions/tizen/tizen-logging.h [moved from platform-abstractions/slp/slp-logging.h with 84% similarity]
platform-abstractions/tizen/tizen-platform-abstraction.cpp [moved from platform-abstractions/slp/slp-platform-abstraction.cpp with 71% similarity]
platform-abstractions/tizen/tizen-platform-abstraction.h [moved from platform-abstractions/slp/slp-platform-abstraction.h with 96% similarity]

index 8f2cb00..94ae425 100644 (file)
@@ -48,6 +48,8 @@ EnvironmentOptions::EnvironmentOptions()
   mPanMinimumDistance(-1),
   mPanMinimumEvents(-1),
   mGlesCallTime(0),
+  mWindowWidth( 0 ),
+  mWindowHeight( 0 ),
   mLogFunction( NULL )
 {
 }
@@ -156,6 +158,16 @@ int EnvironmentOptions::GetMinimumPanEvents() const
   return mPanMinimumEvents;
 }
 
+unsigned int EnvironmentOptions::GetWindowWidth() const
+{
+  return mWindowWidth;
+}
+
+unsigned int EnvironmentOptions::GetWindowHeight() const
+{
+  return mWindowHeight;
+}
+
 void EnvironmentOptions::SetPanGesturePredictionMode( unsigned int mode )
 {
   mPanGesturePredictionMode = mode;
@@ -211,6 +223,16 @@ int EnvironmentOptions::GetGlesCallTime() const
   return mGlesCallTime;
 }
 
+void EnvironmentOptions::SetWindowWidth( int width )
+{
+  mWindowWidth = width;
+}
+
+void EnvironmentOptions::SetWindowHeight( int height )
+{
+  mWindowHeight = height;
+}
+
 bool EnvironmentOptions::PerformanceServerRequired() const
 {
   return ( (GetPerformanceStatsLoggingOptions() > 0) ||
index 29336da..6c98ae1 100644 (file)
@@ -30,6 +30,8 @@ namespace Adaptor
 
 /**
  * Contains environment options which define settings and the ability to install a log function.
+ *
+ * TODO: This file and adaptor needs cleaning up. There should not be any environment options in the adaptor class, only here!
  */
 class EnvironmentOptions
 {
@@ -150,6 +152,16 @@ public:
   int GetMinimumPanEvents() const;
 
   /**
+   * @return The width of the window
+   */
+  unsigned int GetWindowWidth() const;
+
+  /**
+   * @return The height of the window
+   */
+  unsigned int GetWindowHeight() const;
+
+  /**
    * @brief Sets the mode used to predict pan gesture movement
    *
    * @param[in] mode The prediction mode to use
@@ -229,6 +241,16 @@ public:
   int GetGlesCallTime() const;
 
   /**
+   * @brief Sets the width of the window
+   */
+  void SetWindowWidth( int width );
+
+  /**
+   * @brief Sets the width of the window
+   */
+  void SetWindowHeight( int height );
+
+  /**
    * @return true if performance server is required
    */
   bool PerformanceServerRequired() const;
@@ -246,11 +268,13 @@ private:
   int mPanGestureMaxPredictionAmount;             ///< maximum prediction amount for pan gestures
   int mPanGestureMinPredictionAmount;             ///< minimum prediction amount for pan gestures
   int mPanGesturePredictionAmountAdjustment;      ///< adjustment of prediction amount for pan gestures
-  int mPanGestureSmoothingMode;                  ///< prediction mode for pan gestures
-  float mPanGestureSmoothingAmount;              ///< prediction amount for pan gestures
+  int mPanGestureSmoothingMode;                   ///< prediction mode for pan gestures
+  float mPanGestureSmoothingAmount;               ///< prediction amount for pan gestures
   int mPanMinimumDistance;                        ///< minimum distance required before pan starts
   int mPanMinimumEvents;                          ///< minimum events required before pan starts
   int mGlesCallTime;                              ///< time in seconds between status updates
+  unsigned int mWindowWidth;                      ///< width of the window
+  unsigned int mWindowHeight;                     ///< height of the window
 
   Dali::Integration::Log::LogFunction mLogFunction;
 
index 006b058..d0eb97d 100644 (file)
@@ -73,6 +73,10 @@ namespace Adaptor
 
 #define DALI_GLES_CALL_TIME "DALI_GLES_CALL_TIME"
 
+#define DALI_WINDOW_WIDTH "DALI_WINDOW_WIDTH"
+
+#define DALI_WINDOW_HEIGHT "DALI_WINDOW_HEIGHT"
+
 } // namespace Adaptor
 
 } // namespace Internal
index cd87f18..aeb8e3b 100644 (file)
@@ -55,7 +55,7 @@
 #include <vsync-monitor.h>
 #include <object-profiler.h>
 
-#include <slp-logging.h>
+#include <tizen-logging.h>
 
 
 
@@ -135,8 +135,8 @@ void Adaptor::ParseEnvironmentOptions()
 
   unsigned int logPanGesture = GetIntegerEnvironmentVariable( DALI_ENV_LOG_PAN_GESTURE, 0 );
 
-  // all threads here (event, update, and render) will send their logs to SLP Platform's LogMessage handler.
-  Dali::Integration::Log::LogFunction  logFunction(Dali::SlpPlatform::LogMessage);
+  // all threads here (event, update, and render) will send their logs to TIZEN Platform's LogMessage handler.
+  Dali::Integration::Log::LogFunction  logFunction(Dali::TizenPlatform::LogMessage);
 
   mEnvironmentOptions.SetLogOptions( logFunction, logFrameRateFrequency, logupdateStatusFrequency, logPerformanceStats, logPerformanceStatsFrequency, performanceTimeStampOutput, logPanGesture );
 
@@ -215,6 +215,13 @@ void Adaptor::ParseEnvironmentOptions()
     mEnvironmentOptions.SetGlesCallTime( glesCallTime );
   }
 
+  int windowWidth(0), windowHeight(0);
+  if ( GetIntegerEnvironmentVariable( DALI_WINDOW_WIDTH, windowWidth ) && GetIntegerEnvironmentVariable( DALI_WINDOW_HEIGHT, windowHeight ) )
+  {
+    mEnvironmentOptions.SetWindowWidth( windowWidth );
+    mEnvironmentOptions.SetWindowHeight( windowHeight );
+  }
+
   mEnvironmentOptions.InstallLogFunction();
 }
 
@@ -222,7 +229,7 @@ void Adaptor::Initialize(Dali::Configuration::ContextLoss configuration)
 {
   ParseEnvironmentOptions();
 
-  mPlatformAbstraction = new SlpPlatform::SlpPlatformAbstraction;
+  mPlatformAbstraction = new TizenPlatform::TizenPlatformAbstraction;
 
   std::string path;
   GetDataStoragePath( path );
@@ -305,6 +312,10 @@ void Adaptor::Initialize(Dali::Configuration::ContextLoss configuration)
   {
     Integration::SetPanGestureSmoothingAmount(mEnvironmentOptions.GetPanGestureSmoothingAmount());
   }
+  if( mEnvironmentOptions.GetWindowWidth() && mEnvironmentOptions.GetWindowHeight() )
+  {
+    SurfaceResized( PositionSize( 0, 0, mEnvironmentOptions.GetWindowWidth(), mEnvironmentOptions.GetWindowHeight() ));
+  }
 }
 
 Adaptor::~Adaptor()
@@ -364,19 +375,20 @@ void Adaptor::Start()
   // guarantee map the surface before starting render-thread.
   mSurface->Map();
 
-  // NOTE: dpi must be set before starting the render thread
   // use default or command line settings if not run on device
-#ifdef __arm__
-  // set the DPI value for font rendering
-  unsigned int dpiHor, dpiVer;
-  dpiHor = dpiVer = 0;
-  mSurface->GetDpi(dpiHor, dpiVer);
-
-  // tell core about the value
-  mCore->SetDpi(dpiHor, dpiVer);
-#else
-  mCore->SetDpi(mHDpi, mVDpi);
-#endif
+  if( mHDpi == 0 || mVDpi == 0 )
+  {
+    unsigned int dpiHor, dpiVer;
+    dpiHor = dpiVer = 0;
+    mSurface->GetDpi(dpiHor, dpiVer);
+
+    // tell core about the value
+    mCore->SetDpi(dpiHor, dpiVer);
+  }
+  else
+  {
+    mCore->SetDpi(mHDpi, mVDpi);
+  }
 
   // Tell the core the size of the surface just before we start the render-thread
   PositionSize size = mSurface->GetPositionSize();
index 1e5c2ac..63b3463 100644 (file)
@@ -33,7 +33,7 @@
 #include <device-layout.h>
 #include <clipboard.h>
 
-#include <slp-platform-abstraction.h>
+#include <tizen-platform-abstraction.h>
 #include <base/interfaces/adaptor-internal-services.h>
 #include <base/environment-options.h>
 #include <base/core-event-interface.h>
@@ -503,7 +503,7 @@ private: // Data
   EglFactory*                           mEglFactory;                  ///< EGL Factory
 
   RenderSurface*                        mSurface;                     ///< Current surface
-  SlpPlatform::SlpPlatformAbstraction*  mPlatformAbstraction;         ///< Platform abstraction
+  TizenPlatform::TizenPlatformAbstraction*  mPlatformAbstraction;         ///< Platform abstraction
 
   EventHandler*                         mEventHandler;                ///< event handler
   CallbackManager*                      mCallbackManager;             ///< Used to install callbacks
index fa34d9c..dfb9f12 100644 (file)
@@ -31,9 +31,9 @@
 namespace Dali
 {
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
-class SlpPlatformAbstraction;
+class TizenPlatformAbstraction;
 }
 
 namespace Integration
@@ -47,15 +47,6 @@ namespace Internal
 namespace Adaptor
 {
 
-namespace
-{
-// Defaults taken from H2 device
-const unsigned int DEFAULT_WINDOW_WIDTH   = 480;
-const unsigned int DEFAULT_WINDOW_HEIGHT  = 800;
-const float        DEFAULT_HORIZONTAL_DPI = 220;
-const float        DEFAULT_VERTICAL_DPI   = 217;
-}
-
 ApplicationPtr Application::New(
   int* argc,
   char **argv[],
@@ -108,15 +99,12 @@ Application::~Application()
 
 void Application::CreateWindow()
 {
-#ifndef __arm__
-   PositionSize windowPosition(0, 0, DEFAULT_WINDOW_WIDTH, DEFAULT_WINDOW_HEIGHT);
-#else
-   PositionSize windowPosition(0, 0, 0, 0);  // this will use full screen
-#endif
-  if (mCommandLineOptions->stageWidth > 0 && mCommandLineOptions->stageHeight > 0)
+  PositionSize windowPosition(0, 0, 0, 0);  // this will use full screen
+
+  if( mCommandLineOptions->stageWidth > 0 && mCommandLineOptions->stageHeight > 0 )
   {
     // let the command line options over ride
-    windowPosition = PositionSize(0,0,mCommandLineOptions->stageWidth,mCommandLineOptions->stageHeight);
+    windowPosition = PositionSize( 0, 0, mCommandLineOptions->stageWidth, mCommandLineOptions->stageHeight );
   }
 
   mWindow = Dali::Window::New( windowPosition, mName, mWindowMode == Dali::Application::TRANSPARENT );
@@ -128,16 +116,17 @@ void Application::CreateAdaptor()
 
   mAdaptor = &Dali::Adaptor::New( mWindow, mBaseLayout, mContextLossConfiguration );
 
-  // Allow DPI to be overridden from command line.
-  unsigned int hDPI=DEFAULT_HORIZONTAL_DPI;
-  unsigned int vDPI=DEFAULT_VERTICAL_DPI;
-
   std::string dpiStr = mCommandLineOptions->stageDPI;
   if(!dpiStr.empty())
   {
+    // Use DPI from command line.
+    unsigned int hDPI = 0;
+    unsigned int vDPI = 0;
+
     sscanf(dpiStr.c_str(), "%ux%u", &hDPI, &vDPI);
+
+    Internal::Adaptor::Adaptor::GetImplementation( *mAdaptor ).SetDpi(hDPI, vDPI);
   }
-  Internal::Adaptor::Adaptor::GetImplementation( *mAdaptor ).SetDpi(hDPI, vDPI);
 
   mAdaptor->ResizedSignal().Connect( mSlotDelegate, &Application::OnResize );
 }
index 700e121..7aaeb7d 100644 (file)
@@ -49,7 +49,7 @@ void BitmapLoader::Initialize(const std::string& filename)
 {
   ImageAttributes attributes;
   Integration::BitmapResourceType bitmapResourceType( attributes );
-  Integration::ResourcePointer resource = SlpPlatform::ImageLoader::LoadResourceSynchronously( bitmapResourceType, filename );
+  Integration::ResourcePointer resource = TizenPlatform::ImageLoader::LoadResourceSynchronously( bitmapResourceType, filename );
 
   mBitmap = static_cast<Integration::Bitmap*>(resource.Get());
 }
index 4e414ba..aca0ec8 100644 (file)
@@ -35,7 +35,7 @@ namespace Adaptor
 {
 
 /**
- * The Framework class is used to register callbacks with the SLP platform so that
+ * The Framework class is used to register callbacks with the TIZEN platform so that
  * we know when any of the application lifecycle events occur.  This includes events
  * like when our application is to be initialised, terminated, paused, resumed etc.
  */
index 3533d7d..5c47fe0 100644 (file)
@@ -94,7 +94,7 @@ void* EglImageExtensions::CreateImageKHR(EGLClientBuffer pixmap)
                                              attribs );
 
   DALI_ASSERT_DEBUG( EGL_NO_IMAGE_KHR != eglImage && "X11Image::GlExtensionCreate eglCreateImageKHR failed!\n");
-  if( EGL_NO_IMAGE_KHR != eglImage )
+  if( EGL_NO_IMAGE_KHR == eglImage )
   {
     switch( eglGetError() )
     {
index 63e7dfb..fd33464 100644 (file)
 // INTERNAL INCLUDES
 
 #if defined(DEBUG_ENABLED)
-#include <slp-logging.h>
+#include <tizen-logging.h>
 Debug::Filter* gSingletonServiceLogFilter = Debug::Filter::New( Debug::NoLogging, false, "LOG_SINGLETON_SERVICE" );
 
 // Need to define own macro as the log function is not installed when this object is created so no logging is shown with DALI_LOG_INFO at construction and destruction
 #define DALI_LOG_SINGLETON_SERVICE_DIRECT(level, message)                        \
-    if(gSingletonServiceLogFilter && gSingletonServiceLogFilter->IsEnabledFor(level)) { std::string string(message); Dali::SlpPlatform::LogMessage( Debug::DebugInfo, string );  }
+    if(gSingletonServiceLogFilter && gSingletonServiceLogFilter->IsEnabledFor(level)) { std::string string(message); Dali::TizenPlatform::LogMessage( Debug::DebugInfo, string );  }
 
 #define DALI_LOG_SINGLETON_SERVICE(level, format, args...) DALI_LOG_INFO(gSingletonServiceLogFilter, level, format, ## args )
 
index 757e33b..3a56b27 100644 (file)
@@ -171,7 +171,6 @@ public:
    */
   void RotationDone( int orientation, int width, int height );
 
-
 private:
   /**
    * Private constructor.
index 735f40b..2860bff 100644 (file)
@@ -21,9 +21,9 @@
 #include <dali/integration-api/debug.h>
 
 // INTERNAL INCLUDES
-#include <platform-abstractions/slp/resource-loader/resource-loader.h>
-#include <platform-abstractions/slp/image-loaders/loader-jpeg.h>
-#include <platform-abstractions/slp/image-loaders/loader-png.h>
+#include <platform-abstractions/tizen/resource-loader/resource-loader.h>
+#include <platform-abstractions/tizen/image-loaders/loader-jpeg.h>
+#include <platform-abstractions/tizen/image-loaders/loader-png.h>
 #include <image-encoder.h>
 
 namespace Dali
@@ -95,12 +95,12 @@ bool EncodeToFormat( const unsigned char* pixelBuffer,
   {
     case JPG_FORMAT:
     {
-      return SlpPlatform::EncodeToJpeg( pixelBuffer, encodedPixels, width, height, pixelFormat );
+      return TizenPlatform::EncodeToJpeg( pixelBuffer, encodedPixels, width, height, pixelFormat );
       break;
     }
     case PNG_FORMAT:
     {
-      return SlpPlatform::EncodeToPng( pixelBuffer, encodedPixels, width, height, pixelFormat );
+      return TizenPlatform::EncodeToPng( pixelBuffer, encodedPixels, width, height, pixelFormat );
       break;
     }
     default:
@@ -129,7 +129,7 @@ bool EncodeToFile(const unsigned char* const pixelBuffer,
     DALI_LOG_ERROR("Encoding pixels failed");
     return false;
   }
-  return SlpPlatform::ResourceLoader::SaveFile( filename, pixbufEncoded );
+  return TizenPlatform::ResourceLoader::SaveFile( filename, pixbufEncoded );
 }
 
 } // namespace Dali
index c7f2511..aecf25c 100644 (file)
@@ -241,7 +241,6 @@ public:
    * @brief Get the native handle of the window.
    * @return The native handle of the window or an empty handle.
    */
-
   Any GetNativeHandle() const;
 
 public: // Signals
index df04bf8..6585336 100644 (file)
@@ -28,7 +28,7 @@ namespace Dali
 
 const unsigned int ADAPTOR_MAJOR_VERSION = 1;
 const unsigned int ADAPTOR_MINOR_VERSION = 0;
-const unsigned int ADAPTOR_MICRO_VERSION = 33;
+const unsigned int ADAPTOR_MICRO_VERSION = 34;
 const char * const ADAPTOR_BUILD_DATE    = __DATE__ " " __TIME__;
 
 #ifdef DEBUG_ENABLED
index 7ab1a0e..0525f6d 100644 (file)
@@ -7,4 +7,3 @@ adaptor_tizen_internal_src_files = \
   $(adaptor_tizen_dir)/vsync-monitor-tizen.cpp \
   $(adaptor_tizen_dir)/tilt-sensor-impl-tizen.cpp \
   $(adaptor_tizen_dir)/tts-player-impl-tizen.cpp
-
index 38c13a1..3ebc0e7 100644 (file)
@@ -28,7 +28,7 @@
 #include <render-surface.h>
 
 // Allow this to be encoded and saved:
-#include <platform-abstractions/slp/resource-loader/resource-loader.h>
+#include <platform-abstractions/tizen/resource-loader/resource-loader.h>
 #include <bitmap-saver.h>
 
 namespace Dali
index ec119e7..da7a1c0 100644 (file)
@@ -326,22 +326,22 @@ void Window::SetIndicatorActorRotation()
     case Dali::Window::PORTRAIT:
       actor.SetParentOrigin( ParentOrigin::TOP_CENTER );
       actor.SetAnchorPoint(  AnchorPoint::TOP_CENTER );
-      actor.SetRotation( Degree(0), Vector3::ZAXIS );
+      actor.SetOrientation( Degree(0), Vector3::ZAXIS );
       break;
     case Dali::Window::PORTRAIT_INVERSE:
       actor.SetParentOrigin( ParentOrigin::BOTTOM_CENTER );
       actor.SetAnchorPoint(  AnchorPoint::TOP_CENTER );
-      actor.SetRotation( Degree(180), Vector3::ZAXIS );
+      actor.SetOrientation( Degree(180), Vector3::ZAXIS );
       break;
     case Dali::Window::LANDSCAPE:
       actor.SetParentOrigin( ParentOrigin::CENTER_LEFT );
       actor.SetAnchorPoint(  AnchorPoint::TOP_CENTER );
-      actor.SetRotation( Degree(270), Vector3::ZAXIS );
+      actor.SetOrientation( Degree(270), Vector3::ZAXIS );
       break;
     case Dali::Window::LANDSCAPE_INVERSE:
       actor.SetParentOrigin( ParentOrigin::CENTER_RIGHT );
       actor.SetAnchorPoint(  AnchorPoint::TOP_CENTER );
-      actor.SetRotation( Degree(90), Vector3::ZAXIS );
+      actor.SetOrientation( Degree(90), Vector3::ZAXIS );
       break;
   }
 }
index 5356395..8237698 100644 (file)
@@ -22,7 +22,8 @@ adaptor_x11_tizen_internal_src_files = \
   $(_adaptor_x11_internal_src_files) \
   $(adaptor_x11_dir)/accessibility-manager-impl-x.cpp \
   $(adaptor_x11_dir)/framework-x.cpp \
-  $(adaptor_x11_dir)/key-impl-x.cpp
+  $(adaptor_x11_dir)/key-impl-x.cpp \
+  $(adaptor_x11_dir)/window-extensions.cpp
 
 adaptor_x11_tv_internal_src_files = \
   $(_adaptor_x11_internal_src_files) \
@@ -32,3 +33,6 @@ adaptor_x11_tv_internal_src_files = \
 adaptor_x11_internal_default_profile_src_files = \
   $(adaptor_x11_dir)/ecore-x-render-surface-factory.cpp \
   $(adaptor_x11_dir)/system-settings-x.cpp
+
+public_api_adaptor_tizen_x11_header_files = \
+  $(adaptor_x11_dir)/window-extensions.h
diff --git a/adaptors/x11/window-extensions.cpp b/adaptors/x11/window-extensions.cpp
new file mode 100644 (file)
index 0000000..81566b1
--- /dev/null
@@ -0,0 +1,123 @@
+/*
+ * Copyright (c) 2014 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.
+ *
+ */
+
+// CLASS HEADER
+#include <window-extensions.h>
+
+// EXTERNAL INCLUDES
+#include <dali/public-api/object/any.h>
+#include <dali/public-api/common/vector-wrapper.h>
+#include <string>
+#include <sstream>
+#include <Ecore.h>
+#include <Ecore_X.h>
+
+// INTERNAL INCLUDES
+#include <window.h>
+
+namespace
+{
+typedef std::vector< std::string > HintContainer;
+
+const char* HINT_EFFECT_NAME = "wm.comp.win.effect.enable";
+const char* HINT_ENABLE_POSTFIX = ":1";
+const char* HINT_DISABLE_POSTFIX = ":0";
+
+void Tokenize(const std::string& str, HintContainer& hints, const std::string& delimiters = ",")
+{
+  std::string::size_type lastPos = str.find_first_not_of(delimiters, 0);
+  std::string::size_type pos = str.find_first_of(delimiters, lastPos);
+
+  while (std::string::npos != pos || std::string::npos != lastPos)
+  {
+    hints.push_back(str.substr(lastPos, pos - lastPos));
+    lastPos = str.find_first_not_of(delimiters, pos);
+    pos = str.find_first_of(delimiters, lastPos);
+  }
+}
+
+void GetAppliedHints( Dali::Window window, HintContainer& hints )
+{
+  Dali::Any nativeWindow = window.GetNativeHandle();
+  if ( !nativeWindow.Empty() )
+  {
+    Ecore_X_Window ecoreWindow;
+    nativeWindow.Get( ecoreWindow );
+
+    unsigned char* data = NULL;
+    int n = 0;
+    int res = ecore_x_window_prop_property_get( ecoreWindow, ECORE_X_ATOM_E_WINDOW_AUX_HINT_SUPPORTED_LIST,
+                                                ECORE_X_ATOM_STRING, 0, &data, &n );
+
+    if ((res == 8) && (n > 0))
+    {
+      std::stringstream ss;
+      ss << data;
+      Tokenize(ss.str(), hints);
+    }
+
+    free(data);
+  }
+}
+
+}
+
+namespace Dali
+{
+
+namespace WindowExtensions
+{
+
+void EnableEffect( Window window, bool enable )
+{
+  Any nativeWindow = window.GetNativeHandle();
+
+  DALI_ASSERT_ALWAYS( !nativeWindow.Empty() && "Empty window!!!" );
+
+  HintContainer hints;
+  GetAppliedHints( window, hints );
+
+  std::stringstream ss;
+  ss << hints.size() << ":" << HINT_EFFECT_NAME << (enable ? HINT_ENABLE_POSTFIX : HINT_DISABLE_POSTFIX);
+
+  // Applied the window effect to the current window.
+  Ecore_X_Window ecoreWindow;
+  nativeWindow.Get(ecoreWindow);
+  ecore_x_window_prop_property_set( ecoreWindow, ECORE_X_ATOM_E_WINDOW_AUX_HINT,
+                                    ECORE_X_ATOM_STRING, 8,
+                                    (void*)ss.str().c_str(), ss.str().size() + 1 );
+}
+
+bool IsEffectEnabled( Window window )
+{
+  Any nativeWindow = window.GetNativeHandle();
+
+  DALI_ASSERT_ALWAYS( !nativeWindow.Empty() && "Empty window!!!" );
+
+  HintContainer hints;
+  GetAppliedHints( window, hints );
+
+  HintContainer::iterator iter = std::find( hints.begin(), hints.end(), HINT_EFFECT_NAME );
+
+  return iter != hints.end();
+}
+
+} // namespace WindowExtensions
+
+} // namespace Dali
+
+
diff --git a/adaptors/x11/window-extensions.h b/adaptors/x11/window-extensions.h
new file mode 100644 (file)
index 0000000..243d006
--- /dev/null
@@ -0,0 +1,57 @@
+#ifndef __DALI_WINDOW_EXTENSIONS_H__
+#define __DALI_WINDOW_EXTENSIONS_H__
+
+/*
+ * Copyright (c) 2014 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/public-api/common/dali-common.h>
+
+namespace Dali
+{
+class Window;
+
+namespace WindowExtensions
+{
+
+/**
+ * @brief Set whether the effect will enable or not.
+ *
+ * The effect will be shown when the application is launched, quit, shown and hiden.
+ *
+ * @note This function is only specified by tizen.
+ *
+ * @param[in] window The window to set.
+ * @param[in] enable True if the effect is enabled.
+ */
+DALI_IMPORT_API void EnableEffect( Window window, bool enable );
+
+/**
+ * @brief Retrieve whether the effect is enabled or not.
+ *
+ * @note This function is only specified by tizen.
+ *
+ * @param[in] window The window to set.
+ * @return True if the effect is enabled.
+ */
+DALI_IMPORT_API bool IsEffectEnabled( Window window );
+
+} // namespace WindowExtensions
+
+} // namespace Dali
+
+#endif // __DALI_WINDOW_EXTENSIONS_H__
index b8cf712..f5530b6 100644 (file)
@@ -503,22 +503,22 @@ void Window::SetIndicatorActorRotation()
     case Dali::Window::PORTRAIT:
       actor.SetParentOrigin( ParentOrigin::TOP_CENTER );
       actor.SetAnchorPoint(  AnchorPoint::TOP_CENTER );
-      actor.SetRotation( Degree(0), Vector3::ZAXIS );
+      actor.SetOrientation( Degree(0), Vector3::ZAXIS );
       break;
     case Dali::Window::PORTRAIT_INVERSE:
       actor.SetParentOrigin( ParentOrigin::BOTTOM_CENTER );
       actor.SetAnchorPoint(  AnchorPoint::TOP_CENTER );
-      actor.SetRotation( Degree(180), Vector3::ZAXIS );
+      actor.SetOrientation( Degree(180), Vector3::ZAXIS );
       break;
     case Dali::Window::LANDSCAPE:
       actor.SetParentOrigin( ParentOrigin::CENTER_LEFT );
       actor.SetAnchorPoint(  AnchorPoint::TOP_CENTER );
-      actor.SetRotation( Degree(270), Vector3::ZAXIS );
+      actor.SetOrientation( Degree(270), Vector3::ZAXIS );
       break;
     case Dali::Window::LANDSCAPE_INVERSE:
       actor.SetParentOrigin( ParentOrigin::CENTER_RIGHT );
       actor.SetAnchorPoint(  AnchorPoint::TOP_CENTER );
-      actor.SetRotation( Degree(90), Vector3::ZAXIS );
+      actor.SetOrientation( Degree(90), Vector3::ZAXIS );
       break;
   }
 }
index 5e09dff..94fdb8a 100644 (file)
@@ -19,7 +19,7 @@
 #include <dali-test-suite-utils.h>
 
 
-class StubImageLoaderClient : public Dali::SlpPlatform::ResourceLoadingClient
+class StubImageLoaderClient : public Dali::TizenPlatform::ResourceLoadingClient
 {
 public:
   StubImageLoaderClient() {}
index 952d8f1..3cf23ae 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <dali/dali.h>
 #include <dali/integration-api/bitmap.h>
-#include "platform-abstractions/slp/resource-loader/resource-loading-client.h"
+#include "platform-abstractions/tizen/resource-loader/resource-loading-client.h"
 
 // Simple structure to close the file when finished with it.
 struct AutoCloseFile
@@ -82,7 +82,7 @@ private:
  */
 struct LoadFunctions
 {
-  typedef bool (*LoadBitmapFunction)(FILE*, Dali::Integration::Bitmap&, Dali::ImageAttributes&, const Dali::SlpPlatform::ResourceLoadingClient& client);
+  typedef bool (*LoadBitmapFunction)(FILE*, Dali::Integration::Bitmap&, Dali::ImageAttributes&, const Dali::TizenPlatform::ResourceLoadingClient& client);
   typedef bool (*LoadBitmapHeaderFunction)(FILE*, const Dali::ImageAttributes& attrs, unsigned int& width, unsigned int& height );
 
   LoadFunctions( LoadBitmapHeaderFunction _header, LoadBitmapFunction _loader );
index 5a1d881..1093287 100644 (file)
 #include <stdlib.h>
 #include <dali-test-suite-utils.h>
 
-#include "platform-abstractions/slp/image-loaders/loader-gif.h"
+#include "platform-abstractions/tizen/image-loaders/loader-gif.h"
 #include "image-loaders.h"
 
 using namespace Dali;
 
 namespace {
-static const LoadFunctions GifLoaders( SlpPlatform::LoadGifHeader, SlpPlatform::LoadBitmapFromGif );
+static const LoadFunctions GifLoaders( TizenPlatform::LoadGifHeader, TizenPlatform::LoadBitmapFromGif );
 }
 
 
index 9142fa7..ffb7dd7 100644 (file)
@@ -1471,3 +1471,53 @@ int UtcDaliImageOperationsVector2Uint16(void)
 
   END_TEST;
 }
+
+/**
+ * @brief Test the four-tap linear blending for single-byte modes.
+ */
+int UtcDaliImageOperationsBilinearFilter1BPP(void)
+{
+  // Zeros blend to zero:
+  DALI_TEST_EQUALS( 0u, BilinearFilter1Component( 0, 0, 0, 0, 0, 0 ), TEST_LOCATION );
+  DALI_TEST_EQUALS( 0u, BilinearFilter1Component( 0, 0, 0, 0, 32768, 0 ), TEST_LOCATION );
+  DALI_TEST_EQUALS( 0u, BilinearFilter1Component( 0, 0, 0, 0, 65535, 0 ), TEST_LOCATION );
+  DALI_TEST_EQUALS( 0u, BilinearFilter1Component( 0, 0, 0, 0, 0, 32768 ), TEST_LOCATION );
+  DALI_TEST_EQUALS( 0u, BilinearFilter1Component( 0, 0, 0, 0, 0, 65535 ), TEST_LOCATION );
+
+  // Ones and zeros average to 0.5:
+  DALI_TEST_EQUALS( 127u, BilinearFilter1Component( 255, 0, 0, 255, 32768, 32768 ), TEST_LOCATION );
+  DALI_TEST_EQUALS( 127u, BilinearFilter1Component( 0, 255, 0, 255, 32768, 32768 ), TEST_LOCATION );
+
+  // Quarters ones average to 0.25:
+  DALI_TEST_EQUALS( 64u, BilinearFilter1Component( 255, 0, 0, 0, 32768, 32768 ), TEST_LOCATION );
+  DALI_TEST_EQUALS( 64u, BilinearFilter1Component( 0, 255, 0, 0, 32768, 32768 ), TEST_LOCATION );
+  DALI_TEST_EQUALS( 64u, BilinearFilter1Component( 0, 0, 255, 0, 32768, 32768 ), TEST_LOCATION );
+  DALI_TEST_EQUALS( 64u, BilinearFilter1Component( 0, 0, 0, 255, 32768, 32768 ), TEST_LOCATION );
+
+  // Horizontal blends:
+  DALI_TEST_EQUALS( 0u, BilinearFilter1Component( 0, 255, 0, 255, 0, 32768 ), TEST_LOCATION );
+  for( unsigned y = 0; y < 65536u; y += 256 )
+  {
+    // Vertical blends don't change result in this case as there is no vertical gradient in inputs:
+    DALI_TEST_EQUALS( 0u, BilinearFilter1Component( 0, 255, 0, 255, 0, y ), TEST_LOCATION );
+  }
+  DALI_TEST_EQUALS( 5u, BilinearFilter1Component( 0, 255, 0, 255, 1233, 32768 ), TEST_LOCATION );
+  DALI_TEST_EQUALS( 29u, BilinearFilter1Component( 0, 255, 0, 255, 7539, 32768 ), TEST_LOCATION );
+  DALI_TEST_EQUALS( 29u, BilinearFilter1Component( 0, 255, 0, 255, 7539, 32768 ), TEST_LOCATION );
+  DALI_TEST_EQUALS( 67u, BilinearFilter1Component( 0, 255, 0, 255, 17291, 32768 ), TEST_LOCATION );
+  DALI_TEST_EQUALS( 123u, BilinearFilter1Component( 0, 255, 0, 255, 31671, 32768 ), TEST_LOCATION );
+  DALI_TEST_EQUALS( 184u, BilinearFilter1Component( 0, 255, 0, 255, 47231, 32768 ), TEST_LOCATION );
+  DALI_TEST_EQUALS( 207u, BilinearFilter1Component( 0, 255, 0, 255, 53129, 32768 ), TEST_LOCATION );
+  DALI_TEST_EQUALS( 239u, BilinearFilter1Component( 0, 255, 0, 255, 61392, 32768 ), TEST_LOCATION );
+  DALI_TEST_EQUALS( 255u, BilinearFilter1Component( 0, 255, 0, 255, 65535, 32768 ), TEST_LOCATION );
+
+  // Vertical Blends:
+  DALI_TEST_EQUALS( 0u, BilinearFilter1Component( 0, 0, 255, 255, 32768, 0 ), TEST_LOCATION );
+  DALI_TEST_EQUALS( 60u, BilinearFilter1Component( 0, 0, 255, 255, 32768, 15379 ), TEST_LOCATION );
+  DALI_TEST_EQUALS( 130u, BilinearFilter1Component( 0, 0, 255, 255, 32768, 33451 ), TEST_LOCATION );
+  DALI_TEST_EQUALS( 186u, BilinearFilter1Component( 0, 0, 255, 255, 32768, 47836 ), TEST_LOCATION );
+  DALI_TEST_EQUALS( 244u, BilinearFilter1Component( 0, 0, 255, 255, 32768, 62731 ), TEST_LOCATION );
+  DALI_TEST_EQUALS( 255u, BilinearFilter1Component( 0, 0, 255, 255, 32768, 65535 ), TEST_LOCATION );
+
+  END_TEST;
+}
index cb3adba..69d02a6 100644 (file)
@@ -39,7 +39,7 @@ INCLUDE_DIRECTORIES(
     ${${CAPI_LIB}_INCLUDE_DIRS}
     ../dali-adaptor/dali-test-suite-utils
     ../../../adaptors/tizen
-    ../../../platform-abstractions/slp
+    ../../../platform-abstractions/tizen
     ../../../
     /usr/include/freetype2
 )
index bf95844..0654751 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 #include "resource-collector.h"
-#include "slp-platform-abstraction.h"
+#include "tizen-platform-abstraction.h"
 #include <dali/integration-api/debug.h>
 
 namespace Dali
index 7ca44b3..41edfd8 100644 (file)
@@ -22,7 +22,7 @@
 #include <stdlib.h>
 #include <dali/dali.h>
 #include <dali-test-suite-utils.h>
-#include "slp-platform-abstraction.h"
+#include "tizen-platform-abstraction.h"
 #include "resource-collector.h"
 
 using namespace Dali;
index 3a4d79e..f867b66 100644 (file)
@@ -24,9 +24,9 @@ base_adaptor_src_dir = ../../../adaptors/base
 include ../../../adaptors/base/file.list
 
 # Platform Abstraction
-slp_platform_abstraction_src_dir = ../../../platform-abstractions/slp
+tizen_platform_abstraction_src_dir = ../../../platform-abstractions/tizen
 portable_platform_abstraction_src_dir = ../../../platform-abstractions/portable
-include ../../../platform-abstractions/slp/file.list
+include ../../../platform-abstractions/tizen/file.list
 
 # Internal Common
 adaptor_common_dir = ../../../adaptors/common
@@ -70,9 +70,9 @@ include ../../../adaptors/public-api/file.list
 ############# source files #############
 
 if ASSIMP_ENABLED
-slp_platform_abstraction_src_files += $(slp_assimp_src_files)
+tizen_platform_abstraction_src_files += $(tizen_assimp_src_files)
 else
-slp_platform_abstraction_src_files += $(slp_assimp_stubs_src_files)
+tizen_platform_abstraction_src_files += $(tizen_assimp_stubs_src_files)
 endif # ASSIMP_ENABLED
 
 # COMMON
@@ -119,16 +119,6 @@ endif # WAYLAND
 
 endif # MOBILE_PROFILE
 
-# LITE
-if LITE_PROFILE
-
-adaptor_internal_src_files = $(adaptor_common_internal_src_files) \
-                             $(adaptor_common_internal_mobile_profile_src_files) \
-                             $(adaptor_tizen_internal_src_files) \
-                             $(adaptor_x11_tizen_internal_src_files)
-endif
-
-
 # WEARABLE
 if WEARABLE_PROFILE
 
@@ -168,26 +158,26 @@ dalifeedbacktheme_DATA = ${dali_plugin_theme_files}
 endif
 
 if TURBO_JPEG_IS_ON
-  slp_platform_abstraction_src_files += $(slp_turbo_jpeg_loader)
+  tizen_platform_abstraction_src_files += $(tizen_turbo_jpeg_loader)
 else
-  slp_platform_abstraction_src_files += $(slp_jpeg_loader)
+  tizen_platform_abstraction_src_files += $(tizen_jpeg_loader)
 endif
 
 lib_LTLIBRARIES = libdali-adaptor.la
 
 libdali_adaptor_la_SOURCES = \
                      $(base_adaptor_src_files) \
-                     $(slp_platform_abstraction_src_files) \
+                     $(tizen_platform_abstraction_src_files) \
                      $(public_api_src_files) \
                      $(adaptor_internal_src_files)
 
 libdali_adaptor_la_DEPENDENCIES =
 
-# List include directories with more platform-specific (slp) before portable root:
+# List include directories with more platform-specific (tizen) before portable root:
 libdali_adaptor_la_includes = \
                       -I../../.. \
-                      -I../../../platform-abstractions/slp \
-                      -I../../../platform-abstractions/slp/resource-loader \
+                      -I../../../platform-abstractions/tizen \
+                      -I../../../platform-abstractions/tizen/resource-loader \
                       -I../../../platform-abstractions/portable \
                       -I../../../platform-abstractions/ \
                       -I../../../adaptors/public-api \
@@ -303,10 +293,6 @@ libdali_adaptor_la_LIBADD += \
                       $(NATIVE_BUFFER_POOL_LIBS)
 endif
 
-if LITE_PROFILE
-libdali_adaptor_la_CXXFLAGS += $(HAPTIC_CFLAGS)
-endif
-
 if WEARABLE_PROFILE
 libdali_adaptor_la_CXXFLAGS += \
                       $(HAPTIC_CFLAGS) \
@@ -335,6 +321,14 @@ tizenadaptorpublicapi_HEADERS = $(public_api_header_files)
 tizenadaptorframeworkpublicapidir = $(tizenadaptorpublicapidir)/adaptor-framework
 tizenadaptorframeworkpublicapi_HEADERS = $(public_api_adaptor_framework_header_files)
 
+if !UBUNTU_PROFILE
+
+if !WAYLAND
+tizenadaptorframeworkpublicapi_HEADERS += $(public_api_adaptor_tizen_x11_header_files)
+endif # NOT WAYLAND
+
+endif # NOT UBUNTU_PROFILE
+
 tizenadaptordaliheaderdir = $(devincludepath)/dali
 tizenadaptordaliheader_HEADERS = $(adaptor_dali_header_file)
 
index 61ba696..e82b219 100644 (file)
@@ -77,7 +77,7 @@ AC_ARG_ENABLE([feedback],
 AM_CONDITIONAL([USE_BULLET], [test x$BULLET = xyes && test x$enable_bullet = xyes])
 AM_CONDITIONAL([USE_FEEDBACK], [test x$enable_feedback = xyes])
 
-DALI_ADAPTOR_CFLAGS=-DPLATFORM_SLP
+DALI_ADAPTOR_CFLAGS=-DPLATFORM_TIZEN
 
 AC_ARG_ENABLE(exportall,
               [AC_HELP_STRING([--enable-exportall],
@@ -133,13 +133,13 @@ AM_CONDITIONAL(TURBO_JPEG_IS_ON, test $with_jpeg_turbo = yes)
 
 # Tizen Profile options
 AC_ARG_ENABLE([profile],
-              [AC_HELP_STRING([--enable-profile=COMMON,MOBILE,LITE,WEARABLE,TV,UBUNTU],
+              [AC_HELP_STRING([--enable-profile=COMMON,MOBILE,WEARABLE,TV,UBUNTU],
                             [Select the variant of tizen])],
               [enable_profile=$enableval],
               [enable_profile=COMMON])
 
 # Ensure valid profile selected
-if test "x$enable_profile" != "xCOMMON" -a "x$enable_profile" != "xMOBILE" -a "x$enable_profile" != "xLITE" -a "x$enable_profile" != "xWEARABLE" -a "x$enable_profile" != "xTV" -a "x$enable_profile" != "xUBUNTU"; then
+if test "x$enable_profile" != "xCOMMON" -a "x$enable_profile" != "xMOBILE" -a "x$enable_profile" != "xWEARABLE" -a "x$enable_profile" != "xTV" -a "x$enable_profile" != "xUBUNTU"; then
   AC_MSG_ERROR([$enable_profile is an invalid profile])
 fi
 
@@ -152,7 +152,6 @@ DALI_ADAPTOR_CFLAGS="$DALI_ADAPTOR_CFLAGS -DDALI_PROFILE_${enable_profile}"
 DALI_PROFILE_CFLAGS=" -DDALI_PROFILE_${enable_profile}"
 AM_CONDITIONAL([COMMON_PROFILE], [test x$enable_profile = xCOMMON])
 AM_CONDITIONAL([MOBILE_PROFILE], [test x$enable_profile = xMOBILE])
-AM_CONDITIONAL([LITE_PROFILE], [test x$enable_profile = xLITE])
 AM_CONDITIONAL([WEARABLE_PROFILE], [test x$enable_profile = xWEARABLE])
 AM_CONDITIONAL([TV_PROFILE], [test x$enable_profile = xTV])
 AM_CONDITIONAL([UBUNTU_PROFILE], [test x$enable_profile = xUBUNTU])
index 8db23e7..4e59bf0 100644 (file)
@@ -2,7 +2,7 @@
 
 Name:       dali-adaptor
 Summary:    The DALi Tizen Adaptor
-Version:    1.0.33
+Version:    1.0.34
 Release:    1
 Group:      System/Libraries
 License:    Apache-2.0
index 448994b..4889ba6 100644 (file)
@@ -1,6 +1,6 @@
 Name:       dali-adaptor
 Summary:    The DALi Tizen Adaptor
-Version:    1.0.33
+Version:    1.0.34
 Release:    1
 Group:      System/Libraries
 License:    Apache-2.0
index c8fc2b3..13bd8ce 100644 (file)
@@ -1,6 +1,6 @@
 Name:       dali-adaptor
 Summary:    The DALi Tizen Adaptor
-Version:    1.0.33
+Version:    1.0.34
 Release:    1
 Group:      System/Libraries
 License:    Apache-2.0
index d505647..c5bae78 100644 (file)
@@ -1,6 +1,6 @@
 Name:       dali-adaptor
 Summary:    The DALi Tizen Adaptor
-Version:    1.0.33
+Version:    1.0.34
 Release:    1
 Group:      System/Libraries
 License:    Apache-2.0
index 6dfbb0c..8f867c7 100644 (file)
@@ -2,7 +2,7 @@
 
 Name:       dali-adaptor
 Summary:    The DALi Tizen Adaptor
-Version:    1.0.33
+Version:    1.0.34
 Release:    1
 Group:      System/Libraries
 License:    Apache-2.0
index 7910c22..7ccfa55 100644 (file)
@@ -33,10 +33,49 @@ namespace Platform
 
 namespace
 {
+
 using Integration::Bitmap;
 using Integration::BitmapPtr;
 typedef unsigned char PixelBuffer;
 
+/**
+ * @brief 4 byte pixel structure.
+ */
+struct Pixel4Bytes
+{
+  uint8_t r;
+  uint8_t g;
+  uint8_t b;
+  uint8_t a;
+} __attribute__((packed, aligned(4))); //< Tell the compiler it is okay to use a single 32 bit load.
+
+/**
+ * @brief RGB888 pixel structure.
+ */
+struct Pixel3Bytes
+{
+  uint8_t r;
+  uint8_t g;
+  uint8_t b;
+} __attribute__((packed, aligned(1)));
+
+/**
+ * @brief RGB565 pixel typedefed from a short.
+ *
+ * Access fields by manual shifting and masking.
+ */
+typedef uint16_t PixelRGB565;
+
+/**
+ * @brief a Pixel composed of two independent byte components.
+ */
+struct Pixel2Bytes
+{
+  uint8_t l;
+  uint8_t a;
+} __attribute__((packed, aligned(2))); //< Tell the compiler it is okay to use a single 16 bit load.
+
+
 #if defined(DEBUG_ENABLED)
 /**
  * Disable logging of image operations or make it verbose from the commandline
@@ -299,16 +338,27 @@ ImageDimensions FitToScalingMode( ImageDimensions requestedSize, ImageDimensions
 }
 
 /**
- * @brief Construct a bitmap object from a copy of the pixel array passed in.
+ * @brief Construct a bitmap with format and dimensions requested.
  */
-BitmapPtr MakeBitmap(const uint8_t * const pixels, Pixel::Format pixelFormat, unsigned int width, unsigned int height )
+BitmapPtr MakeEmptyBitmap( Pixel::Format pixelFormat, unsigned int width, unsigned int height )
 {
-  DALI_ASSERT_DEBUG( pixels && "Null bitmap buffer to copy." );
   DALI_ASSERT_DEBUG( Pixel::GetBytesPerPixel(pixelFormat) && "Compressed formats not supported." );
 
   // Allocate a pixel buffer to hold the image passed in:
   Integration::BitmapPtr newBitmap = Integration::Bitmap::New( Integration::Bitmap::BITMAP_2D_PACKED_PIXELS, ResourcePolicy::DISCARD );
   newBitmap->GetPackedPixelsProfile()->ReserveBuffer( pixelFormat, width, height, width, height );
+  return newBitmap;
+}
+
+/**
+ * @brief Construct a bitmap object from a copy of the pixel array passed in.
+ */
+BitmapPtr MakeBitmap( const uint8_t * const pixels, Pixel::Format pixelFormat, unsigned int width, unsigned int height )
+{
+  DALI_ASSERT_DEBUG( pixels && "Null bitmap buffer to copy." );
+
+  // Allocate a pixel buffer to hold the image passed in:
+  Integration::BitmapPtr newBitmap = MakeEmptyBitmap( pixelFormat, width, height );
 
   // Copy over the pixels from the downscaled image that was generated in-place in the pixel buffer of the input bitmap:
   memcpy( newBitmap->GetBuffer(), pixels, width * height * Pixel::GetBytesPerPixel( pixelFormat ) );
@@ -470,17 +520,29 @@ Integration::BitmapPtr DownscaleBitmap( Integration::Bitmap& bitmap,
     const unsigned int filteredHeight = filteredDimensions.GetHeight();
 
     // Run a filter to scale down the bitmap if it needs it:
-    if( (filteredWidth < shrunkWidth || filteredHeight < shrunkHeight) &&
-        (filterMode == ImageAttributes::Nearest || filterMode == ImageAttributes::Linear ||
-         filterMode == ImageAttributes::BoxThenNearest || filterMode == ImageAttributes::BoxThenLinear) )
+    bool filtered = false;
+    if( filteredWidth < shrunkWidth || filteredHeight < shrunkHeight )
     {
-      ///@note If a linear filter is requested, we do our best with a point filter for now.
-      PointSample( bitmap.GetBuffer(), shrunkWidth, shrunkHeight, pixelFormat, bitmap.GetBuffer(), filteredWidth, filteredHeight );
-
-      outputBitmap =  MakeBitmap( bitmap.GetBuffer(), pixelFormat, filteredWidth, filteredHeight );
+      if( filterMode == ImageAttributes::Linear || filterMode == ImageAttributes::BoxThenLinear ||
+          filterMode == ImageAttributes::Nearest || filterMode == ImageAttributes::BoxThenNearest )
+      {
+        outputBitmap = MakeEmptyBitmap( pixelFormat, filteredWidth, filteredHeight );
+        if( outputBitmap )
+        {
+          if( filterMode == ImageAttributes::Linear || filterMode == ImageAttributes::BoxThenLinear )
+          {
+            LinearSample( bitmap.GetBuffer(), ImageDimensions(shrunkWidth, shrunkHeight), pixelFormat, outputBitmap->GetBuffer(), filteredDimensions );
+          }
+          else
+          {
+            PointSample( bitmap.GetBuffer(), shrunkWidth, shrunkHeight, pixelFormat, outputBitmap->GetBuffer(), filteredWidth, filteredHeight );
+          }
+          filtered = true;
+        }
+      }
     }
     // Copy out the 2^x downscaled, box-filtered pixels if no secondary filter (point or linear) was applied:
-    else if( shrunkWidth < bitmapWidth || shrunkHeight < bitmapHeight )
+    if( filtered == false && ( shrunkWidth < bitmapWidth || shrunkHeight < bitmapHeight ) )
     {
       outputBitmap = MakeBitmap( bitmap.GetBuffer(), pixelFormat, shrunkWidth, shrunkHeight );
     }
@@ -821,6 +883,10 @@ void DownscaleInPlacePow2( unsigned char * const pixels,
       {
         Internal::Platform::DownscaleInPlacePow2SingleBytePerPixel( pixels, inputWidth, inputHeight, desiredWidth, desiredHeight, dimensionTest, outWidth, outHeight );
       }
+      else
+      {
+        DALI_ASSERT_DEBUG( false == "Inner branch conditions don't match outer branch." );
+      }
     }
   }
   else
@@ -829,11 +895,11 @@ void DownscaleInPlacePow2( unsigned char * const pixels,
   }
 }
 
-void DownscaleInPlacePow2RGB888( unsigned char * const pixels,
-                                 const unsigned int inputWidth,
-                                 const unsigned int inputHeight,
-                                 const unsigned int desiredWidth,
-                                 const unsigned int desiredHeight,
+void DownscaleInPlacePow2RGB888( unsigned char *pixels,
+                                 unsigned int inputWidth,
+                                 unsigned int inputHeight,
+                                 unsigned int desiredWidth,
+                                 unsigned int desiredHeight,
                                  BoxDimensionTest dimensionTest,
                                  unsigned& outWidth,
                                  unsigned& outHeight )
@@ -841,11 +907,11 @@ void DownscaleInPlacePow2RGB888( unsigned char * const pixels,
   DownscaleInPlacePow2Generic<3, HalveScanlineInPlaceRGB888, AverageScanlines3>( pixels, inputWidth, inputHeight, desiredWidth, desiredHeight, dimensionTest, outWidth, outHeight );
 }
 
-void DownscaleInPlacePow2RGBA8888( unsigned char * const pixels,
-                                   const unsigned int inputWidth,
-                                   const unsigned int inputHeight,
-                                   const unsigned int desiredWidth,
-                                   const unsigned int desiredHeight,
+void DownscaleInPlacePow2RGBA8888( unsigned char * pixels,
+                                   unsigned int inputWidth,
+                                   unsigned int inputHeight,
+                                   unsigned int desiredWidth,
+                                   unsigned int desiredHeight,
                                    BoxDimensionTest dimensionTest,
                                    unsigned& outWidth,
                                    unsigned& outHeight )
@@ -871,11 +937,11 @@ void DownscaleInPlacePow2RGB565( unsigned char * pixels,
  *
  * For 2-byte formats such as lum8alpha8, but not packed 16 bit formats like RGB565.
  */
-void DownscaleInPlacePow2ComponentPair( unsigned char * const pixels,
-                                        const unsigned int inputWidth,
-                                        const unsigned int inputHeight,
-                                        const unsigned int desiredWidth,
-                                        const unsigned int desiredHeight,
+void DownscaleInPlacePow2ComponentPair( unsigned char *pixels,
+                                        unsigned int inputWidth,
+                                        unsigned int inputHeight,
+                                        unsigned int desiredWidth,
+                                        unsigned int desiredHeight,
                                         BoxDimensionTest dimensionTest,
                                         unsigned& outWidth,
                                         unsigned& outHeight )
@@ -898,9 +964,15 @@ void DownscaleInPlacePow2SingleBytePerPixel( unsigned char * pixels,
 namespace
 {
 
-// Point sample an image to a new resolution (like GL_NEAREST).
+/**
+ * @brief Point sample an image to a new resolution (like GL_NEAREST).
+ *
+ * Template is used purely as a type-safe code generator in this one
+ * compilation unit. Generated code is inlined into type-specific wrapper
+ * functions below which are exported to rest of module.
+ */
 template<typename PIXEL>
-void PointSampleAddressablePixels( const uint8_t * inPixels,
+inline void PointSampleAddressablePixels( const uint8_t * inPixels,
                                    unsigned int inputWidth,
                                    unsigned int inputHeight,
                                    uint8_t * outPixels,
@@ -950,9 +1022,7 @@ void PointSampleAddressablePixels( const uint8_t * inPixels,
 
 }
 
-/*
- * RGBA8888
- */
+// RGBA8888
 void PointSample4BPP( const unsigned char * inPixels,
                       unsigned int inputWidth,
                       unsigned int inputHeight,
@@ -963,9 +1033,7 @@ void PointSample4BPP( const unsigned char * inPixels,
   PointSampleAddressablePixels<uint32_t>( inPixels, inputWidth, inputHeight, outPixels, desiredWidth, desiredHeight );
 }
 
-/*
- * RGB565, LA88
- */
+// RGB565, LA88
 void PointSample2BPP( const unsigned char * inPixels,
                       unsigned int inputWidth,
                       unsigned int inputHeight,
@@ -976,9 +1044,7 @@ void PointSample2BPP( const unsigned char * inPixels,
   PointSampleAddressablePixels<uint16_t>( inPixels, inputWidth, inputHeight, outPixels, desiredWidth, desiredHeight );
 }
 
-/*
- * L8, A8
- */
+// L8, A8
 void PointSample1BPP( const unsigned char * inPixels,
                       unsigned int inputWidth,
                       unsigned int inputHeight,
@@ -989,8 +1055,7 @@ void PointSample1BPP( const unsigned char * inPixels,
   PointSampleAddressablePixels<uint8_t>( inPixels, inputWidth, inputHeight, outPixels, desiredWidth, desiredHeight );
 }
 
-/*
- * RGB888
+/* RGB888
  * RGB888 is a special case as its pixels are not aligned addressable units.
  */
 void PointSample3BPP( const uint8_t * inPixels,
@@ -1016,20 +1081,22 @@ void PointSample3BPP( const uint8_t * inPixels,
   unsigned int inY = 0; //< 16.16 fixed-point input image y-coord.
   for( unsigned int outY = 0; outY < desiredHeight; ++outY )
   {
-    const uint8_t* const inScanline = &inPixels[inputWidth * (inY >> 16u) * BYTES_PER_PIXEL];
+    const unsigned int integerY = (inY + (1u << 15u)) >> 16u;
+    const uint8_t* const inScanline = &inPixels[inputWidth * integerY * BYTES_PER_PIXEL];
     uint8_t* const outScanline = &outPixels[desiredWidth * outY * BYTES_PER_PIXEL];
     unsigned int inX = 0; //< 16.16 fixed-point input image x-coord.
 
     for( unsigned int outX = 0; outX < desiredWidth * BYTES_PER_PIXEL; outX += BYTES_PER_PIXEL )
     {
-      // Truncate the fixed-point input coordinate to the address of the input pixel to sample:
-      const uint8_t* const inPixelAddress = &inScanline[(inX >> 16u) * BYTES_PER_PIXEL];
+      // Round the fixed-point input coordinate to the address of the input pixel to sample:
+      const unsigned int integerX = (inX + (1u << 15u)) >> 16u;
+      const uint8_t* const inPixelAddress = &inScanline[integerX * BYTES_PER_PIXEL];
 
       // Issue loads for all pixel color components up-front:
       const unsigned int c0 = inPixelAddress[0];
       const unsigned int c1 = inPixelAddress[1];
       const unsigned int c2 = inPixelAddress[2];
-      ///@ToDo: Benchmark one 32bit load that will be unaligned 2/3 of the time + 3 rotate and masks, versus these three aligned byte loads.
+      ///@ToDo: Optimise - Benchmark one 32bit load that will be unaligned 2/3 of the time + 3 rotate and masks, versus these three aligned byte loads, versus using an RGB packed, aligned(1) struct and letting compiler pick a strategy.
 
       // Output the pixel components:
       outScanline[outX]     = c0;
@@ -1056,13 +1123,13 @@ void PointSample( const unsigned char * inPixels,
   // Check the pixel format is one that is supported:
   if( pixelFormat == Pixel::RGBA8888 || pixelFormat == Pixel::RGB888 || pixelFormat == Pixel::RGB565 || pixelFormat == Pixel::LA88 || pixelFormat == Pixel::L8 || pixelFormat == Pixel::A8 )
   {
-    if( pixelFormat == Pixel::RGBA8888 )
+    if( pixelFormat == Pixel::RGB888 )
     {
-      PointSample4BPP( inPixels, inputWidth, inputHeight, outPixels, desiredWidth, desiredHeight );
+      PointSample3BPP( inPixels, inputWidth, inputHeight, outPixels, desiredWidth, desiredHeight );
     }
-    else if( pixelFormat == Pixel::RGB888 )
+    else if( pixelFormat == Pixel::RGBA8888 )
     {
-      PointSample3BPP( inPixels, inputWidth, inputHeight, outPixels, desiredWidth, desiredHeight );
+      PointSample4BPP( inPixels, inputWidth, inputHeight, outPixels, desiredWidth, desiredHeight );
     }
     else if( pixelFormat == Pixel::RGB565 || pixelFormat == Pixel::LA88 )
     {
@@ -1072,6 +1139,10 @@ void PointSample( const unsigned char * inPixels,
     {
       PointSample1BPP( inPixels, inputWidth, inputHeight, outPixels, desiredWidth, desiredHeight );
     }
+    else
+    {
+      DALI_ASSERT_DEBUG( false == "Inner branch conditions don't match outer branch." );
+    }
   }
   else
   {
@@ -1079,6 +1150,219 @@ void PointSample( const unsigned char * inPixels,
   }
 }
 
+// Linear sampling group below
+
+namespace
+{
+
+/** @brief Blend 4 pixels together using horizontal and vertical weights. */
+inline uint8_t BilinearFilter1BPPByte( uint8_t tl, uint8_t tr, uint8_t bl, uint8_t br, unsigned int fractBlendHorizontal, unsigned int fractBlendVertical )
+{
+  return BilinearFilter1Component( tl, tr, bl, br, fractBlendHorizontal, fractBlendVertical );
+}
+
+/** @copydoc BilinearFilter1BPPByte */
+inline Pixel2Bytes BilinearFilter2Bytes( Pixel2Bytes tl, Pixel2Bytes tr, Pixel2Bytes bl, Pixel2Bytes br, unsigned int fractBlendHorizontal, unsigned int fractBlendVertical )
+{
+  Pixel2Bytes pixel;
+  pixel.l = BilinearFilter1Component( tl.l, tr.l, bl.l, br.l, fractBlendHorizontal, fractBlendVertical );
+  pixel.a = BilinearFilter1Component( tl.a, tr.a, bl.a, br.a, fractBlendHorizontal, fractBlendVertical );
+  return pixel;
+}
+
+/** @copydoc BilinearFilter1BPPByte */
+inline Pixel3Bytes BilinearFilterRGB888( Pixel3Bytes tl, Pixel3Bytes tr, Pixel3Bytes bl, Pixel3Bytes br, unsigned int fractBlendHorizontal, unsigned int fractBlendVertical )
+{
+  Pixel3Bytes pixel;
+  pixel.r = BilinearFilter1Component( tl.r, tr.r, bl.r, br.r, fractBlendHorizontal, fractBlendVertical );
+  pixel.g = BilinearFilter1Component( tl.g, tr.g, bl.g, br.g, fractBlendHorizontal, fractBlendVertical );
+  pixel.b = BilinearFilter1Component( tl.b, tr.b, bl.b, br.b, fractBlendHorizontal, fractBlendVertical );
+  return pixel;
+}
+
+/** @copydoc BilinearFilter1BPPByte */
+inline PixelRGB565 BilinearFilterRGB565( PixelRGB565 tl, PixelRGB565 tr, PixelRGB565 bl, PixelRGB565 br, unsigned int fractBlendHorizontal, unsigned int fractBlendVertical )
+{
+  const PixelRGB565 pixel = (BilinearFilter1Component( tl >> 11u, tr >> 11u, bl >> 11u, br >> 11u, fractBlendHorizontal, fractBlendVertical ) << 11u) +
+                            (BilinearFilter1Component( (tl >> 5u) & 63u, (tr >> 5u) & 63u, (bl >> 5u) & 63u, (br >> 5u) & 63u, fractBlendHorizontal, fractBlendVertical ) << 5u) +
+                             BilinearFilter1Component( tl & 31u, tr & 31u, bl & 31u, br & 31u, fractBlendHorizontal, fractBlendVertical );
+  return pixel;
+}
+
+/** @copydoc BilinearFilter1BPPByte */
+inline Pixel4Bytes BilinearFilter4Bytes( Pixel4Bytes tl, Pixel4Bytes tr, Pixel4Bytes bl, Pixel4Bytes br, unsigned int fractBlendHorizontal, unsigned int fractBlendVertical )
+{
+  Pixel4Bytes pixel;
+  pixel.r = BilinearFilter1Component( tl.r, tr.r, bl.r, br.r, fractBlendHorizontal, fractBlendVertical );
+  pixel.g = BilinearFilter1Component( tl.g, tr.g, bl.g, br.g, fractBlendHorizontal, fractBlendVertical );
+  pixel.b = BilinearFilter1Component( tl.b, tr.b, bl.b, br.b, fractBlendHorizontal, fractBlendVertical );
+  pixel.a = BilinearFilter1Component( tl.a, tr.a, bl.a, br.a, fractBlendHorizontal, fractBlendVertical );
+  return pixel;
+}
+
+/**
+ * @brief Generic version of bilinear sampling image resize function.
+ * @note Limited to one compilation unit and exposed through type-specific
+ * wrapper functions below.
+ */
+template<
+  typename PIXEL,
+  PIXEL (*BilinearFilter) ( PIXEL tl, PIXEL tr, PIXEL bl, PIXEL br, unsigned int fractBlendHorizontal, unsigned int fractBlendVertical ),
+  bool DEBUG_ASSERT_ALIGNMENT
+>
+inline void LinearSampleGeneric( const unsigned char * __restrict__ inPixels,
+                       ImageDimensions inputDimensions,
+                       unsigned char * __restrict__ outPixels,
+                       ImageDimensions desiredDimensions )
+{
+  const unsigned int inputWidth = inputDimensions.GetWidth();
+  const unsigned int inputHeight = inputDimensions.GetHeight();
+  const unsigned int desiredWidth = desiredDimensions.GetWidth();
+  const unsigned int desiredHeight = desiredDimensions.GetHeight();
+
+  DALI_ASSERT_DEBUG( ((outPixels >= inPixels + inputWidth   * inputHeight   * sizeof(PIXEL)) ||
+                      (inPixels >= outPixels + desiredWidth * desiredHeight * sizeof(PIXEL))) &&
+                     "Input and output buffers cannot overlap.");
+  if( DEBUG_ASSERT_ALIGNMENT )
+  {
+    DALI_ASSERT_DEBUG( ((uint64_t) inPixels)  % sizeof(PIXEL) == 0 && "Pixel pointers need to be aligned to the size of the pixels (E.g., 4 bytes for RGBA, 2 bytes for RGB565, ...)." );
+    DALI_ASSERT_DEBUG( ((uint64_t) outPixels) % sizeof(PIXEL) == 0 && "Pixel pointers need to be aligned to the size of the pixels (E.g., 4 bytes for RGBA, 2 bytes for RGB565, ...)." );
+  }
+
+  if( inputWidth < 1u || inputHeight < 1u || desiredWidth < 1u || desiredHeight < 1u )
+  {
+    return;
+  }
+  const PIXEL* const inAligned = reinterpret_cast<const PIXEL*>(inPixels);
+  PIXEL* const       outAligned = reinterpret_cast<PIXEL*>(outPixels);
+  const unsigned int deltaX = (inputWidth  << 16u) / desiredWidth;
+  const unsigned int deltaY = (inputHeight << 16u) / desiredHeight;
+
+  unsigned int inY = 0;
+  for( unsigned int outY = 0; outY < desiredHeight; ++outY )
+  {
+    PIXEL* const outScanline = &outAligned[desiredWidth * outY];
+
+    // Find the two scanlines to blend and the weight to blend with:
+    const unsigned int integerY1 = inY >> 16u;
+    const unsigned int integerY2 = integerY1 >= inputHeight ? integerY1 : integerY1 + 1;
+    const unsigned int inputYWeight = inY & 65535u;
+
+    DALI_ASSERT_DEBUG( integerY1 < inputHeight );
+    DALI_ASSERT_DEBUG( integerY2 < inputHeight );
+
+    const PIXEL* const inScanline1 = &inAligned[inputWidth * integerY1];
+    const PIXEL* const inScanline2 = &inAligned[inputWidth * integerY2];
+
+    unsigned int inX = 0;
+    for( unsigned int outX = 0; outX < desiredWidth; ++outX )
+    {
+      // Work out the two pixel scanline offsets for this cluster of four samples:
+      const unsigned int integerX1 = inX >> 16u;
+      const unsigned int integerX2 = integerX1 >= inputWidth ? integerX1 : integerX1 + 1;
+
+      // Execute the loads:
+      const PIXEL pixel1 = inScanline1[integerX1];
+      const PIXEL pixel2 = inScanline2[integerX1];
+      const PIXEL pixel3 = inScanline1[integerX2];
+      const PIXEL pixel4 = inScanline2[integerX2];
+      ///@ToDo Optimise - for 1 and 2  and 4 byte types to execute a single 2, 4, or 8 byte load per pair (caveat clamping) and let half of them be unaligned.
+
+      // Weighted bilinear filter:
+      const unsigned int inputXWeight = inX & 65535u;
+      outScanline[outX] = BilinearFilter( pixel1, pixel3, pixel2, pixel4, inputXWeight, inputYWeight );
+
+      inX += deltaX;
+    }
+    inY += deltaY;
+  }
+}
+
+}
+
+// Format-specific linear scaling instantiations:
+
+void LinearSample1BPP( const unsigned char * __restrict__ inPixels,
+                       ImageDimensions inputDimensions,
+                       unsigned char * __restrict__ outPixels,
+                       ImageDimensions desiredDimensions )
+{
+  LinearSampleGeneric<uint8_t, BilinearFilter1BPPByte, false>( inPixels, inputDimensions, outPixels, desiredDimensions );
+}
+
+void LinearSample2BPP( const unsigned char * __restrict__ inPixels,
+                       ImageDimensions inputDimensions,
+                       unsigned char * __restrict__ outPixels,
+                       ImageDimensions desiredDimensions )
+{
+  LinearSampleGeneric<Pixel2Bytes, BilinearFilter2Bytes, true>( inPixels, inputDimensions, outPixels, desiredDimensions );
+}
+
+void LinearSampleRGB565( const unsigned char * __restrict__ inPixels,
+                       ImageDimensions inputDimensions,
+                       unsigned char * __restrict__ outPixels,
+                       ImageDimensions desiredDimensions )
+{
+  LinearSampleGeneric<PixelRGB565, BilinearFilterRGB565, true>( inPixels, inputDimensions, outPixels, desiredDimensions );
+}
+
+void LinearSample3BPP( const unsigned char * __restrict__ inPixels,
+                       ImageDimensions inputDimensions,
+                       unsigned char * __restrict__ outPixels,
+                       ImageDimensions desiredDimensions )
+{
+  LinearSampleGeneric<Pixel3Bytes, BilinearFilterRGB888, false>( inPixels, inputDimensions, outPixels, desiredDimensions );
+}
+
+void LinearSample4BPP( const unsigned char * __restrict__ inPixels,
+                       ImageDimensions inputDimensions,
+                       unsigned char * __restrict__ outPixels,
+                       ImageDimensions desiredDimensions )
+{
+  LinearSampleGeneric<Pixel4Bytes, BilinearFilter4Bytes, true>( inPixels, inputDimensions, outPixels, desiredDimensions );
+}
+
+// Dispatch to a format-appropriate linear sampling function:
+void LinearSample( const unsigned char * __restrict__ inPixels,
+                   ImageDimensions inDimensions,
+                   Pixel::Format pixelFormat,
+                   unsigned char * __restrict__ outPixels,
+                   ImageDimensions outDimensions )
+{
+  // Check the pixel format is one that is supported:
+  if( pixelFormat == Pixel::RGB888 || pixelFormat == Pixel::RGBA8888 || pixelFormat == Pixel::L8 || pixelFormat == Pixel::A8 || pixelFormat == Pixel::LA88 || pixelFormat == Pixel::RGB565 )
+  {
+    if( pixelFormat == Pixel::RGB888 )
+    {
+      LinearSample3BPP( inPixels, inDimensions, outPixels, outDimensions );
+    }
+    else if( pixelFormat == Pixel::RGBA8888 )
+    {
+      LinearSample4BPP( inPixels, inDimensions, outPixels, outDimensions );
+    }
+    else if( pixelFormat == Pixel::L8 || pixelFormat == Pixel::A8 )
+    {
+      LinearSample1BPP( inPixels, inDimensions, outPixels, outDimensions );
+    }
+    else if( pixelFormat == Pixel::LA88 )
+    {
+      LinearSample2BPP( inPixels, inDimensions, outPixels, outDimensions );
+    }
+    else if ( pixelFormat == Pixel::RGB565 )
+    {
+      LinearSampleRGB565( inPixels, inDimensions, outPixels, outDimensions );
+    }
+    else
+    {
+      DALI_ASSERT_DEBUG( false == "Inner branch conditions don't match outer branch." );
+    }
+  }
+  else
+  {
+    DALI_LOG_INFO( gImageOpsLogFilter, Dali::Integration::Log::Verbose, "Bitmap was not linear sampled: unsupported pixel format: %u.\n", unsigned(pixelFormat) );
+  }
+}
+
 } /* namespace Platform */
 } /* namespace Internal */
 } /* namespace Dali */
index 2d26725..a8cd6a0 100644 (file)
 #ifndef DALI_INTERNAL_PLATFORM_IMAGE_OPERATIONS_H_
 #define DALI_INTERNAL_PLATFORM_IMAGE_OPERATIONS_H_
 
+// EXTERNAL INCLUDES
+#include <stdint.h>
+
 // INTERNAL INCLUDES
 #include <dali/integration-api/bitmap.h>
 #include <dali/public-api/images/image-attributes.h>
 
-// EXTERNAL INCLUDES
-#include <stdint.h>
-
 namespace Dali
 {
 namespace Internal
@@ -127,11 +127,6 @@ private:
 };
 
 /**
- * @brief Human readable text output.
- */
-std::ostream& operator<<( std::ostream& o, const Vector2Uint16& vector );
-
-/**
  * @brief The integer dimensions of an image or a region of an image packed into
  *        16 bits per component.
  * @note  This can only be used for images of up to 65535 x 65535 pixels.
@@ -338,6 +333,71 @@ void PointSample1BPP( const unsigned char * inPixels,
                       unsigned int desiredWidth,
                       unsigned int desiredHeight );
 
+/**
+ * @brief Resample input image to output image using a bilinear filter.
+ *
+ * Each output pixel is formed of a weighted sum of a 2x2 block of four input
+ * pixels
+ * @pre inPixels must not alias outPixels. The input image should be a totally
+ * separate buffer from the input one.
+ */
+void LinearSample( const unsigned char * __restrict__ inPixels,
+                   ImageDimensions inDimensions,
+                   Pixel::Format pixelFormat,
+                   unsigned char * __restrict__ outPixels,
+                   ImageDimensions outDimensions );
+
+/**
+ * @copydoc LinearSample
+ *
+ * Specialised for one byte per pixel formats.
+ */
+void LinearSample1BPP( const unsigned char * __restrict__ inPixels,
+                       ImageDimensions inputDimensions,
+                       unsigned char * __restrict__ outPixels,
+                       ImageDimensions desiredDimensions );
+
+/**
+ * @copydoc LinearSample
+ *
+ * Specialised for two byte per pixel formats.
+ */
+void LinearSample2BPP( const unsigned char * __restrict__ inPixels,
+                       ImageDimensions inputDimensions,
+                       unsigned char * __restrict__ outPixels,
+                       ImageDimensions desiredDimensions );
+
+/**
+ * @copydoc LinearSample
+ *
+ * Specialised for RGB565 16 bit pixel format.
+ */
+void LinearSampleRGB565( const unsigned char * __restrict__ inPixels,
+                       ImageDimensions inputDimensions,
+                       unsigned char * __restrict__ outPixels,
+                       ImageDimensions desiredDimensions );
+
+/**
+ * @copydoc LinearSample
+ *
+ * Specialised for three byte per pixel formats like RGB888.
+ */
+void LinearSample3BPP( const unsigned char * __restrict__ inPixels,
+                       ImageDimensions inputDimensions,
+                       unsigned char * __restrict__ outPixels,
+                       ImageDimensions desiredDimensions );
+
+/**
+ * @copydoc LinearSample
+ *
+ * Specialised for four byte per pixel formats like RGBA888.
+ * @note, If used on RGBA8888, the A component will be blended independently.
+ */
+void LinearSample4BPP( const unsigned char * __restrict__ inPixels,
+                       ImageDimensions inputDimensions,
+                       unsigned char * __restrict__ outPixels,
+                       ImageDimensions desiredDimensions );
+
 /**@}*/
 
 /**
@@ -472,6 +532,42 @@ inline uint32_t AveragePixelRGB565( uint32_t a, uint32_t b )
   return avg;
 }
 
+/** @return The weighted blend of two integers as a 16.16 fixed-point number, given a 0.16 fixed-point blending factor. */
+inline unsigned int WeightedBlendIntToFixed1616(unsigned int a, unsigned int b, unsigned int fractBlend )
+{
+  DALI_ASSERT_DEBUG( fractBlend <= 65535u && "Factor should be in 0.16 fixed-point." );
+  const unsigned int weightedAFixed = a * (65535u - fractBlend);
+  const unsigned int weightedBFixed = b * fractBlend;
+  const unsigned blended = (weightedAFixed + weightedBFixed);
+  return blended;
+}
+
+/** @brief Blend two 16.16 inputs to give a 16.32 output. */
+inline uint64_t WeightedBlendFixed1616ToFixed1632(unsigned int a, unsigned int b, unsigned int fractBlend )
+{
+  DALI_ASSERT_DEBUG( fractBlend <= 65535u && "Factor should be in 0.16 fixed-point." );
+  // Blend while promoting intermediates to 16.32 fixed point:
+  const uint64_t weightedAFixed = uint64_t(a) * (65535u - fractBlend);
+  const uint64_t weightedBFixed = uint64_t(b) * fractBlend;
+  const uint64_t blended = (weightedAFixed + weightedBFixed);
+  return blended;
+}
+
+/**
+ * @brief Blend 4 taps into one value using horizontal and vertical weights.
+ */
+inline unsigned int BilinearFilter1Component(unsigned int tl, unsigned int tr, unsigned int bl, unsigned int br, unsigned int fractBlendHorizontal, unsigned int fractBlendVertical )
+{
+  DALI_ASSERT_DEBUG( fractBlendHorizontal <= 65535u && "Factor should be in 0.16 fixed-point." );
+  DALI_ASSERT_DEBUG( fractBlendVertical   <= 65535u && "Factor should be in 0.16 fixed-point." );
+  //
+  const unsigned int topBlend = WeightedBlendIntToFixed1616( tl, tr, fractBlendHorizontal );
+  const unsigned int botBlend = WeightedBlendIntToFixed1616( bl, br, fractBlendHorizontal );
+  const uint64_t blended2x2 = WeightedBlendFixed1616ToFixed1632( topBlend, botBlend, fractBlendVertical );
+  const unsigned int rounded = (blended2x2 + (1u << 31u) ) >> 32u;
+  return rounded;
+}
+
 /**@}*/
 
 } /* namespace Platform */
diff --git a/platform-abstractions/slp/file.list b/platform-abstractions/slp/file.list
deleted file mode 100755 (executable)
index e852554..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-# Add local source files here:
-
-slp_platform_abstraction_src_files = \
-  $(slp_platform_abstraction_src_dir)/slp-platform-abstraction.cpp \
-  $(slp_platform_abstraction_src_dir)/slp-logging.cpp \
-  $(slp_platform_abstraction_src_dir)/slp-font-configuration-parser.cpp \
-  $(slp_platform_abstraction_src_dir)/font-platform/font-controller-impl.cpp \
-  $(slp_platform_abstraction_src_dir)/data-cache/data-cache-io.cpp \
-  $(slp_platform_abstraction_src_dir)/data-cache/data-cache-impl.cpp \
-  $(slp_platform_abstraction_src_dir)/data-cache/tests/data-cache-debug.cpp \
-  $(slp_platform_abstraction_src_dir)/data-cache/data-compression.cpp \
-  $(slp_platform_abstraction_src_dir)/data-cache/metrics-cache.cpp \
-  $(slp_platform_abstraction_src_dir)/dynamics/dynamics-factory.cpp \
-  \
-  $(slp_platform_abstraction_src_dir)/resource-loader/loader-font.cpp \
-  $(slp_platform_abstraction_src_dir)/resource-loader/resource-loader.cpp \
-  $(slp_platform_abstraction_src_dir)/resource-loader/resource-requester-base.cpp \
-  $(slp_platform_abstraction_src_dir)/resource-loader/resource-bitmap-requester.cpp \
-  $(slp_platform_abstraction_src_dir)/resource-loader/resource-shader-requester.cpp \
-  $(slp_platform_abstraction_src_dir)/resource-loader/resource-text-requester.cpp \
-  \
-  $(slp_platform_abstraction_src_dir)/resource-loader/resource-thread-base.cpp \
-  $(slp_platform_abstraction_src_dir)/resource-loader/resource-thread-image.cpp \
-  $(slp_platform_abstraction_src_dir)/resource-loader/resource-thread-shader.cpp \
-  $(slp_platform_abstraction_src_dir)/resource-loader/resource-thread-text.cpp \
-  \
-  \
-  $(slp_platform_abstraction_src_dir)/resource-loader/debug/resource-loader-debug.cpp \
-  \
-  $(slp_platform_abstraction_src_dir)/image-loaders/loader-bmp.cpp \
-  $(slp_platform_abstraction_src_dir)/image-loaders/loader-gif.cpp \
-  $(slp_platform_abstraction_src_dir)/image-loaders/loader-png.cpp \
-  $(slp_platform_abstraction_src_dir)/image-loaders/loader-ico.cpp \
-  $(slp_platform_abstraction_src_dir)/image-loaders/loader-ktx.cpp \
-  $(slp_platform_abstraction_src_dir)/image-loaders/loader-wbmp.cpp \
-  $(slp_platform_abstraction_src_dir)/image-loaders/image-loader.cpp \
-  $(portable_platform_abstraction_src_dir)/image-operations.cpp
-
-slp_turbo_jpeg_loader = \
-  $(slp_platform_abstraction_src_dir)/image-loaders/loader-jpeg-turbo.cpp
-
-slp_jpeg_loader = \
-  $(slp_platform_abstraction_src_dir)/image-loaders/loader-jpeg.cpp
-
-# Add public headers here:
-
-# platform_abstraction_header_files =
@@ -31,7 +31,7 @@
 namespace Dali
 {
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 namespace
@@ -582,7 +582,7 @@ unsigned int DataCache::GetMaxEncodedDataSize() const
   }
 }
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
@@ -594,5 +594,5 @@ Dali::Platform::DataCache* Dali::Platform::DataCache::New(
     unsigned int maxDataSize,
     unsigned int maxNumberEntries)
 {
-  return new Dali::SlpPlatform::DataCache( mode, compressionMode, fileName, maxDataSize, maxNumberEntries );
+  return new Dali::TizenPlatform::DataCache( mode, compressionMode, fileName, maxDataSize, maxNumberEntries );
 }
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_DATA_CACHE_H__
-#define __DALI_SLP_PLATFORM_DATA_CACHE_H__
+#ifndef __DALI_TIZEN_PLATFORM_DATA_CACHE_H__
+#define __DALI_TIZEN_PLATFORM_DATA_CACHE_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -25,7 +25,7 @@
 namespace Dali
 {
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 /**
@@ -238,8 +238,8 @@ private:
 
 };
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
-#endif // __DALI_SLP_PLATFORM_DATA_CACHE_H__
+#endif // __DALI_TIZEN_PLATFORM_DATA_CACHE_H__
@@ -32,7 +32,7 @@
 namespace Dali
 {
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 namespace DataCacheIo
@@ -631,6 +631,6 @@ std::size_t GetHeaderSize()
 }
 } // namespace DataCacheIO
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_DATA_CACHE_IO_H__
-#define __DALI_SLP_PLATFORM_DATA_CACHE_IO_H__
+#ifndef __DALI_TIZEN_PLATFORM_DATA_CACHE_IO_H__
+#define __DALI_TIZEN_PLATFORM_DATA_CACHE_IO_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -23,7 +23,7 @@
 
 namespace Dali
 {
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 /**
@@ -230,8 +230,8 @@ std::size_t GetHeaderSize();
 
 } // namespace DataCacheIO
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
-#endif // __DALI_SLP_PLATFORM_DATA_CACHE_IO_H__
+#endif // __DALI_TIZEN_PLATFORM_DATA_CACHE_IO_H__
@@ -21,7 +21,7 @@
 
 namespace Dali
 {
-namespace SlpPlatform
+namespace TizenPlatform
 {
 namespace DataCompression
 {
@@ -149,6 +149,6 @@ bool DecodeRle( const unsigned char* input,
 
 } // DataCompression
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_DATA_COMPRESSION_H__
-#define __DALI_SLP_PLATFORM_DATA_COMPRESSION_H__
+#ifndef __DALI_TIZEN_PLATFORM_DATA_COMPRESSION_H__
+#define __DALI_TIZEN_PLATFORM_DATA_COMPRESSION_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -21,7 +21,7 @@
 
 namespace Dali
 {
-namespace SlpPlatform
+namespace TizenPlatform
 {
 namespace DataCompression
 {
@@ -65,8 +65,8 @@ bool DecodeRle( const unsigned char* input,
 
 } // namespace DataCompression
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
-#endif // __DALI_SLP_PLATFORM_DATA_COMPRESSION_H__
+#endif // __DALI_TIZEN_PLATFORM_DATA_COMPRESSION_H__
@@ -171,7 +171,7 @@ void WriteGlyphGlobalMetrics( std::ofstream &file, const Integration::GlobalMetr
 
 } // Anonymous namespace
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 namespace MetricsCache
 {
@@ -293,5 +293,5 @@ void Write( const std::string& fontFamily, const std::string& fontStyle, const I
 
 
 } // MetricsCache
-} // SlpPlatform
+} // TizenPlatform
 } // Dali
@@ -1,5 +1,5 @@
-#ifndef DALI_SLP_PLATFORM_METRICS_CACHE_H
-#define DALI_SLP_PLATFORM_METRICS_CACHE_H
+#ifndef DALI_TIZEN_PLATFORM_METRICS_CACHE_H
+#define DALI_TIZEN_PLATFORM_METRICS_CACHE_H
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -23,7 +23,7 @@
 
 namespace Dali
 {
-namespace SlpPlatform
+namespace TizenPlatform
 {
 namespace MetricsCache
 {
@@ -63,7 +63,7 @@ bool Read( const std::string& fontFamily, const std::string& fontStyle, std::vec
 void Write( const std::string& fontFamily, const std::string& fontStyle, const Integration::GlyphSet& glyphSet );
 
 } // MetricsCache
-} // SlpPlatform
+} // TizenPlatform
 } // Dali
 
 #endif //DALI_INTEGRATION_METRICS_CACHE_H
@@ -32,7 +32,7 @@
 namespace Dali
 {
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 namespace DataCacheIo
@@ -346,7 +346,7 @@ void ThreadedStressTest()
 
 } // namespace DataCacheIO
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 #endif // #ifdef DATA_CACHE_DEBUG
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_DATA_CACHE_DEBUG_H__
-#define __DALI_SLP_PLATFORM_DATA_CACHE_DEBUG_H__
+#ifndef __DALI_TIZEN_PLATFORM_DATA_CACHE_DEBUG_H__
+#define __DALI_TIZEN_PLATFORM_DATA_CACHE_DEBUG_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -23,7 +23,7 @@
 
 namespace Dali
 {
-namespace SlpPlatform
+namespace TizenPlatform
 {
 namespace DataCacheIo
 {
@@ -39,9 +39,9 @@ void ThreadedStressTest();
 
 } // namespace DataCacheIO
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
-#endif // __DALI_SLP_PLATFORM_DATA_CACHE_DEBUG_H__
+#endif // __DALI_TIZEN_PLATFORM_DATA_CACHE_DEBUG_H__
 #endif // #ifdef DATA_CACHE_DEBUG
@@ -32,7 +32,7 @@
 namespace Dali
 {
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 namespace
@@ -192,6 +192,6 @@ Integration::DynamicsShape* DynamicsFactory::CreateDynamicsShape()
   return dynamicsShape;
 }
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
@@ -26,7 +26,7 @@
 namespace Dali
 {
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 /**
@@ -90,7 +90,7 @@ private:
 
 }; // class DynamicsFactory
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
diff --git a/platform-abstractions/tizen/file.list b/platform-abstractions/tizen/file.list
new file mode 100755 (executable)
index 0000000..7691504
--- /dev/null
@@ -0,0 +1,47 @@
+# Add local source files here:
+
+tizen_platform_abstraction_src_files = \
+  $(tizen_platform_abstraction_src_dir)/tizen-platform-abstraction.cpp \
+  $(tizen_platform_abstraction_src_dir)/tizen-logging.cpp \
+  $(tizen_platform_abstraction_src_dir)/tizen-font-configuration-parser.cpp \
+  $(tizen_platform_abstraction_src_dir)/font-platform/font-controller-impl.cpp \
+  $(tizen_platform_abstraction_src_dir)/data-cache/data-cache-io.cpp \
+  $(tizen_platform_abstraction_src_dir)/data-cache/data-cache-impl.cpp \
+  $(tizen_platform_abstraction_src_dir)/data-cache/tests/data-cache-debug.cpp \
+  $(tizen_platform_abstraction_src_dir)/data-cache/data-compression.cpp \
+  $(tizen_platform_abstraction_src_dir)/data-cache/metrics-cache.cpp \
+  $(tizen_platform_abstraction_src_dir)/dynamics/dynamics-factory.cpp \
+  \
+  $(tizen_platform_abstraction_src_dir)/resource-loader/loader-font.cpp \
+  $(tizen_platform_abstraction_src_dir)/resource-loader/resource-loader.cpp \
+  $(tizen_platform_abstraction_src_dir)/resource-loader/resource-requester-base.cpp \
+  $(tizen_platform_abstraction_src_dir)/resource-loader/resource-bitmap-requester.cpp \
+  $(tizen_platform_abstraction_src_dir)/resource-loader/resource-shader-requester.cpp \
+  $(tizen_platform_abstraction_src_dir)/resource-loader/resource-text-requester.cpp \
+  \
+  $(tizen_platform_abstraction_src_dir)/resource-loader/resource-thread-base.cpp \
+  $(tizen_platform_abstraction_src_dir)/resource-loader/resource-thread-image.cpp \
+  $(tizen_platform_abstraction_src_dir)/resource-loader/resource-thread-shader.cpp \
+  $(tizen_platform_abstraction_src_dir)/resource-loader/resource-thread-text.cpp \
+  \
+  \
+  $(tizen_platform_abstraction_src_dir)/resource-loader/debug/resource-loader-debug.cpp \
+  \
+  $(tizen_platform_abstraction_src_dir)/image-loaders/loader-bmp.cpp \
+  $(tizen_platform_abstraction_src_dir)/image-loaders/loader-gif.cpp \
+  $(tizen_platform_abstraction_src_dir)/image-loaders/loader-png.cpp \
+  $(tizen_platform_abstraction_src_dir)/image-loaders/loader-ico.cpp \
+  $(tizen_platform_abstraction_src_dir)/image-loaders/loader-ktx.cpp \
+  $(tizen_platform_abstraction_src_dir)/image-loaders/loader-wbmp.cpp \
+  $(tizen_platform_abstraction_src_dir)/image-loaders/image-loader.cpp \
+  $(portable_platform_abstraction_src_dir)/image-operations.cpp
+
+tizen_turbo_jpeg_loader = \
+  $(tizen_platform_abstraction_src_dir)/image-loaders/loader-jpeg-turbo.cpp
+
+tizen_jpeg_loader = \
+  $(tizen_platform_abstraction_src_dir)/image-loaders/loader-jpeg.cpp
+
+# Add public headers here:
+
+# platform_abstraction_header_files =
@@ -29,7 +29,7 @@
 namespace Dali
 {
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 #if defined(DEBUG_ENABLED)
@@ -780,12 +780,12 @@ void FontController::ClearPreferredFontList()
   mPreferredFonts.Clear();
 }
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
 // Implementation of Dali::Platform::FontController::New()
 Dali::Platform::FontController* Dali::Platform::FontController::New()
 {
-  return new Dali::SlpPlatform::FontController();
+  return new Dali::TizenPlatform::FontController();
 }
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_FONT_CONTROLLER_H__
-#define __DALI_SLP_PLATFORM_FONT_CONTROLLER_H__
+#ifndef __DALI_TIZEN_PLATFORM_FONT_CONTROLLER_H__
+#define __DALI_TIZEN_PLATFORM_FONT_CONTROLLER_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -36,13 +36,13 @@ struct _FcFontSet;
 namespace Dali
 {
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 typedef Dali::Platform::FontController::FontList FontList;
 
 /**
- * concrete interface for the SLP font controller.
+ * concrete interface for the TIZEN font controller.
  *
  * Font controller currently caches the following:
  * - List of fonts on the system, if the user calls GetFontList()
@@ -248,8 +248,8 @@ private:
 
 };
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
-#endif // __DALI_SLP_PLATFORM_FONT_CONTROLLER_H__
+#endif // __DALI_TIZEN_PLATFORM_FONT_CONTROLLER_H__
@@ -34,7 +34,7 @@ using namespace Dali::Integration;
 
 namespace Dali
 {
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 namespace
@@ -410,5 +410,5 @@ void GetClosestImageSize( ResourcePointer resourceBuffer,
 }
 
 } // ImageLoader
-} // SlpPlatform
+} // TizenPlatform
 } // Dali
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_IMAGE_LOADER_H__
-#define __DALI_SLP_PLATFORM_IMAGE_LOADER_H__
+#ifndef __DALI_TIZEN_PLATFORM_IMAGE_LOADER_H__
+#define __DALI_TIZEN_PLATFORM_IMAGE_LOADER_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -24,7 +24,7 @@
 
 namespace Dali
 {
-namespace SlpPlatform
+namespace TizenPlatform
 {
 namespace ImageLoader
 {
@@ -60,7 +60,7 @@ void GetClosestImageSize( Integration::ResourcePointer resourceBuffer,
                           Vector2 &closestSize );
 
 } // ImageLoader
-} // SlpPlatform
+} // TizenPlatform
 } // Dali
 
-#endif // __DALI_SLP_PLATFORM_IMAGE_LOADER_H__
+#endif // __DALI_TIZEN_PLATFORM_IMAGE_LOADER_H__
@@ -28,7 +28,7 @@ namespace Dali
 {
 using Integration::Bitmap;
 using Dali::Integration::PixelBuffer;
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 namespace
@@ -1359,6 +1359,6 @@ bool LoadBitmapFromBmp( FILE *fp, Bitmap& bitmap, ImageAttributes& attributes, c
   return true;
 }
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_LOADER_BMP_H__
-#define __DALI_SLP_PLATFORM_LOADER_BMP_H__
+#ifndef __DALI_TIZEN_PLATFORM_LOADER_BMP_H__
+#define __DALI_TIZEN_PLATFORM_LOADER_BMP_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -30,7 +30,7 @@ class Bitmap;
 
 struct ImageAttributes;
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 class ResourceLoadingClient;
@@ -61,8 +61,8 @@ bool LoadBitmapFromBmp( FILE *fp, Integration::Bitmap& bitmap, ImageAttributes&
  */
 bool LoadBmpHeader(FILE *fp, const ImageAttributes& attributes, unsigned int &width, unsigned int &height);
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
-#endif // __DALI_SLP_PLATFORM_LOADER_BMP_H__
+#endif // __DALI_TIZEN_PLATFORM_LOADER_BMP_H__
@@ -29,7 +29,7 @@ namespace Dali
 using Integration::Bitmap;
 using Dali::Integration::PixelBuffer;
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 namespace
@@ -317,6 +317,6 @@ bool LoadBitmapFromGif(FILE *fp, Bitmap& bitmap, ImageAttributes& attributes, co
   return true;
 }
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_LOADER_GIF_H__
-#define __DALI_SLP_PLATFORM_LOADER_GIF_H__
+#ifndef __DALI_TIZEN_PLATFORM_LOADER_GIF_H__
+#define __DALI_TIZEN_PLATFORM_LOADER_GIF_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -30,7 +30,7 @@ namespace Integration
 
 struct ImageAttributes;
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 class ResourceLoadingClient;
@@ -62,8 +62,8 @@ bool LoadBitmapFromGif( FILE *fp, Integration::Bitmap& bitmap, ImageAttributes&
  */
 bool LoadGifHeader(FILE *fp, const ImageAttributes& attributes, unsigned int &width, unsigned int &height );
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
-#endif // __DALI_SLP_PLATFORM_LOADER_GIF_H__
+#endif // __DALI_TIZEN_PLATFORM_LOADER_GIF_H__
@@ -64,7 +64,7 @@ namespace Dali
 using Integration::Bitmap;
 using Dali::Integration::PixelBuffer;
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 namespace
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_LOADER_ICO_H__
-#define __DALI_SLP_PLATFORM_LOADER_ICO_H__
+#ifndef __DALI_TIZEN_PLATFORM_LOADER_ICO_H__
+#define __DALI_TIZEN_PLATFORM_LOADER_ICO_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -29,7 +29,7 @@ namespace Integration
 }
 struct ImageAttributes;
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 class ResourceLoadingClient;
@@ -37,7 +37,7 @@ namespace Dali
 {
 using Integration::Bitmap;
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 namespace
@@ -823,6 +823,6 @@ bool LoadJpegHeader(FILE *fp, const ImageAttributes& attributes, unsigned int &w
 }
 
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
@@ -36,7 +36,7 @@ namespace Dali
 {
 using Integration::Bitmap;
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 namespace
@@ -814,7 +814,7 @@ bool JpegRotate90(unsigned char *buffer, int width, int height, int bpp)
   return true;
 }
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_LOADER_JPEG_H__
-#define __DALI_SLP_PLATFORM_LOADER_JPEG_H__
+#ifndef __DALI_TIZEN_PLATFORM_LOADER_JPEG_H__
+#define __DALI_TIZEN_PLATFORM_LOADER_JPEG_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -33,7 +33,7 @@ namespace Integration
 
 struct ImageAttributes;
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 class ResourceLoadingClient;
@@ -78,8 +78,8 @@ bool LoadJpegHeader(FILE *fp, const ImageAttributes& attributes, unsigned int &w
  */
 bool EncodeToJpeg(const unsigned char* pixelBuffer, std::vector< unsigned char >& encodedPixels, std::size_t width, std::size_t height, Pixel::Format pixelFormat, unsigned quality = 80);
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
-#endif // __DALI_SLP_PLATFORM_LOADER_JPEG_H__
+#endif // __DALI_TIZEN_PLATFORM_LOADER_JPEG_H__
@@ -33,7 +33,7 @@ namespace Dali
 using Integration::Bitmap;
 using Dali::Integration::PixelBuffer;
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 namespace
@@ -375,6 +375,6 @@ bool LoadBitmapFromKtx( FILE * const fp, Bitmap& bitmap, ImageAttributes& attrib
   return true;
 }
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_LOADER_KTX_H__
-#define __DALI_SLP_PLATFORM_LOADER_KTX_H__
+#ifndef __DALI_TIZEN_PLATFORM_LOADER_KTX_H__
+#define __DALI_TIZEN_PLATFORM_LOADER_KTX_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -30,7 +30,7 @@ namespace Integration
 
 struct ImageAttributes;
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 class ResourceLoadingClient;
@@ -62,8 +62,8 @@ bool LoadBitmapFromKtx( FILE * const fp, Integration::Bitmap& bitmap, ImageAttri
  */
 bool LoadKtxHeader(FILE * const fp, const ImageAttributes& attributes, unsigned int &width, unsigned int &height);
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
-#endif // __DALI_SLP_PLATFORM_LOADER_KTX_H__
+#endif // __DALI_TIZEN_PLATFORM_LOADER_KTX_H__
@@ -37,7 +37,7 @@ namespace Dali
 using Integration::Bitmap;
 using Dali::Integration::PixelBuffer;
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 namespace
@@ -351,7 +351,7 @@ namespace
    * */
   extern "C" void WriteData(png_structp png_ptr, png_bytep data, png_size_t length)
   {
-    using Dali::SlpPlatform::PngBuffer;
+    using Dali::TizenPlatform::PngBuffer;
     DALI_ASSERT_DEBUG(png_ptr && data);
     if(!png_ptr || !data)
     {
@@ -511,6 +511,6 @@ bool EncodeToPng( const unsigned char* const pixelBuffer, PngBuffer& encodedPixe
   return true;
 }
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_LOADER_PNG_H__
-#define __DALI_SLP_PLATFORM_LOADER_PNG_H__
+#ifndef __DALI_TIZEN_PLATFORM_LOADER_PNG_H__
+#define __DALI_TIZEN_PLATFORM_LOADER_PNG_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -32,7 +32,7 @@ namespace Integration
 }
 struct ImageAttributes;
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 class ResourceLoadingClient;
@@ -78,8 +78,8 @@ typedef std::vector<unsigned char> PngBuffer;
  */
 bool EncodeToPng( const unsigned char* pixelBuffer, PngBuffer& encodedPixels, std::size_t width, std::size_t height, Pixel::Format pixelFormat );
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
-#endif // __DALI_SLP_PLATFORM_LOADER_PNG_H__
+#endif // __DALI_TIZEN_PLATFORM_LOADER_PNG_H__
@@ -33,7 +33,7 @@ namespace Dali
 {
 using Integration::Bitmap;
 using Dali::Integration::PixelBuffer;
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 namespace
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_LOADER_WBMP_H__
-#define __DALI_SLP_PLATFORM_LOADER_WBMP_H__
+#ifndef __DALI_TIZEN_PLATFORM_LOADER_WBMP_H__
+#define __DALI_TIZEN_PLATFORM_LOADER_WBMP_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -29,7 +29,7 @@ namespace Integration
 }
 struct ImageAttributes;
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 class ResourceLoadingClient;
@@ -26,7 +26,7 @@
 
 namespace Dali
 {
-namespace SlpPlatform
+namespace TizenPlatform
 {
 using namespace Dali::Integration;
 
@@ -68,7 +68,7 @@ std::string DebugResourceList(LoadedResource& partialResource)
   return textString;
 }
 
-} //SlpPlatform
+} //TizenPlatform
 } //Dali
 
 #endif
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_RESOURCE_LOADER_DEBUG_H__
-#define __DALI_SLP_PLATFORM_RESOURCE_LOADER_DEBUG_H__
+#ifndef __DALI_TIZEN_PLATFORM_RESOURCE_LOADER_DEBUG_H__
+#define __DALI_TIZEN_PLATFORM_RESOURCE_LOADER_DEBUG_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
 #include <dali/integration-api/debug.h>
 #if defined(DEBUG_ENABLED)
 
-#include <platform-abstractions/slp/resource-loader/resource-loader.h>
+#include <platform-abstractions/tizen/resource-loader/resource-loader.h>
 #include <dali/integration-api/resource-cache.h>
 
 
 namespace Dali
 {
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 extern Debug::Filter* gLoaderFilter;
@@ -35,8 +35,8 @@ extern Debug::Filter* gLoaderFilter;
 std::string DebugRequestList(Integration::TextResourceType::CharacterList& chars);
 std::string DebugResourceList(LoadedResource& partialResource);
 
-} // SlpPlatform
+} // TizenPlatform
 } // Dali
 
 #endif // defined(DEBUG_ENABLED)
-#endif //__DALI_SLP_PLATFORM_RESOURCE_LOADER_DEBUG_H__
+#endif //__DALI_TIZEN_PLATFORM_RESOURCE_LOADER_DEBUG_H__
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_IMAGE_ENCODER_H__
-#define __DALI_SLP_PLATFORM_IMAGE_ENCODER_H__
+#ifndef __DALI_TIZEN_PLATFORM_IMAGE_ENCODER_H__
+#define __DALI_TIZEN_PLATFORM_IMAGE_ENCODER_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -36,4 +36,4 @@ enum FileFormat
 
 } // namespace Dali
 
-#endif //__DALI_SLP_PLATFORM_IMAGE_ENCODER_H__
+#endif //__DALI_TIZEN_PLATFORM_IMAGE_ENCODER_H__
@@ -22,7 +22,7 @@
 
 namespace Dali
 {
-namespace SlpPlatform
+namespace TizenPlatform
 {
 using namespace Dali::Integration;
 
@@ -33,9 +33,9 @@ static Integration::Log::Filter* gLogFilter = Log::Filter::New(Log::General, fal
 } // unnamed namespace
 #endif
 
-static SlpFace* LoadFontFile(const std::string &fileName, FT_Library freeType)
+static TizenFace* LoadFontFile(const std::string &fileName, FT_Library freeType)
 {
-  SlpFace* slpFace = NULL;
+  TizenFace* tizenFace = NULL;
 
   // Open freetype font file
   FILE* fontFile = fopen(fileName.c_str(), "rb");
@@ -64,23 +64,23 @@ static SlpFace* LoadFontFile(const std::string &fileName, FT_Library freeType)
       }
 
       // allocate a buffer for the file (throws a memory exception on failure)
-      slpFace = new SlpFace;
-      slpFace->buffer = new FT_Byte[fileSize];
+      tizenFace = new TizenFace;
+      tizenFace->buffer = new FT_Byte[fileSize];
 
       // read the file
-      unsigned int bytes = fread(slpFace->buffer, 1, fileSize, fontFile);
+      unsigned int bytes = fread(tizenFace->buffer, 1, fileSize, fontFile);
       if (bytes != fileSize)
       {
         DALI_LOG_WARNING("Number of bytes read (%d) does not match the file's size (%d)\n", bytes, fileSize);
       }
 
       // create a freetype face from the memory buffer
-      FT_Error retVal = FT_New_Memory_Face(freeType, slpFace->buffer, fileSize, 0, &slpFace->face);
+      FT_Error retVal = FT_New_Memory_Face(freeType, tizenFace->buffer, fileSize, 0, &tizenFace->face);
       if (retVal != FT_Err_Ok)
       {
         DALI_LOG_WARNING("FT_New_Face failed on %s\n", fileName.c_str());
-        delete slpFace;
-        slpFace = NULL;
+        delete tizenFace;
+        tizenFace = NULL;
       }
     }
 
@@ -88,27 +88,27 @@ static SlpFace* LoadFontFile(const std::string &fileName, FT_Library freeType)
     fclose(fontFile);
   }
 
-  return slpFace;
+  return tizenFace;
 }
 
-SlpFace* LoadFontFace(const std::string &fileName,
+TizenFace* LoadFontFace(const std::string &fileName,
                       const PointSize pointSize,
                       const unsigned int dpiHor, const unsigned int dpiVer,
                       FT_Library freeType)
 {
-  SlpFace* slpFace = LoadFontFile(fileName, freeType);
+  TizenFace* tizenFace = LoadFontFile(fileName, freeType);
 
-  if (NULL != slpFace)
+  if (NULL != tizenFace)
   {
-    FT_Face face = slpFace->face;
+    FT_Face face = tizenFace->face;
 
     // set the char size for glyph scaling
     FT_Error retVal = FT_Set_Char_Size(face, 0, static_cast<unsigned int>(roundf(pointSize.value))<<6, dpiHor, dpiVer);
     if (retVal != FT_Err_Ok)
     {
       DALI_LOG_WARNING("FT_Set_Char_Size failed on %s\n", fileName.c_str());
-      delete slpFace;
-      slpFace = NULL;
+      delete tizenFace;
+      tizenFace = NULL;
     }
     else
     {
@@ -121,27 +121,27 @@ SlpFace* LoadFontFace(const std::string &fileName,
     }
   }
 
-  return slpFace;
+  return tizenFace;
 }
 
 
-SlpFace* LoadFontFace(const std::string &fileName,
+TizenFace* LoadFontFace(const std::string &fileName,
                       const PixelSize pixelSize,
                       FT_Library freeType)
 {
-  SlpFace* slpFace = LoadFontFile(fileName, freeType);
+  TizenFace* tizenFace = LoadFontFile(fileName, freeType);
 
-  if (NULL != slpFace)
+  if (NULL != tizenFace)
   {
-    FT_Face face = slpFace->face;
+    FT_Face face = tizenFace->face;
 
     // set the pixel size for glyph scaling
     FT_Error retVal = FT_Set_Pixel_Sizes(face, pixelSize, pixelSize);
     if (retVal != FT_Err_Ok)
     {
       DALI_LOG_WARNING("FT_Set_Pixel_Sizes failed on %s\n", fileName.c_str());
-      delete slpFace;
-      slpFace = NULL;
+      delete tizenFace;
+      tizenFace = NULL;
     }
     else
     {
@@ -154,7 +154,7 @@ SlpFace* LoadFontFace(const std::string &fileName,
     }
   }
 
-  return slpFace;
+  return tizenFace;
 }
 
 // charcode must be UTF-32 representation
@@ -358,6 +358,6 @@ Integration::BitmapPtr GetGlyphBitmap( FT_Face face, FT_ULong charCode )
   return image;
 }
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_LOADER_FONT_H__
-#define __DALI_SLP_PLATFORM_LOADER_FONT_H__
+#ifndef __DALI_TIZEN_PLATFORM_LOADER_FONT_H__
+#define __DALI_TIZEN_PLATFORM_LOADER_FONT_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -34,17 +34,17 @@ namespace Integration
 class GlyphSet;
 }
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
-struct SlpFace
+struct TizenFace
 {
-  SlpFace()
+  TizenFace()
   {
     face = NULL;
     buffer = NULL;
   }
 
-  ~SlpFace()
+  ~TizenFace()
   {
     if (face)
     {
@@ -69,9 +69,9 @@ struct SlpFace
  * @param [in]    dpiHor    Horizontal dpi
  * @param [in]    dpiVer    Vertical dpi
  * @param [inout] freeType  A handle to the FreeType library resource
- * @return A SlpFace pointer on success, NULL on failure
+ * @return A TizenFace pointer on success, NULL on failure
  */
-SlpFace* LoadFontFace(const std::string &fileName,
+TizenFace* LoadFontFace(const std::string &fileName,
                       const PointSize pointSize,
                       const unsigned int dpiHor, const unsigned int dpiVer,
                       FT_Library freeType);
@@ -80,9 +80,9 @@ SlpFace* LoadFontFace(const std::string &fileName,
  * @param [in]    fileName  Font file name
  * @param [in]    pixelSize Pixel size for freetype source glyph scaling
  * @param [inout] freeType  A handle to the FreeType library resource
- * @return A SlpFace pointer on success, NULL on failure
+ * @return A TizenFace pointer on success, NULL on failure
  */
-SlpFace* LoadFontFace(const std::string &fileName,
+TizenFace* LoadFontFace(const std::string &fileName,
                       const PixelSize pixelSize,
                       FT_Library freeType);
 
@@ -120,8 +120,8 @@ Integration::GlyphSet::Character* GetCharacter(FT_Face face, const FT_ULong char
  */
 Integration::BitmapPtr GetGlyphBitmap( FT_Face face, FT_ULong charCode );
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
-#endif // __DALI_SLP_PLATFORM_LOADER_FONT_H__
+#endif // __DALI_TIZEN_PLATFORM_LOADER_FONT_H__
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_CAPABILITIES_H__
-#define __DALI_SLP_PLATFORM_CAPABILITIES_H__
+#ifndef __DALI_TIZEN_PLATFORM_CAPABILITIES_H__
+#define __DALI_TIZEN_PLATFORM_CAPABILITIES_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -23,7 +23,7 @@
 namespace Dali
 {
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 /**
@@ -52,8 +52,8 @@ inline unsigned int GetTextureDimension( unsigned int size )
 #endif
 }
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
-#endif // __DALI_SLP_PLATFORM_CAPABILITIES_H__
+#endif // __DALI_TIZEN_PLATFORM_CAPABILITIES_H__
@@ -22,7 +22,7 @@ using namespace Dali::Integration;
 
 namespace Dali
 {
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 ResourceBitmapRequester::ResourceBitmapRequester( ResourceLoader& resourceLoader )
@@ -105,5 +105,5 @@ void ResourceBitmapRequester::CancelLoad(Integration::ResourceId id, Integration
   mThreadImageRemote->CancelRequest(id);
 }
 
-} // SlpPlatform
+} // TizenPlatform
 } // Dali
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_RESOURCE_BITMAP_REQUESTER_H__
-#define __DALI_SLP_PLATFORM_RESOURCE_BITMAP_REQUESTER_H__
+#ifndef __DALI_TIZEN_PLATFORM_RESOURCE_BITMAP_REQUESTER_H__
+#define __DALI_TIZEN_PLATFORM_RESOURCE_BITMAP_REQUESTER_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -23,7 +23,7 @@
 
 namespace Dali
 {
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 /**
@@ -78,7 +78,7 @@ protected:
   ResourceThreadImage*          mThreadImageRemote;     ///< Image loader thread object to download images in remote http server
 };
 
-} // SlpPlatform
+} // TizenPlatform
 } // Dali
 
-#endif // __DALI_SLP_PLATFORM_RESOURCE_BITMAP_REQUESTER_H__
+#endif // __DALI_TIZEN_PLATFORM_RESOURCE_BITMAP_REQUESTER_H__
@@ -59,7 +59,7 @@ using boost::unique_lock;
 namespace Dali
 {
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 namespace
@@ -494,16 +494,16 @@ PixelSize ResourceLoader::GetFontLineHeightFromCapsHeight( const std::string& fo
   if (!fontFamily.empty())
   {
     const std::string& fontFileName = GetFontPath( fontFamily, fontStyle );
-    SlpFace* slpFace = LoadFontFace(fontFileName, PixelSize(capsHeight), freeType);
+    TizenFace* tizenFace = LoadFontFace(fontFileName, PixelSize(capsHeight), freeType);
 
-    if (slpFace)
+    if (tizenFace)
     {
-      const float scale = static_cast<float>(capsHeight.value) / ((slpFace->face->ascender / 64.0f) * 0.95f);
+      const float scale = static_cast<float>(capsHeight.value) / ((tizenFace->face->ascender / 64.0f) * 0.95f);
 
-      result.value = static_cast<unsigned int>(roundf(scale * (slpFace->face->height / 64.0f)));
+      result.value = static_cast<unsigned int>(roundf(scale * (tizenFace->face->height / 64.0f)));
 
-      delete slpFace;
-      slpFace = NULL;
+      delete tizenFace;
+      tizenFace = NULL;
     }
   }
 
@@ -577,8 +577,8 @@ GlyphSet* ResourceLoader::GetGlyphData (const TextResourceType& textRequest,
     const bool highQuality(textRequest.mQuality == TextResourceType::TextQualityHigh);
     const unsigned int glyphQuality( highQuality ? GlyphMetrics::HIGH_QUALITY : GlyphMetrics::LOW_QUALITY );
 
-    SlpFace* slpFace = LoadFontFace( fontFileName, PixelSize( HIGH_QUALITY_PIXEL_SIZE), freeType );
-    if (slpFace)
+    TizenFace* tizenFace = LoadFontFace( fontFileName, PixelSize( HIGH_QUALITY_PIXEL_SIZE), freeType );
+    if (tizenFace)
     {
       glyphSet = new GlyphSet();
       glyphSet->mFontHash = fontHash;
@@ -598,7 +598,7 @@ GlyphSet* ResourceLoader::GetGlyphData (const TextResourceType& textRequest,
             then = GetTimeMicroseconds();
           }
 #endif
-          ScopedPointer< GlyphSet::Character > character( GetCharacter(slpFace->face, charCode,
+          ScopedPointer< GlyphSet::Character > character( GetCharacter(tizenFace->face, charCode,
                                                                     DISTANCE_FIELD_SIZE, DISTANCE_FIELD_PADDING, textRequest.mMaxGlyphSize,
                                                                     getBitmap, highQuality ) );
 
@@ -624,7 +624,7 @@ GlyphSet* ResourceLoader::GetGlyphData (const TextResourceType& textRequest,
         }
       }
 
-      delete slpFace;
+      delete tizenFace;
     }
   }
 
@@ -705,16 +705,16 @@ void ResourceLoader::GetGlobalMetrics( FT_Library freeType,
   {
     const std::string& fontFileName = GetFontPath( fontFamily, fontStyle );
 
-    SlpFace* slpFace = LoadFontFace( fontFileName, PixelSize( HIGH_QUALITY_PIXEL_SIZE), freeType );
-    if( slpFace )
+    TizenFace* tizenFace = LoadFontFace( fontFileName, PixelSize( HIGH_QUALITY_PIXEL_SIZE), freeType );
+    if( tizenFace )
     {
       // scale factor for unit scaled glyphs
-      const float xScale = 1.0f / (slpFace->face->size->metrics.x_scale / 65536.0f);
-      const float yScale = 1.0f / (slpFace->face->size->metrics.y_scale / 65536.0f);
+      const float xScale = 1.0f / (tizenFace->face->size->metrics.x_scale / 65536.0f);
+      const float yScale = 1.0f / (tizenFace->face->size->metrics.y_scale / 65536.0f);
 
-      globalMetrics.lineHeight = slpFace->face->height * ONE_OVER_64;
-      globalMetrics.ascender = slpFace->face->ascender * ONE_OVER_64;
-      globalMetrics.unitsPerEM = slpFace->face->units_per_EM * ONE_OVER_64;
+      globalMetrics.lineHeight = tizenFace->face->height * ONE_OVER_64;
+      globalMetrics.ascender = tizenFace->face->ascender * ONE_OVER_64;
+      globalMetrics.unitsPerEM = tizenFace->face->units_per_EM * ONE_OVER_64;
 
       globalMetrics.underlinePosition = -4.f;
       globalMetrics.underlineThickness = 5.f * yScale;
@@ -727,7 +727,7 @@ void ResourceLoader::GetGlobalMetrics( FT_Library freeType,
       globalMetrics.padAdjustX = DISTANCE_FIELD_PADDING * xScale;
       globalMetrics.padAdjustY = DISTANCE_FIELD_PADDING * yScale;
 
-      delete slpFace;
+      delete tizenFace;
     }
   }
 }
@@ -852,12 +852,12 @@ Integration::BitmapPtr ResourceLoader::GetGlyphImage( FT_Library freeType, const
   Integration::BitmapPtr image;
 
   const std::string& fontFileName = GetFontPath( fontFamily, fontStyle );
-  SlpFace* slpFace = LoadFontFace( fontFileName, PixelSize( Font::PointsToPixels( fontSize ) ), freeType );
+  TizenFace* tizenFace = LoadFontFace( fontFileName, PixelSize( Font::PointsToPixels( fontSize ) ), freeType );
 
-  if( NULL != slpFace )
+  if( NULL != tizenFace )
   {
-    image = GetGlyphBitmap( slpFace->face, character );
-    delete slpFace;
+    image = GetGlyphBitmap( tizenFace->face, character );
+    delete tizenFace;
   }
 
   return image;
@@ -874,6 +874,6 @@ const std::string& ResourceLoader::GetFontPath(const std::string& fontFamily, co
   return mImpl->mFontController->GetFontPath(std::make_pair(fontFamily,fontStyle));
 }
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_RESOURCE_LOADER_H__
-#define __DALI_SLP_PLATFORM_RESOURCE_LOADER_H__
+#ifndef __DALI_TIZEN_PLATFORM_RESOURCE_LOADER_H__
+#define __DALI_TIZEN_PLATFORM_RESOURCE_LOADER_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -44,7 +44,7 @@ namespace Platform
 class FontController;
 }
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 /**
@@ -321,27 +321,27 @@ public:
                                std::string& closestFontStyleMatch );
 
   /**
-   * @copydoc SlpPlatformAbstraction::GetFontLineHeightFromCapsHeight
+   * @copydoc TizenPlatformAbstraction::GetFontLineHeightFromCapsHeight
    */
   PixelSize GetFontLineHeightFromCapsHeight(const std::string& fontFamily, const std::string& fontStyle, CapsHeight capsHeight, FT_Library freeType);
 
   /**
-   * @copydoc SlpPlatformAbstraction::GetFontList
+   * @copydoc TizenPlatformAbstraction::GetFontList
    */
   void GetFontList( Dali::Integration::PlatformAbstraction::FontListMode mode, std::vector<std::string>& fontList );
 
   /**
-   * @copydoc SlpPlatformAbstraction::LoadFile()
+   * @copydoc TizenPlatformAbstraction::LoadFile()
    */
   bool LoadFile( const std::string& filename, std::vector< unsigned char >& buffer ) const;
 
   /**
-   * @copydoc SlpPlatformAbstraction::LoadFile()
+   * @copydoc TizenPlatformAbstraction::LoadFile()
    */
   std::string LoadFile(const std::string& filename) const;
 
   /**
-   * @copydoc SlpPlatformAbstraction::SaveFile()
+   * @copydoc TizenPlatformAbstraction::SaveFile()
    */
   static bool SaveFile(const std::string& filename, std::vector< unsigned char >& buffer);
 
@@ -386,8 +386,8 @@ private:
 
 };
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
-#endif // __DALI_SLPPLATFORM_RESOURCE_LOADER_H_
+#endif // __DALI_TIZEN_PLATFORM_RESOURCE_LOADER_H_
@@ -23,7 +23,7 @@
 
 namespace Dali
 {
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 /**
@@ -78,7 +78,7 @@ private:
   StubbedResourceLoadingClient& operator =( StubbedResourceLoadingClient& rhs );
 };
 
-} /* namespace SlpPlatform */
+} /* namespace TizenPlatform */
 } /* namespace Dali */
 
 #endif /* _DALI_PLATFORM_RESOURCE_LOADING_CLIENT_H_ */
@@ -19,7 +19,7 @@
 
 namespace Dali
 {
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 ResourceRequesterBase::ResourceRequesterBase( ResourceLoader& resourceLoader )
@@ -31,5 +31,5 @@ ResourceRequesterBase::~ResourceRequesterBase()
 {
 }
 
-} // Namespace SlpPlatform
+} // Namespace TizenPlatform
 } // Namespace Dali
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_RESOURCE_REQUESTER_BASE_H__
-#define __DALI_SLP_PLATFORM_RESOURCE_REQUESTER_BASE_H__
+#ifndef __DALI_TIZEN_PLATFORM_RESOURCE_REQUESTER_BASE_H__
+#define __DALI_TIZEN_PLATFORM_RESOURCE_REQUESTER_BASE_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -18,7 +18,7 @@
  *
  */
 
-#include <platform-abstractions/slp/resource-loader/resource-loader.h>
+#include <platform-abstractions/tizen/resource-loader/resource-loader.h>
 #include <dali/integration-api/resource-request.h>
 #include <dali/integration-api/resource-cache.h>
 
@@ -29,7 +29,7 @@ namespace Integration
 class ResourceRequest;
 }
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 /**
@@ -106,7 +106,7 @@ private:
   ResourceRequesterBase& operator=(const ResourceRequesterBase& rhs );
 };
 
-} // SlpPlatform
+} // TizenPlatform
 } // Dali
 
-#endif // __DALI_SLP_PLATFORM_RESOURCE_REQUESTER_BASE_H__
+#endif // __DALI_TIZEN_PLATFORM_RESOURCE_REQUESTER_BASE_H__
@@ -21,7 +21,7 @@ using namespace Dali::Integration;
 
 namespace Dali
 {
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 ResourceShaderRequester::ResourceShaderRequester( ResourceLoader& resourceLoader )
@@ -71,5 +71,5 @@ void ResourceShaderRequester::CancelLoad(Integration::ResourceId id, Integration
   mThreadShader->CancelRequest(id);
 }
 
-} // SlpPlatform
+} // TizenPlatform
 } // Dali
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_RESOURCE_SHADER_REQUESTER_H__
-#define __DALI_SLP_PLATFORM_RESOURCE_SHADER_REQUESTER_H__
+#ifndef __DALI_TIZEN_PLATFORM_RESOURCE_SHADER_REQUESTER_H__
+#define __DALI_TIZEN_PLATFORM_RESOURCE_SHADER_REQUESTER_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -23,7 +23,7 @@
 
 namespace Dali
 {
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 /**
@@ -82,7 +82,7 @@ protected:
   ResourceThreadShader* mThreadShader; ///< Thread to load requests
 };
 
-} // SlpPlatform
+} // TizenPlatform
 } // Dali
 
-#endif // __DALI_SLP_PLATFORM_RESOURCE_SHADER_REQUESTER_H__
+#endif // __DALI_TIZEN_PLATFORM_RESOURCE_SHADER_REQUESTER_H__
@@ -24,7 +24,7 @@ using namespace Dali::Integration;
 namespace Dali
 {
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 namespace
@@ -136,6 +136,6 @@ void ResourceTextRequester::CreateThread()
   }
 }
 
-} // SlpPlatform
+} // TizenPlatform
 
 } // Dali
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_RESOURCE_TEXT_REQUESTER_H__
-#define __DALI_SLP_PLATFORM_RESOURCE_TEXT_REQUESTER_H__
+#ifndef __DALI_TIZEN_PLATFORM_RESOURCE_TEXT_REQUESTER_H__
+#define __DALI_TIZEN_PLATFORM_RESOURCE_TEXT_REQUESTER_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -18,7 +18,7 @@
  *
  */
 
-#include <platform-abstractions/slp/resource-loader/resource-requester-base.h>
+#include <platform-abstractions/tizen/resource-loader/resource-requester-base.h>
 #include "resource-thread-text.h"
 
 namespace Dali
@@ -28,7 +28,7 @@ namespace Integration
 class ResourceRequest;
 }
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 class ResourceTextRequester : public ResourceRequesterBase
@@ -91,7 +91,7 @@ protected:
   ResourceThreadText* mThreadText; ///< Loader thread
 };
 
-} // SlpPlatform
+} // TizenPlatform
 } // Dali
 
-#endif // __DALI_SLP_PLATFORM_RESOURCE_TEXT_REQUESTER_H__
+#endif // __DALI_TIZEN_PLATFORM_RESOURCE_TEXT_REQUESTER_H__
@@ -17,7 +17,7 @@
 
 #include <dali/integration-api/debug.h>
 #include "resource-thread-base.h"
-#include "slp-logging.h"
+#include "tizen-logging.h"
 #include "atomics.h"
 
 using namespace Dali::Integration;
@@ -33,7 +33,7 @@ namespace Dali
 const Integration::ResourceId NO_REQUEST_IN_FLIGHT = Integration::ResourceId(0) - 1;
 const Integration::ResourceId NO_REQUEST_CANCELLED = Integration::ResourceId(0) - 2;
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 namespace
@@ -295,8 +295,8 @@ void ResourceThreadBase::ProcessNextRequest()
 
 void ResourceThreadBase::InstallLogging()
 {
-  // resource loading thread will send its logs to SLP Platform's LogMessage handler.
-  Dali::Integration::Log::InstallLogFunction(Dali::SlpPlatform::LogMessage);
+  // resource loading thread will send its logs to TIZEN Platform's LogMessage handler.
+  Dali::Integration::Log::InstallLogFunction(Dali::TizenPlatform::LogMessage);
 }
 
 void ResourceThreadBase::UninstallLogging()
@@ -319,6 +319,6 @@ void ResourceThreadBase::Decode(const Integration::ResourceRequest& request)
   ///! If you need this for a subclassed thread, look to ResourceThreadImage::Decode() for an example implementation.
 }
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_RESOURCE_THREAD_BASE_H__
-#define __DALI_SLP_PLATFORM_RESOURCE_THREAD_BASE_H__
+#ifndef __DALI_TIZEN_PLATFORM_RESOURCE_THREAD_BASE_H__
+#define __DALI_TIZEN_PLATFORM_RESOURCE_THREAD_BASE_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -31,7 +31,7 @@
 namespace Dali
 {
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 /**
@@ -171,8 +171,8 @@ public:
 #endif
 }; // class ResourceThreadBase
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
-#endif // __DALI_SLPPLATFORM_RESOURCE_THREAD_BASE_H__
+#endif // __DALI_TIZEN_PLATFORM_RESOURCE_THREAD_BASE_H__
@@ -30,7 +30,7 @@ using namespace Dali::Integration;
 namespace Dali
 {
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 ResourceThreadImage::ResourceThreadImage(ResourceLoader& resourceLoader, bool forRemoteImage)
@@ -265,6 +265,6 @@ void ResourceThreadImage::DecodeImageFromMemory(void* blobBytes, size_t blobSize
   }
 }
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_RESOURCE_THREAD_IMAGE_H__
-#define __DALI_SLP_PLATFORM_RESOURCE_THREAD_IMAGE_H__
+#ifndef __DALI_TIZEN_PLATFORM_RESOURCE_THREAD_IMAGE_H__
+#define __DALI_TIZEN_PLATFORM_RESOURCE_THREAD_IMAGE_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -25,7 +25,7 @@
 namespace Dali
 {
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 class ResourceThreadImage : public ResourceThreadBase
@@ -87,8 +87,8 @@ private:
   void DecodeImageFromMemory(void* blobBytes, size_t blobSize, const Integration::ResourceRequest& request);
 }; // class ResourceThreadImage
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
-#endif // __DALI_SLP_PLATFORM_RESOURCE_THREAD_IMAGE_H__
+#endif // __DALI_TIZEN_PLATFORM_RESOURCE_THREAD_IMAGE_H__
@@ -29,7 +29,7 @@ using boost::unique_lock;
 namespace Dali
 {
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 ResourceThreadShader::ResourceThreadShader(ResourceLoader& resourceLoader)
@@ -96,6 +96,6 @@ void ResourceThreadShader::Save(const ResourceRequest& request)
 }
 
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_RESOURCE_THREAD_SHADER_H__
-#define __DALI_SLP_PLATFORM_RESOURCE_THREAD_SHADER_H__
+#ifndef __DALI_TIZEN_PLATFORM_RESOURCE_THREAD_SHADER_H__
+#define __DALI_TIZEN_PLATFORM_RESOURCE_THREAD_SHADER_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -33,7 +33,7 @@ class Filter;
 }
 }
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 class ResourceThreadShader : public ResourceThreadBase
@@ -65,8 +65,8 @@ private:
 
 }; // class ResourceThreadShader
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
-#endif // __DALI_SLP_PLATFORM_RESOURCE_THREAD_SHADER_H__
+#endif // __DALI_TIZEN_PLATFORM_RESOURCE_THREAD_SHADER_H__
@@ -38,7 +38,7 @@ using namespace Dali::Integration;
 
 namespace Dali
 {
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 namespace
@@ -282,5 +282,5 @@ void ResourceThreadText::DeleteDataCaches()
   mDataCaches.clear();
 }
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 } // namespace Dali
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_RESOURCE_THREAD_TEXT_H__
-#define __DALI_SLP_PLATFORM_RESOURCE_THREAD_TEXT_H__
+#ifndef __DALI_TIZEN_PLATFORM_RESOURCE_THREAD_TEXT_H__
+#define __DALI_TIZEN_PLATFORM_RESOURCE_THREAD_TEXT_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -38,7 +38,7 @@ namespace Platform
 class DataCache;
 }
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 /**
  * Resource loader for glyph distance fields.
@@ -137,8 +137,8 @@ private:
 
 }; // class ResourceThreadText
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
-#endif // __DALI_SLP_PLATFORM_RESOURCE_THREAD_TEXT_H__
+#endif // __DALI_TIZEN_PLATFORM_RESOURCE_THREAD_TEXT_H__
@@ -15,7 +15,7 @@
  *
  */
 
-#include "slp-font-configuration-parser.h"
+#include "tizen-font-configuration-parser.h"
 
 #include <sstream>
 #include <libxml/xmlmemory.h>
@@ -26,7 +26,7 @@
 namespace Dali
 {
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 namespace FontConfigurationParser
@@ -35,7 +35,7 @@ namespace FontConfigurationParser
 #if defined(DEBUG_ENABLED)
 namespace
 {
-Debug::Filter* gLogFilter = Debug::Filter::New(Debug::NoLogging, false, "LOG_SLP_FONT_CONFIGURATION_PARSER");
+Debug::Filter* gLogFilter = Debug::Filter::New(Debug::NoLogging, false, "LOG_TIZEN_FONT_CONFIGURATION_PARSER");
 }
 #endif
 
@@ -132,6 +132,6 @@ void Parse(std::string confFile, std::string& fontFamily, std::string& fontStyle
 
 } // namespace FontConfParser
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_FONT_CONFIGURATION_PARSER_H__
-#define __DALI_SLP_PLATFORM_FONT_CONFIGURATION_PARSER_H__
+#ifndef __DALI_TIZEN_PLATFORM_FONT_CONFIGURATION_PARSER_H__
+#define __DALI_TIZEN_PLATFORM_FONT_CONFIGURATION_PARSER_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -23,7 +23,7 @@
 namespace Dali
 {
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 namespace FontConfigurationParser
@@ -39,8 +39,8 @@ void Parse(std::string confFile, std::string& fontFamily, std::string& fontStyle
 
 } // namespace FontConfParser
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
-#endif // __DALI_SLP_PLATFORM_FONT_CONFIGURATION_PARSER_H__
+#endif // __DALI_TIZEN_PLATFORM_FONT_CONFIGURATION_PARSER_H__
similarity index 96%
rename from platform-abstractions/slp/slp-logging.cpp
rename to platform-abstractions/tizen/tizen-logging.cpp
index dc54e0d..af14633 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 // FUNCTION HEADER
-#include "slp-logging.h"
+#include "tizen-logging.h"
 
 // EXTERNAL INCLUDES
 #ifndef DALI_PROFILE_UBUNTU
@@ -28,7 +28,7 @@
 namespace Dali
 {
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 void LogMessage(Dali::Integration::Log::DebugPriority level, std::string& message)
@@ -72,6 +72,6 @@ void LogMessage(Dali::Integration::Log::DebugPriority level, std::string& messag
 #endif // DALI_PROFILE_UBUNTU
 }
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
similarity index 84%
rename from platform-abstractions/slp/slp-logging.h
rename to platform-abstractions/tizen/tizen-logging.h
index 92a4425..6165227 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_LOGGING_H__
-#define __DALI_SLP_LOGGING_H__
+#ifndef __DALI_TIZEN_LOGGING_H__
+#define __DALI_TIZEN_LOGGING_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -24,7 +24,7 @@
 namespace Dali
 {
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 /**
@@ -32,8 +32,8 @@ namespace SlpPlatform
  */
 void LogMessage(Dali::Integration::Log::DebugPriority level, std::string& message);
 
-} // namespace SlpPlatform
+} // namespace TizenPlatform
 
 } // namespace Dali
 
-#endif // __DALI_SLP_LOGGING_H__
+#endif // __DALI_TIZEN_LOGGING_H__
@@ -15,7 +15,7 @@
  *
  */
 
-#include "slp-platform-abstraction.h"
+#include "tizen-platform-abstraction.h"
 
 #ifndef DALI_PROFILE_UBUNTU
 #include <vconf.h>
@@ -29,7 +29,7 @@
 #include "resource-loader/resource-loader.h"
 #include "dynamics/dynamics-factory.h"
 
-#include "slp-font-configuration-parser.h"
+#include "tizen-font-configuration-parser.h"
 #include "data-cache/metrics-cache.h"
 #include "image-loaders/image-loader.h"
 
@@ -38,11 +38,11 @@ namespace Dali
 
 Integration::PlatformAbstraction* CreatePlatformAbstraction()
 {
-  return new SlpPlatform::SlpPlatformAbstraction();
+  return new TizenPlatform::TizenPlatformAbstraction();
 }
 
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 namespace
@@ -64,7 +64,7 @@ const float FONT_SIZE_TABLE[5] =
 };
 }
 
-SlpPlatformAbstraction::SlpPlatformAbstraction()
+TizenPlatformAbstraction::TizenPlatformAbstraction()
 : mResourceLoader(new ResourceLoader),
   mDynamicsFactory(NULL),
   mDataStoragePath( "" ),
@@ -76,7 +76,7 @@ SlpPlatformAbstraction::SlpPlatformAbstraction()
   UpdateDefaultsFromDevice();
 }
 
-SlpPlatformAbstraction::~SlpPlatformAbstraction()
+TizenPlatformAbstraction::~TizenPlatformAbstraction()
 {
   delete mResourceLoader;
   delete mDynamicsFactory;
@@ -87,7 +87,7 @@ SlpPlatformAbstraction::~SlpPlatformAbstraction()
   }
 }
 
-void SlpPlatformAbstraction::GetTimeMicroseconds(unsigned int &seconds, unsigned int &microSeconds)
+void TizenPlatformAbstraction::GetTimeMicroseconds(unsigned int &seconds, unsigned int &microSeconds)
 {
   timespec time;
   clock_gettime(CLOCK_MONOTONIC, &time);
@@ -95,7 +95,7 @@ void SlpPlatformAbstraction::GetTimeMicroseconds(unsigned int &seconds, unsigned
   microSeconds = time.tv_nsec / NANOSECS_TO_MICROSECS;
 }
 
-void SlpPlatformAbstraction::Suspend()
+void TizenPlatformAbstraction::Suspend()
 {
   if (mResourceLoader)
   {
@@ -103,7 +103,7 @@ void SlpPlatformAbstraction::Suspend()
   }
 }
 
-void SlpPlatformAbstraction::Resume()
+void TizenPlatformAbstraction::Resume()
 {
   if (mResourceLoader)
   {
@@ -111,18 +111,18 @@ void SlpPlatformAbstraction::Resume()
   }
 }
 
-const std::string& SlpPlatformAbstraction::GetDefaultFontFamily() const
+const std::string& TizenPlatformAbstraction::GetDefaultFontFamily() const
 {
   // VCC TODO: return default font style as well.
   return mDefaultFontFamily;
 }
 
-float SlpPlatformAbstraction::GetDefaultFontSize() const
+float TizenPlatformAbstraction::GetDefaultFontSize() const
 {
   return mDefaultFontSize;
 }
 
-PixelSize SlpPlatformAbstraction::GetFontLineHeightFromCapsHeight(const std::string& fontFamily, const std::string& fontStyle, CapsHeight capsHeight) const
+PixelSize TizenPlatformAbstraction::GetFontLineHeightFromCapsHeight(const std::string& fontFamily, const std::string& fontStyle, CapsHeight capsHeight) const
 {
   PixelSize result(0);
 
@@ -134,7 +134,7 @@ PixelSize SlpPlatformAbstraction::GetFontLineHeightFromCapsHeight(const std::str
   return result;
 }
 
-Integration::GlyphSet* SlpPlatformAbstraction::GetGlyphData ( const Dali::Integration::TextResourceType& textRequest,
+Integration::GlyphSet* TizenPlatformAbstraction::GetGlyphData ( const Dali::Integration::TextResourceType& textRequest,
                                                               const std::string& fontFamily,
                                                               bool getBitmap) const
 {
@@ -148,7 +148,7 @@ Integration::GlyphSet* SlpPlatformAbstraction::GetGlyphData ( const Dali::Integr
   return NULL;
 }
 
-Integration::GlyphSet* SlpPlatformAbstraction::GetCachedGlyphData( const Integration::TextResourceType& textRequest,
+Integration::GlyphSet* TizenPlatformAbstraction::GetCachedGlyphData( const Integration::TextResourceType& textRequest,
                                                                    const std::string& fontFamily ) const
 {
   if (mResourceLoader)
@@ -159,7 +159,7 @@ Integration::GlyphSet* SlpPlatformAbstraction::GetCachedGlyphData( const Integra
 }
 
 
-void SlpPlatformAbstraction::GetGlobalMetrics( const std::string& fontFamily, const std::string& fontStyle, Integration::GlobalMetrics& globalMetrics ) const
+void TizenPlatformAbstraction::GetGlobalMetrics( const std::string& fontFamily, const std::string& fontStyle, Integration::GlobalMetrics& globalMetrics ) const
 {
   if( mResourceLoader )
   {
@@ -170,7 +170,7 @@ void SlpPlatformAbstraction::GetGlobalMetrics( const std::string& fontFamily, co
   }
 }
 
-void SlpPlatformAbstraction::GetClosestImageSize( const std::string& filename,
+void TizenPlatformAbstraction::GetClosestImageSize( const std::string& filename,
                                                   const ImageAttributes& attributes,
                                                   Vector2& closestSize )
 {
@@ -178,7 +178,7 @@ void SlpPlatformAbstraction::GetClosestImageSize( const std::string& filename,
   ImageLoader::GetClosestImageSize(filename, attributes, closestSize );
 }
 
-void SlpPlatformAbstraction::GetClosestImageSize( Integration::ResourcePointer resourceBuffer,
+void TizenPlatformAbstraction::GetClosestImageSize( Integration::ResourcePointer resourceBuffer,
                                                   const ImageAttributes& attributes,
                                                   Vector2& closestSize )
 {
@@ -187,7 +187,7 @@ void SlpPlatformAbstraction::GetClosestImageSize( Integration::ResourcePointer r
 }
 
 
-void SlpPlatformAbstraction::LoadResource(const Integration::ResourceRequest& request)
+void TizenPlatformAbstraction::LoadResource(const Integration::ResourceRequest& request)
 {
   if (mResourceLoader)
   {
@@ -195,13 +195,13 @@ void SlpPlatformAbstraction::LoadResource(const Integration::ResourceRequest& re
   }
 }
 
-Integration::ResourcePointer SlpPlatformAbstraction::LoadResourceSynchronously(const Integration::ResourceType& resourceType, const std::string& resourcePath)
+Integration::ResourcePointer TizenPlatformAbstraction::LoadResourceSynchronously(const Integration::ResourceType& resourceType, const std::string& resourcePath)
 {
   return ImageLoader::LoadResourceSynchronously( resourceType, resourcePath );
 }
 
 
-void SlpPlatformAbstraction::SaveResource(const Integration::ResourceRequest& request)
+void TizenPlatformAbstraction::SaveResource(const Integration::ResourceRequest& request)
 {
   if (mResourceLoader)
   {
@@ -222,7 +222,7 @@ void SlpPlatformAbstraction::SaveResource(const Integration::ResourceRequest& re
   }
 }
 
-void SlpPlatformAbstraction::CancelLoad(Integration::ResourceId id, Integration::ResourceTypeId typeId)
+void TizenPlatformAbstraction::CancelLoad(Integration::ResourceId id, Integration::ResourceTypeId typeId)
 {
   if (mResourceLoader)
   {
@@ -230,7 +230,7 @@ void SlpPlatformAbstraction::CancelLoad(Integration::ResourceId id, Integration:
   }
 }
 
-bool SlpPlatformAbstraction::IsLoading()
+bool TizenPlatformAbstraction::IsLoading()
 {
   if (mResourceLoader)
   {
@@ -240,7 +240,7 @@ bool SlpPlatformAbstraction::IsLoading()
   return false;
 }
 
-void SlpPlatformAbstraction::GetResources(Integration::ResourceCache& cache)
+void TizenPlatformAbstraction::GetResources(Integration::ResourceCache& cache)
 {
   if (mResourceLoader)
   {
@@ -248,7 +248,7 @@ void SlpPlatformAbstraction::GetResources(Integration::ResourceCache& cache)
   }
 }
 
-void SlpPlatformAbstraction::SetDpi(unsigned int dpiHor, unsigned int dpiVer)
+void TizenPlatformAbstraction::SetDpi(unsigned int dpiHor, unsigned int dpiVer)
 {
   if (mResourceLoader)
   {
@@ -256,7 +256,7 @@ void SlpPlatformAbstraction::SetDpi(unsigned int dpiHor, unsigned int dpiVer)
   }
 }
 
-const std::string& SlpPlatformAbstraction::GetFontFamilyForChars(const Integration::TextArray& charsRequested) const
+const std::string& TizenPlatformAbstraction::GetFontFamilyForChars(const Integration::TextArray& charsRequested) const
 {
   if( mResourceLoader )
   {
@@ -266,7 +266,7 @@ const std::string& SlpPlatformAbstraction::GetFontFamilyForChars(const Integrati
   return NULL_FONT_FAMILY_NAME;
 }
 
-bool SlpPlatformAbstraction::AllGlyphsSupported(const std::string &fontFamily, const std::string& fontStyle, const Integration::TextArray& charsRequested) const
+bool TizenPlatformAbstraction::AllGlyphsSupported(const std::string &fontFamily, const std::string& fontStyle, const Integration::TextArray& charsRequested) const
 {
   bool ret = false;
   if (mResourceLoader)
@@ -276,7 +276,7 @@ bool SlpPlatformAbstraction::AllGlyphsSupported(const std::string &fontFamily, c
   return ret;
 }
 
-bool SlpPlatformAbstraction::ValidateFontFamilyName(const std::string& fontFamily, const std::string& fontStyle, bool& isDefaultSystemFont, std::string& closestMatch, std::string& closestStyleMatch) const
+bool TizenPlatformAbstraction::ValidateFontFamilyName(const std::string& fontFamily, const std::string& fontStyle, bool& isDefaultSystemFont, std::string& closestMatch, std::string& closestStyleMatch) const
 {
   bool ret = false;
   if( mResourceLoader )
@@ -290,7 +290,7 @@ bool SlpPlatformAbstraction::ValidateFontFamilyName(const std::string& fontFamil
   return ret;
 }
 
-void SlpPlatformAbstraction::GetFontList(  Dali::Integration::PlatformAbstraction::FontListMode mode, std::vector<std::string>& fontList ) const
+void TizenPlatformAbstraction::GetFontList(  Dali::Integration::PlatformAbstraction::FontListMode mode, std::vector<std::string>& fontList ) const
 {
   if( mResourceLoader )
   {
@@ -298,7 +298,7 @@ void SlpPlatformAbstraction::GetFontList(  Dali::Integration::PlatformAbstractio
   }
 }
 
-bool SlpPlatformAbstraction::LoadFile( const std::string& filename, std::vector< unsigned char >& buffer ) const
+bool TizenPlatformAbstraction::LoadFile( const std::string& filename, std::vector< unsigned char >& buffer ) const
 {
   bool result = false;
 
@@ -310,7 +310,7 @@ bool SlpPlatformAbstraction::LoadFile( const std::string& filename, std::vector<
   return result;
 }
 
-std::string SlpPlatformAbstraction::LoadFile( const std::string& filename )
+std::string TizenPlatformAbstraction::LoadFile( const std::string& filename )
 {
   std::string result;
   if (mResourceLoader)
@@ -321,7 +321,7 @@ std::string SlpPlatformAbstraction::LoadFile( const std::string& filename )
   return result;
 }
 
-bool SlpPlatformAbstraction::SaveFile(const std::string& filename, std::vector< unsigned char >& buffer) const
+bool TizenPlatformAbstraction::SaveFile(const std::string& filename, std::vector< unsigned char >& buffer) const
 {
   bool result = false;
 
@@ -333,13 +333,13 @@ bool SlpPlatformAbstraction::SaveFile(const std::string& filename, std::vector<
   return result;
 }
 
-void SlpPlatformAbstraction::JoinLoaderThreads()
+void TizenPlatformAbstraction::JoinLoaderThreads()
 {
   delete mResourceLoader;
   mResourceLoader = NULL;
 }
 
-void SlpPlatformAbstraction::UpdateDefaultsFromDevice()
+void TizenPlatformAbstraction::UpdateDefaultsFromDevice()
 {
   // FontConfigurationParser::Parse sets the default font family and the default font style.
   // If the isn't a configuration file or is invalid, or it doesn't have any tag with the default
@@ -363,7 +363,7 @@ void SlpPlatformAbstraction::UpdateDefaultsFromDevice()
   mDefaultFontSize = FONT_SIZE_TABLE[fontSize];
 }
 
-Integration::DynamicsFactory* SlpPlatformAbstraction::GetDynamicsFactory()
+Integration::DynamicsFactory* TizenPlatformAbstraction::GetDynamicsFactory()
 {
   if( NULL == mDynamicsFactory )
   {
@@ -373,35 +373,35 @@ Integration::DynamicsFactory* SlpPlatformAbstraction::GetDynamicsFactory()
   return mDynamicsFactory;
 }
 
-bool SlpPlatformAbstraction::ReadGlobalMetricsFromCache( const std::string& fontFamily,
+bool TizenPlatformAbstraction::ReadGlobalMetricsFromCache( const std::string& fontFamily,
                                                          const std::string& fontStyle,
                                                          Integration::GlobalMetrics& globalMetrics )
 {
   return MetricsCache::ReadGlobal( fontFamily, fontStyle, globalMetrics );
 }
 
-void SlpPlatformAbstraction::WriteGlobalMetricsToCache( const std::string& fontFamily,
+void TizenPlatformAbstraction::WriteGlobalMetricsToCache( const std::string& fontFamily,
                                                         const std::string& fontStyle,
                                                         const Integration::GlobalMetrics& globalMetrics )
 {
   MetricsCache::WriteGlobal( fontFamily, fontStyle, globalMetrics);
 }
 
-bool SlpPlatformAbstraction::ReadMetricsFromCache( const std::string& fontFamily,
+bool TizenPlatformAbstraction::ReadMetricsFromCache( const std::string& fontFamily,
                                                    const std::string& fontStyle,
                                                    std::vector<Integration::GlyphMetrics>& glyphMetricsContainer )
 {
   return MetricsCache::Read( fontFamily, fontStyle, glyphMetricsContainer );
 }
 
-void SlpPlatformAbstraction::WriteMetricsToCache( const std::string& fontFamily,
+void TizenPlatformAbstraction::WriteMetricsToCache( const std::string& fontFamily,
                                                   const std::string& fontStyle,
                                                   const Integration::GlyphSet& glyphSet )
 {
   MetricsCache::Write( fontFamily, fontStyle, glyphSet );
 }
 
-void SlpPlatformAbstraction::GetFileNamesFromDirectory( const std::string& directoryName,
+void TizenPlatformAbstraction::GetFileNamesFromDirectory( const std::string& directoryName,
                                                         std::vector<std::string>& fileNames )
 {
   dirent* de = NULL;
@@ -429,7 +429,7 @@ void SlpPlatformAbstraction::GetFileNamesFromDirectory( const std::string& direc
   }
 }
 
-Integration::BitmapPtr SlpPlatformAbstraction::GetGlyphImage( const std::string& fontFamily, const std::string& fontStyle, const float fontSize, const uint32_t character ) const
+Integration::BitmapPtr TizenPlatformAbstraction::GetGlyphImage( const std::string& fontFamily, const std::string& fontStyle, const float fontSize, const uint32_t character ) const
 {
   Integration::BitmapPtr glyphImage;
 
@@ -441,7 +441,7 @@ Integration::BitmapPtr SlpPlatformAbstraction::GetGlyphImage( const std::string&
   return glyphImage;
 }
 
-bool SlpPlatformAbstraction::LoadShaderBinFile( const std::string& filename, std::vector< unsigned char >& buffer ) const
+bool TizenPlatformAbstraction::LoadShaderBinFile( const std::string& filename, std::vector< unsigned char >& buffer ) const
 {
   bool result = false;
 
@@ -466,11 +466,11 @@ bool SlpPlatformAbstraction::LoadShaderBinFile( const std::string& filename, std
   return result;
 }
 
-void SlpPlatformAbstraction::SetDataStoragePath( const std::string& path )
+void TizenPlatformAbstraction::SetDataStoragePath( const std::string& path )
 {
   mDataStoragePath = path;
 }
 
-}  // namespace SlpPlatform
+}  // namespace TizenPlatform
 
 }  // namespace Dali
@@ -1,5 +1,5 @@
-#ifndef __DALI_SLP_PLATFORM_ABSTRACTION_H__
-#define __DALI_SLP_PLATFORM_ABSTRACTION_H__
+#ifndef __DALI_TIZEN_PLATFORM_ABSTRACTION_H__
+#define __DALI_TIZEN_PLATFORM_ABSTRACTION_H__
 
 /*
  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
@@ -34,7 +34,7 @@ namespace Dali
  */
 Integration::PlatformAbstraction* CreatePlatformAbstraction();
 
-namespace SlpPlatform
+namespace TizenPlatform
 {
 
 class DynamicsFactory;
@@ -43,7 +43,7 @@ class ResourceLoader;
 /**
  * Concrete implementation of the platform abstraction class.
  */
-class SlpPlatformAbstraction : public Integration::PlatformAbstraction
+class TizenPlatformAbstraction : public Integration::PlatformAbstraction
 {
 
 public: // Construction & Destruction
@@ -51,12 +51,12 @@ public: // Construction & Destruction
   /**
    * Constructor
    */
-  SlpPlatformAbstraction();
+  TizenPlatformAbstraction();
 
   /**
    * Destructor
    */
-  virtual ~SlpPlatformAbstraction();
+  virtual ~TizenPlatformAbstraction();
 
 public: // PlatformAbstraction overrides
 
@@ -270,7 +270,7 @@ private:
   float mDefaultFontSize;
 };
 
-}  // namespace SlpPlatform
+}  // namespace TizenPlatform
 }  // namespace Dali
 
-#endif // __DALI_SLP_PLATFORM_ABSTRACTION_H__
+#endif // __DALI_TIZEN_PLATFORM_ABSTRACTION_H__