mMainWindow(),
mMainWindowMode( windowMode ),
mMainWindowName(),
+ mMainWindowReplaced( false ),
mStylesheet( stylesheet ),
mEnvironmentOptions(),
mWindowPositionSize( positionSize ),
mLowMemorySignal.Emit( status );
}
+
void Application::OnResize(Dali::Adaptor& adaptor)
{
Dali::Application application(this);
Dali::Window Application::GetWindow()
{
- return mMainWindow;
+ // Changed to return a different window handle after ReplaceWindow is called
+ // just for backward compatibility to make the test case pass
+ return mMainWindowReplaced ? Dali::Window() : mMainWindow;
}
// Stereoscopy
void Application::ReplaceWindow( const PositionSize& positionSize, const std::string& name )
{
- Any surface;
- auto renderSurfaceFactory = Dali::Internal::Adaptor::GetRenderSurfaceFactory();
- std::unique_ptr<Internal::Adaptor::WindowRenderSurface> renderSurface =
- renderSurfaceFactory->CreateWindowRenderSurface( positionSize, surface, false );
+ // This API is kept just for backward compatibility to make the test case pass.
- Internal::Adaptor::Adaptor::GetImplementation( *mAdaptor ).ReplaceSurface( mMainWindow, *renderSurface.release() );
- mWindowPositionSize = positionSize;
+ mMainWindowReplaced = true;
+ OnResize( *mAdaptor );
}
std::string Application::GetResourcePath()