| 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 |
| 11 | 11 |
| 12 #include "SkWindow.h" | 12 #include "SkWindow.h" |
| 13 | 13 |
| 14 class SkOSWindow : public SkWindow { | 14 class SkOSWindow : public SkWindow { |
| 15 public: | 15 public: |
| 16 SkOSWindow(void* hwnd); | 16 SkOSWindow(void* hwnd); |
| 17 ~SkOSWindow(); | 17 ~SkOSWindow(); |
| 18 void* getHWND() const { return fHWND; } | 18 void* getHWND() const { return fHWND; } |
| 19 | 19 |
| 20 virtual bool onDispatchClick(int x, int y, Click::State state, | 20 virtual bool onDispatchClick(int x, int y, Click::State state, |
| 21 void* owner, unsigned modi); | 21 void* owner, unsigned modi); |
| 22 enum SkBackEndTypes { | 22 enum SkBackEndTypes { |
| 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 #if SK_ANGLE |
| 28 kANGLE_BackEndType, |
| 29 #endif // SK_ANGLE |
| 27 #if SK_COMMAND_BUFFER | 30 #if SK_COMMAND_BUFFER |
| 28 kCommandBuffer_BackEndType, | 31 kCommandBuffer_BackEndType, |
| 29 #endif // SK_COMMAND_BUFFER | 32 #endif // SK_COMMAND_BUFFER |
| 30 }; | 33 }; |
| 31 | 34 |
| 32 void detach(); | 35 void detach(); |
| 33 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInf
o*); | 36 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInf
o*); |
| 34 void present(); | 37 void present(); |
| 35 | 38 |
| 36 bool makeFullscreen(); | 39 bool makeFullscreen(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 50 void* fHWND; | 53 void* fHWND; |
| 51 bool fInvalEventIsPending; | 54 bool fInvalEventIsPending; |
| 52 void* fNotifier; | 55 void* fNotifier; |
| 53 #if SK_SUPPORT_GPU | 56 #if SK_SUPPORT_GPU |
| 54 void* fGLContext; | 57 void* fGLContext; |
| 55 #endif | 58 #endif |
| 56 typedef SkWindow INHERITED; | 59 typedef SkWindow INHERITED; |
| 57 }; | 60 }; |
| 58 | 61 |
| 59 #endif | 62 #endif |
| OLD | NEW |