| 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; } | 33 bool makeFullscreen(); |
| 34 void closeWindow() { /* Not impl yet */ } | 34 void closeWindow(); |
| 35 void setVsync(bool) { /* Not impl yet */ } | 35 void setVsync(bool); |
| 36 | |
| 37 protected: | 36 protected: |
| 38 // overrides from SkEventSink | 37 // overrides from SkEventSink |
| 39 virtual bool onEvent(const SkEvent& evt); | 38 virtual bool onEvent(const SkEvent& evt); |
| 40 // overrides from SkWindow | 39 // overrides from SkWindow |
| 41 virtual void onHandleInval(const SkIRect&); | 40 virtual void onHandleInval(const SkIRect&); |
| 42 // overrides from SkView | 41 // overrides from SkView |
| 43 virtual void onAddMenu(const SkOSMenu*); | 42 virtual void onAddMenu(const SkOSMenu*); |
| 44 virtual void onUpdateMenu(const SkOSMenu*); | 43 virtual void onUpdateMenu(const SkOSMenu*); |
| 45 virtual void onSetTitle(const char[]); | 44 virtual void onSetTitle(const char[]); |
| 46 | 45 |
| 47 private: | 46 private: |
| 48 void* fHWND; | 47 void* fHWND; |
| 49 bool fInvalEventIsPending; | 48 bool fInvalEventIsPending; |
| 50 void* fNotifier; | 49 void* fNotifier; |
| 51 #if SK_SUPPORT_GPU | 50 #if SK_SUPPORT_GPU |
| 52 void* fGLContext; | 51 void* fGLContext; |
| 53 #endif | 52 #endif |
| 54 typedef SkWindow INHERITED; | 53 typedef SkWindow INHERITED; |
| 55 }; | 54 }; |
| 56 | 55 |
| 57 #endif | 56 #endif |
| OLD | NEW |