Read shader binary 57/251257/5
authorhuiyu.eun <huiyu.eun@samsung.com>
Tue, 12 Jan 2021 04:35:42 +0000 (13:35 +0900)
committerhuiyu eun <huiyu.eun@samsung.com>
Tue, 26 Jan 2021 00:59:26 +0000 (00:59 +0000)
enable shader binary :
 -DENABLE_SHADERBINCACHE=0N

Change-Id: I6a463beac1455b9316522661e22f9107c71d8749
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
dali/internal/legacy/common/tizen-platform-abstraction.cpp

index 104c07b..d3bfb15 100644 (file)
@@ -32,6 +32,7 @@
 #include <dali/internal/imaging/common/image-loader.h>
 #include <dali/internal/system/common/file-reader.h>
 #include <dali/internal/imaging/common/pixel-buffer-impl.h>
+#include <dali/devel-api/adaptor-framework/file-loader.h>
 
 namespace Dali
 {
@@ -155,15 +156,15 @@ bool TizenPlatformAbstraction::LoadShaderBinaryFile( const std::string& filename
   // First check the system location where shaders are stored at install time:
   path = DALI_SHADERBIN_DIR;
   path += filename;
-  result = LoadFile( path, buffer );
+  result = Dali::FileLoader::ReadFile( path, buffer );
 
   // Fallback to the cache of shaders stored after previous runtime compilations:
   // On desktop this looks in the current working directory that the app was launched from.
-  if( mResourceLoader && result == false )
+  if( result == false )
   {
     path = mDataStoragePath;
     path += filename;
-    result = LoadFile( path, buffer );
+    result = Dali::FileLoader::ReadFile( path, buffer );
   }
 #endif