diff options
Diffstat (limited to 'include/views')
-rw-r--r-- | include/views/SkOSWindow_Mac.h | 3 | ||||
-rw-r--r-- | include/views/SkOSWindow_Unix.h | 4 | ||||
-rw-r--r-- | include/views/SkOSWindow_Win.h | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/include/views/SkOSWindow_Mac.h b/include/views/SkOSWindow_Mac.h index 41766a0f53..d331ecaa71 100644 --- a/include/views/SkOSWindow_Mac.h +++ b/include/views/SkOSWindow_Mac.h @@ -13,6 +13,7 @@ class SkOSWindow : public SkWindow { public: + SkOSWindow(void* hwnd, int w, int h); SkOSWindow(void* hwnd); ~SkOSWindow(); void* getHWND() const { return fHWND; } @@ -48,6 +49,8 @@ protected: virtual void onSetTitle(const char[]); private: + void init(void* hwnd, int w, int h); + void* fHWND; bool fInvalEventIsPending; void* fNotifier; diff --git a/include/views/SkOSWindow_Unix.h b/include/views/SkOSWindow_Unix.h index 48838e764c..e1961316e4 100644 --- a/include/views/SkOSWindow_Unix.h +++ b/include/views/SkOSWindow_Unix.h @@ -26,6 +26,7 @@ struct SkUnixWindow { class SkOSWindow : public SkWindow { public: SkOSWindow(void*); + SkOSWindow(void*, int width, int height); ~SkOSWindow() override; void* getHWND() const { return (void*)fUnixWindow.fWin; } @@ -71,7 +72,8 @@ private: // Forcefully closes the window. If a graceful shutdown is desired then call the public // closeWindow method void internalCloseWindow(); - void initWindow(int newMSAASampleCount, AttachmentInfo* info); + void initWindow(int newMSAASampleCount, AttachmentInfo* info, int w, int h); + void init(int w, int h); SkUnixWindow fUnixWindow; diff --git a/include/views/SkOSWindow_Win.h b/include/views/SkOSWindow_Win.h index 774244400c..076b4147a0 100644 --- a/include/views/SkOSWindow_Win.h +++ b/include/views/SkOSWindow_Win.h @@ -26,6 +26,7 @@ public: }; SkOSWindow(const void* winInit); + SkOSWindow(const void* winInit, int w, int h); virtual ~SkOSWindow(); static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay); @@ -87,6 +88,7 @@ private: void* fHWND; void doPaint(void* ctx); + void init(const void* winInit, int w, int h); #if SK_SUPPORT_GPU void* fHGLRC; |