OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef SkOSWindow_MacCocoa_DEFINED | 9 #ifndef SkOSWindow_MacCocoa_DEFINED |
10 #define SkOSWindow_MacCocoa_DEFINED | 10 #define SkOSWindow_MacCocoa_DEFINED |
(...skipping 12 matching lines...) Expand all Loading... |
23 kNone_BackEndType, | 23 kNone_BackEndType, |
24 #if SK_SUPPORT_GPU | 24 #if SK_SUPPORT_GPU |
25 kNativeGL_BackEndType, | 25 kNativeGL_BackEndType, |
26 #endif | 26 #endif |
27 }; | 27 }; |
28 | 28 |
29 void detach(); | 29 void detach(); |
30 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInf
o*); | 30 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInf
o*); |
31 void present(); | 31 void present(); |
32 | 32 |
| 33 bool makeFullscreen() { return false; } |
| 34 void closeWindow() { /* Not impl yet */ } |
| 35 void setVsync(bool) { /* Not impl yet */ } |
| 36 |
33 protected: | 37 protected: |
34 // overrides from SkEventSink | 38 // overrides from SkEventSink |
35 virtual bool onEvent(const SkEvent& evt); | 39 virtual bool onEvent(const SkEvent& evt); |
36 // overrides from SkWindow | 40 // overrides from SkWindow |
37 virtual void onHandleInval(const SkIRect&); | 41 virtual void onHandleInval(const SkIRect&); |
38 // overrides from SkView | 42 // overrides from SkView |
39 virtual void onAddMenu(const SkOSMenu*); | 43 virtual void onAddMenu(const SkOSMenu*); |
40 virtual void onUpdateMenu(const SkOSMenu*); | 44 virtual void onUpdateMenu(const SkOSMenu*); |
41 virtual void onSetTitle(const char[]); | 45 virtual void onSetTitle(const char[]); |
42 | 46 |
43 private: | 47 private: |
44 void* fHWND; | 48 void* fHWND; |
45 bool fInvalEventIsPending; | 49 bool fInvalEventIsPending; |
46 void* fNotifier; | 50 void* fNotifier; |
47 #if SK_SUPPORT_GPU | 51 #if SK_SUPPORT_GPU |
48 void* fGLContext; | 52 void* fGLContext; |
49 #endif | 53 #endif |
50 typedef SkWindow INHERITED; | 54 typedef SkWindow INHERITED; |
51 }; | 55 }; |
52 | 56 |
53 #endif | 57 #endif |
OLD | NEW |