From: SooChan Lim Date: Fri, 28 Aug 2020 08:19:06 +0000 (+0900) Subject: DSRenderViewDaliImpl: code clean and put the log X-Git-Tag: accepted/tizen/unified/20200901.160655~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d176ca0586dd4ce03aca38ebbce4e3ca2f9bfb8;p=platform%2Fcore%2Fuifw%2Flibds.git DSRenderViewDaliImpl: code clean and put the log Change-Id: I3656ec6a1778d3a35c5d1391c7eb1e74ea0da177 --- diff --git a/src/DSRender/DSRenderViewDaliImpl.cpp b/src/DSRender/DSRenderViewDaliImpl.cpp index f39a017..6595726 100644 --- a/src/DSRender/DSRenderViewDaliImpl.cpp +++ b/src/DSRender/DSRenderViewDaliImpl.cpp @@ -118,14 +118,12 @@ DSRenderViewDaliImpl::~DSRenderViewDaliImpl() bool DSRenderViewDaliImpl::setBuffer(std::shared_ptr buffer) { if (buffer) { - DSLOG_INF("DSRenderViewDaliImpl", "buffer set."); + std::shared_ptr bufferSize = buffer->getSize(); __textureViewActor.SetProperty(Actor::Property::VISIBLE, true); + __textureViewActor.SetProperty(Actor::Property::SIZE, Vector2(bufferSize->w, bufferSize->h)); 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)); @@ -135,9 +133,12 @@ bool DSRenderViewDaliImpl::setBuffer(std::shared_ptr buffer) textureSet.SetTexture(0u, nativeTexture); __renderer.SetTextures(textureSet); + + DSLOG_INF("DSRenderViewDaliImpl", "Buffer set. buffer(%p) size(%d, %d)", buffer.get(), bufferSize->w, bufferSize->h); } else { - DSLOG_INF("DSRenderViewDaliImpl", "buffer NULL."); __textureViewActor.SetProperty(Actor::Property::VISIBLE, false); + + DSLOG_INF("DSRenderViewDaliImpl", "buffer set NULL."); } __updatedSignal.emit(nullptr);