#include <dali/integration-api/processor-interface.h>
#include <fstream>
-#include <iostream>
// INTERNAL INCLUDES
#include <dali/public-api/dali-adaptor-common.h>
#include <dali/internal/imaging/common/image-loader-plugin-proxy.h>
#include <dali/internal/imaging/common/image-loader.h>
-#include <dali/devel-api/adaptor-framework/file-loader.h>
#include <dali/devel-api/adaptor-framework/file-stream.h>
using Dali::TextAbstraction::FontClient;
dataRetentionPolicy ,
( 0u != mEnvironmentOptions->GetRenderToFboInterval() ) ? Integration::RenderToFrameBuffer::TRUE : Integration::RenderToFrameBuffer::FALSE,
mGraphics->GetDepthBufferRequired(),
- mGraphics->GetStencilBufferRequired() );
+ mGraphics->GetStencilBufferRequired(),
+ mGraphics->PartialUpdateAvailable() );
defaultWindow->SetAdaptor( Get() );
}
std::string systemCachePath = GetSystemCachePath();
- if ( systemCachePath.c_str() != NULL )
+ if ( ! systemCachePath.empty() )
{
- Dali::Vector<char> buffer;
- if( Dali::FileLoader::ReadFile( systemCachePath + "gpu-environment.conf", buffer, Dali::FileLoader::FileType::TEXT ) )
+ Dali::FileStream fileStream( systemCachePath + "gpu-environment.conf", Dali::FileStream::READ | Dali::FileStream::TEXT );
+ std::fstream& stream = dynamic_cast<std::fstream&>( fileStream.GetStream() );
+ if( stream.is_open() )
{
- std::stringstream stream( &buffer[0], std::ios::in );
std::string line;
while( std::getline( stream, line ) )
{
Dali::TizenPlatform::ImageLoader::SetMaxTextureSize( mGLES.GetMaxTextureSize() );
std::string systemCachePath = GetSystemCachePath();
- if( systemCachePath.c_str() != NULL )
+ if( ! systemCachePath.empty() )
{
const int dir_err = system( std::string( "mkdir " + systemCachePath ).c_str() );
if (-1 == dir_err)
if( configFile.is_open() )
{
configFile << "DALI_ENV_MAX_TEXTURE_SIZE " << mGLES.GetMaxTextureSize() << std::endl;
- configFile.close();
}
}
}
return mWindows.front()->GetNativeHandle();
}
+Any Adaptor::GetNativeWindowHandle( Dali::Actor actor )
+{
+ Any nativeWindowHandle;
+
+ Dali::Integration::Scene scene = Dali::Integration::Scene::Get( actor );
+
+ for( auto sceneHolder : mWindows )
+ {
+ if ( scene == sceneHolder->GetScene() )
+ {
+ nativeWindowHandle = sceneHolder->GetNativeHandle();
+ break;
+ }
+ }
+
+ return nativeWindowHandle;
+}
+
Any Adaptor::GetGraphicsDisplay()
{
Any display;