DSRenderViewDaliImpl: register lowerToBottom callback of window 40/242340/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Tue, 25 Aug 2020 09:05:17 +0000 (18:05 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Tue, 25 Aug 2020 12:40:31 +0000 (21:40 +0900)
Change-Id: I9dabc8630aa33e137726304053eb61ff36d4deb5
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/DSRender/DSRenderViewDaliImpl.cpp
src/DSRender/DSRenderViewDaliImpl.h

index d1aac16..a004670 100644 (file)
@@ -106,6 +106,7 @@ DSRenderViewDaliImpl::DSRenderViewDaliImpl(std::shared_ptr<DSWindow> window, Dal
        // callbacks
        window->registerCallbackBufferChanged(this, std::bind(&DSRenderViewDaliImpl::__onWindowBufferChanged, this, std::placeholders::_1));
        window->registerCallbackWindowRaiseToTop(this, std::bind(&DSRenderViewDaliImpl::__onWindowRaiseToTopChanged, this, std::placeholders::_1));
+       window->registerCallbackWindowLowerToBottom(this, std::bind(&DSRenderViewDaliImpl::__onWindowLowerToBottomChanged, this, std::placeholders::_1));
 }
 
 DSRenderViewDaliImpl::~DSRenderViewDaliImpl()
@@ -179,4 +180,14 @@ void DSRenderViewDaliImpl::__onWindowRaiseToTopChanged(void *data)
        __updatedSignal.emit(nullptr);
 }
 
+void DSRenderViewDaliImpl::__onWindowLowerToBottomChanged(void *data)
+{
+       DSLOG_INF("DSRenderViewDaliImpl", "__onWindowLowerToBottomChanged.");
+
+       __textureViewActor.SetProperty(Actor::Property::VISIBLE, true);
+       __textureViewActor.LowerToBottom();
+
+       __updatedSignal.emit(nullptr);
+}
+
 } // namespace display_server
index d6fe3f6..5048555 100644 (file)
@@ -50,6 +50,7 @@ public:
 private:
        void __onWindowBufferChanged(std::shared_ptr<IDSBuffer> buffer);
        void __onWindowRaiseToTopChanged(void *data);
+       void __onWindowLowerToBottomChanged(void *data);
 
        std::shared_ptr<DSWindow> __window;
        Dali::OffscreenWindow     __offscreenWindow;