X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fintegration-api%2Fscene.cpp;h=4ab7dbfa400f0701927ba6dd1f6c2df3410f2c9c;hb=86c6555e62b74a50ec0c8acf01ef11b956f072cd;hp=5126377a1bbcfcd63c55a416499e17a39d58d024;hpb=89a6b4a21a24f066a7df58e73ac28b0ca21c6fc4;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/scene.cpp b/dali/integration-api/scene.cpp index 5126377..4ab7dbf 100644 --- a/dali/integration-api/scene.cpp +++ b/dali/integration-api/scene.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 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. @@ -29,9 +29,9 @@ namespace Dali namespace Integration { -Scene Scene::New( Integration::RenderSurface& surface ) +Scene Scene::New( Size size ) { - Internal::ScenePtr internal = Internal::Scene::New( surface ); + Internal::ScenePtr internal = Internal::Scene::New( size ); return Scene( internal.Get() ); } @@ -119,19 +119,14 @@ Layer Scene::GetLayer( uint32_t depth ) const return GetImplementation(*this).GetLayer( depth ); } -void Scene::SetSurface( Integration::RenderSurface& surface ) +void Scene::SurfaceResized( float width, float height ) { - GetImplementation(*this).SetSurface( surface ); + GetImplementation( *this ).SurfaceResized( width, height ); } -void Scene::SurfaceResized( bool forceUpdate ) +void Scene::SurfaceReplaced() { - GetImplementation( *this ).SurfaceResized( forceUpdate ); -} - -Integration::RenderSurface* Scene::GetSurface() const -{ - return GetImplementation(*this).GetSurface(); + GetImplementation( *this ).SurfaceReplaced(); } void Scene::Discard() @@ -154,6 +149,26 @@ void Scene::ProcessEvents() GetImplementation(*this).ProcessEvents(); } +void Scene::AddFrameRenderedCallback( std::unique_ptr< CallbackBase > callback, int32_t frameId ) +{ + GetImplementation( *this ).AddFrameRenderedCallback( std::move( callback ), frameId ); +} + +void Scene::AddFramePresentedCallback( std::unique_ptr< CallbackBase > callback, int32_t frameId ) +{ + GetImplementation( *this ).AddFramePresentedCallback( std::move( callback ), frameId ); +} + +void Scene::GetFrameRenderedCallback( FrameCallbackContainer& callbacks ) +{ + GetImplementation( *this ).GetFrameRenderedCallback( callbacks ); +} + +void Scene::GetFramePresentedCallback( FrameCallbackContainer& callbacks ) +{ + GetImplementation( *this ).GetFramePresentedCallback( callbacks ); +} + Scene::EventProcessingFinishedSignalType& Scene::EventProcessingFinishedSignal() { return GetImplementation(*this).EventProcessingFinishedSignal();