diff options
Diffstat (limited to 'include/views/SkOSWindow_Win.h')
-rw-r--r-- | include/views/SkOSWindow_Win.h | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/include/views/SkOSWindow_Win.h b/include/views/SkOSWindow_Win.h index 0a70f75..09f0c5c 100644 --- a/include/views/SkOSWindow_Win.h +++ b/include/views/SkOSWindow_Win.h @@ -22,12 +22,23 @@ class SkOSWindow : public SkWindow { public: SkOSWindow(void* hwnd); + virtual ~SkOSWindow(); void* getHWND() const { return fHWND; } void setSize(int width, int height); void updateSize(); static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay); + + bool attachGL(const SkBitmap* offscreen); + void detachGL(); + void presentGL(); + + bool attachD3D9(); + void detachD3D9(); + void presentD3D9(); + + void* d3d9Device() { return fD3D9Device; } bool wndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); static bool QuitOnDeactivate(HWND hWnd); @@ -45,14 +56,23 @@ protected: // overrides from SkView virtual void onAddMenu(const SkOSMenu*); + virtual void onSetTitle(const char title[]); + private: - void* fHWND; + void* fHWND; + + void doPaint(void* ctx); + + void* fHGLRC; + + bool fGLAttached; - void doPaint(void* ctx); + void* fD3D9Device; + bool fD3D9Attached; - HMENU fMBar; + HMENU fMBar; - typedef SkWindow INHERITED; + typedef SkWindow INHERITED; }; #endif |