From 53741fb062a67cbb525927aad9ab54862f072968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E7=A3=8A?= Date: Mon, 26 Jul 2021 16:52:49 +0800 Subject: [PATCH] fix bug volayer resize MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ib21271f5914886e3ea3839c34e565e2bd690cd32 Signed-off-by: 黄磊 --- interfaces/innerkits/wm/window_manager.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/interfaces/innerkits/wm/window_manager.h b/interfaces/innerkits/wm/window_manager.h index c1107a7337..f50ec1d0f9 100644 --- a/interfaces/innerkits/wm/window_manager.h +++ b/interfaces/innerkits/wm/window_manager.h @@ -33,14 +33,14 @@ namespace OHOS { class WindowBase { public: WindowBase(int32_t windowid, sptr& surface); - ~WindowBase(); + virtual ~WindowBase(); void GetRequestConfig(BufferRequestConfig& config); void SetRequestConfig(BufferRequestConfig& config); void RegistWindowInfoChangeCb(funcWindowInfoChange cb); int32_t GetWindowID(); - sptr GetSurface(); + virtual sptr GetSurface(); protected: int32_t m_windowid; @@ -83,10 +83,10 @@ public: class SubWindow : public WindowBase { public: SubWindow(int32_t windowid, sptr& surface); - ~SubWindow(); + virtual ~SubWindow(); - void Move(int32_t x, int32_t y); - void SetSubWindowSize(int32_t width, int32_t height); + virtual void Move(int32_t x, int32_t y); + virtual void SetSubWindowSize(int32_t width, int32_t height); }; class WindowManager : public RefBase {