From fb7a99b0b4a50a694df3844971818722f60651a8 Mon Sep 17 00:00:00 2001 From: Joonbum Ko Date: Thu, 13 Aug 2020 16:09:52 +0900 Subject: [PATCH] DSRenderViewDaliImpl: Implement BufferChanged callback. Change-Id: I5a0e14340aa91ae2ad1fbf6ffa79a3f35ed3eeca Signed-off-by: Joonbum Ko --- src/DSRender/DSRenderViewDaliImpl.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/DSRender/DSRenderViewDaliImpl.cpp b/src/DSRender/DSRenderViewDaliImpl.cpp index 82d1cf3..5c5d35a 100644 --- a/src/DSRender/DSRenderViewDaliImpl.cpp +++ b/src/DSRender/DSRenderViewDaliImpl.cpp @@ -131,7 +131,14 @@ bool DSRenderViewDaliImpl::setBuffer(std::shared_ptr buffer) void DSRenderViewDaliImpl::__onWindowBufferChanged(std::shared_ptr buffer) { - //TODO: set the View Size with size + std::shared_ptr bufferSize = buffer->getSize(); + + DSLOG_INF("DSRenderViewDaliImpl", "Window Buffer changed. buffer(%p) size(%d, %d)", buffer.get(), bufferSize->w, bufferSize->h); + + if (!setBuffer(buffer)) { + DSLOG_ERR("DSRenderViewDaliImpl", "setBuffer fails."); + return; + } } } // namespace display_server -- 2.7.4