X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fscene.cpp;h=5126377a1bbcfcd63c55a416499e17a39d58d024;hb=59992ec9e3671f2ad00e7427bc85757dadf98674;hp=da24de823df3df1d0a41daa13029cfb3b1e55eee;hpb=08f8b22918b0f7d66d15276a233b470654ae5f44;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/scene.cpp b/dali/integration-api/scene.cpp index da24de8..5126377 100644 --- a/dali/integration-api/scene.cpp +++ b/dali/integration-api/scene.cpp @@ -29,9 +29,9 @@ namespace Dali namespace Integration { -Scene Scene::New( const Size& size ) +Scene Scene::New( Integration::RenderSurface& surface ) { - Internal::ScenePtr internal = Internal::Scene::New( size ); + Internal::ScenePtr internal = Internal::Scene::New( surface ); return Scene( internal.Get() ); } @@ -124,11 +124,21 @@ void Scene::SetSurface( Integration::RenderSurface& surface ) GetImplementation(*this).SetSurface( surface ); } +void Scene::SurfaceResized( bool forceUpdate ) +{ + GetImplementation( *this ).SurfaceResized( forceUpdate ); +} + Integration::RenderSurface* Scene::GetSurface() const { return GetImplementation(*this).GetSurface(); } +void Scene::Discard() +{ + GetImplementation(*this).Discard(); +} + Integration::Scene Scene::Get( Actor actor ) { return Dali::Integration::Scene( &GetImplementation( actor ).GetScene() );