DSWindow: add setDisplayDeviceHWCWindow method 80/242780/1
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 28 Aug 2020 08:33:57 +0000 (17:33 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Tue, 1 Sep 2020 01:29:44 +0000 (10:29 +0900)
Change-Id: I6f1ba1e2d08b72e47027d6501eff216f108b59c7

src/DSWindow/DSWindow.cpp
src/DSWindow/DSWindow.h
src/DSWindow/DSWindowPrivate.h

index 7ac5334..54f5b42 100644 (file)
@@ -47,7 +47,8 @@ DSWindowPrivate::DSWindowPrivate(DSWindow *p_ptr)
          __allowUserGeometry(false),
          __title(""),
          __vkbd_floating(false),
-         __renderView(nullptr)
+         __renderView(nullptr),
+         __displayDeviceHWCWindow(nullptr)
 {
 }
 
@@ -177,6 +178,11 @@ void DSWindowPrivate::setRenderView(std::shared_ptr<DSRenderView> &renderView)
        __renderView = renderView;
 }
 
+void DSWindowPrivate::setDisplayDeviceHWCWindow(std::shared_ptr<IDSDisplayDeviceHWCWindow> &displayDeviceHWCWindow)
+{
+       __displayDeviceHWCWindow = displayDeviceHWCWindow;
+}
+
 void DSWindowPrivate::__onSurfaceCommitted(std::shared_ptr<DSWaylandSurfaceCommitInfo> waylandSurfaceCommitInfo)
 {
        DS_GET_PUB(DSWindow);
@@ -441,6 +447,13 @@ void DSWindow::setRenderView(std::shared_ptr<DSRenderView> &renderView)
        priv->setRenderView(renderView);
 }
 
+void DSWindow::setDisplayDeviceHWCWindow(std::shared_ptr<IDSDisplayDeviceHWCWindow> &displayDeviceHWCWindow)
+{
+       DS_GET_PRIV(DSWindow);
+
+       priv->setDisplayDeviceHWCWindow(displayDeviceHWCWindow);
+}
+
 void DSWindow::registerCallbackBufferChanged(DSObject *slot, std::function<void(std::shared_ptr<IDSBuffer>)> func)
 {
        __bufferChangedSignal.connect(slot, func);
index 3e807c3..808cc03 100644 (file)
@@ -30,6 +30,7 @@
 #include "DSSignal.h"
 #include "IDSBuffer.h"
 #include "DSRenderView.h"
+#include "IDSDisplayDeviceHWCWindow.h"
 
 namespace display_server
 {
@@ -91,6 +92,7 @@ public:
        DSWaylandSurface *surface();
 
        void setRenderView(std::shared_ptr<DSRenderView> &renderView);
+       void setDisplayDeviceHWCWindow(std::shared_ptr<IDSDisplayDeviceHWCWindow> &displayDeviceHWCWindow);
 
        void registerCallbackBufferChanged(DSObject *slot, std::function<void(std::shared_ptr<IDSBuffer>)> func);
 
index 4b03957..68c626c 100644 (file)
@@ -28,6 +28,7 @@
 #include "DSObjectPrivate.h"
 #include "DSWaylandSurface.h"
 #include "DSRenderView.h"
+#include "IDSDisplayDeviceHWCWindow.h"
 
 namespace display_server
 {
@@ -74,6 +75,7 @@ public:
        bool getVkbdFloating();
 
        void setRenderView(std::shared_ptr<DSRenderView> &renderView);
+       void setDisplayDeviceHWCWindow(std::shared_ptr<IDSDisplayDeviceHWCWindow> &displayDeviceHWCWindow);
 
 private:
        void __onSurfaceCommitted(std::shared_ptr<DSWaylandSurfaceCommitInfo> waylandSurfaceCommitInfo);
@@ -95,6 +97,7 @@ private:
        bool __vkbd_floating;
 
        std::shared_ptr<DSRenderView> __renderView;
+       std::shared_ptr<IDSDisplayDeviceHWCWindow> __displayDeviceHWCWindow;
 };
 
 }