DSRenderViewDaliImpl: code clean and put the log 77/242777/1
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 28 Aug 2020 08:19:06 +0000 (17:19 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Tue, 1 Sep 2020 01:29:41 +0000 (10:29 +0900)
Change-Id: I3656ec6a1778d3a35c5d1391c7eb1e74ea0da177

src/DSRender/DSRenderViewDaliImpl.cpp

index f39a017..6595726 100644 (file)
@@ -118,14 +118,12 @@ DSRenderViewDaliImpl::~DSRenderViewDaliImpl()
 bool DSRenderViewDaliImpl::setBuffer(std::shared_ptr<IDSBuffer> buffer)
 {
        if (buffer) {
-               DSLOG_INF("DSRenderViewDaliImpl", "buffer set.");
+               std::shared_ptr<stSize> 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<stSize> 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<IDSBuffer> 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);