DSRenderViewDaliImpl: register raiseToTop callback of window 25/242325/1
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 25 Aug 2020 03:00:33 +0000 (12:00 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Tue, 25 Aug 2020 12:38:18 +0000 (21:38 +0900)
Change-Id: I2fd8c02e7cc740039d73fef62a09d9a62522df51

src/DSRender/DSRenderViewDaliImpl.cpp
src/DSRender/DSRenderViewDaliImpl.h

index d860d64..5182934 100644 (file)
@@ -105,6 +105,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));
 }
 
 DSRenderViewDaliImpl::~DSRenderViewDaliImpl()
@@ -168,4 +169,14 @@ void DSRenderViewDaliImpl::__onWindowBufferChanged(std::shared_ptr<IDSBuffer> bu
        __updatedSignal.emit(nullptr);
 }
 
+void DSRenderViewDaliImpl::__onWindowRaiseToTopChanged(void *data)
+{
+       DSLOG_INF("DSRenderViewDaliImpl", "__onWindowRaiseToTopChanged.");
+
+       __textureViewActor.SetProperty(Actor::Property::VISIBLE, true);
+       __textureViewActor.RaiseToTop();
+
+       __updatedSignal.emit(nullptr);
+}
+
 } // namespace display_server
index 356b787..d6fe3f6 100644 (file)
@@ -49,6 +49,7 @@ public:
 
 private:
        void __onWindowBufferChanged(std::shared_ptr<IDSBuffer> buffer);
+       void __onWindowRaiseToTopChanged(void *data);
 
        std::shared_ptr<DSWindow> __window;
        Dali::OffscreenWindow     __offscreenWindow;