From: Joonbum Ko Date: Wed, 12 Aug 2020 10:49:55 +0000 (+0900) Subject: DSRenderViewDaliImpl: set the size of renderViewActor to buffer size. X-Git-Tag: accepted/tizen/unified/20200820.213435~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2a93a9af6919eb8a414e6534ae920d48d1f3456;p=platform%2Fcore%2Fuifw%2Flibds.git DSRenderViewDaliImpl: set the size of renderViewActor to buffer size. Change-Id: If55b61e699556b8f3f4be3bf9e602ac3e550ba8a Signed-off-by: Joonbum Ko --- diff --git a/src/DSRender/DSRenderViewDaliImpl.cpp b/src/DSRender/DSRenderViewDaliImpl.cpp index ff8b239..f60a003 100644 --- a/src/DSRender/DSRenderViewDaliImpl.cpp +++ b/src/DSRender/DSRenderViewDaliImpl.cpp @@ -99,7 +99,6 @@ DSRenderViewDaliImpl::DSRenderViewDaliImpl(std::shared_ptr window, Dal __textureViewActor.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT); __textureViewActor.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_CENTER); __textureViewActor.SetProperty(Actor::Property::POSITION, Vector3( 0.0f, 100.f, 0.0f )); - __textureViewActor.SetProperty(Actor::Property::SIZE, Vector2(500, 500)); offscreenWindow.Add(__textureViewActor); @@ -114,6 +113,9 @@ DSRenderViewDaliImpl::~DSRenderViewDaliImpl() bool DSRenderViewDaliImpl::setBuffer(std::shared_ptr buffer) { tbm_surface_h nativeBuffer = (tbm_surface_h)buffer->getNativeBuffer(); + std::shared_ptr bufferSize = buffer->getSize(); + + __textureViewActor.SetProperty(Actor::Property::SIZE, Vector2(bufferSize->w, bufferSize->h)); NativeImageSourcePtr nativeImageSource = NativeImageSource::New(Any(nativeBuffer));