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 10 matching lines...) Expand all Loading... |
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 | 27 #if SK_ANGLE |
28 kANGLE_BackEndType, | 28 kANGLE_BackEndType, |
29 #endif // SK_ANGLE | 29 #endif // SK_ANGLE |
30 #if SK_COMMAND_BUFFER | 30 #if SK_COMMAND_BUFFER |
31 kCommandBuffer_BackEndType, | 31 kCommandBufferES2_BackEndType, |
32 #endif // SK_COMMAND_BUFFER | 32 #endif // SK_COMMAND_BUFFER |
33 }; | 33 }; |
34 | 34 |
35 void detach(); | 35 void detach(); |
36 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInf
o*); | 36 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInf
o*); |
37 void present(); | 37 void present(); |
38 | 38 |
39 bool makeFullscreen(); | 39 bool makeFullscreen(); |
40 void closeWindow(); | 40 void closeWindow(); |
41 void setVsync(bool); | 41 void setVsync(bool); |
(...skipping 11 matching lines...) Expand all Loading... |
53 void* fHWND; | 53 void* fHWND; |
54 bool fInvalEventIsPending; | 54 bool fInvalEventIsPending; |
55 void* fNotifier; | 55 void* fNotifier; |
56 #if SK_SUPPORT_GPU | 56 #if SK_SUPPORT_GPU |
57 void* fGLContext; | 57 void* fGLContext; |
58 #endif | 58 #endif |
59 typedef SkWindow INHERITED; | 59 typedef SkWindow INHERITED; |
60 }; | 60 }; |
61 | 61 |
62 #endif | 62 #endif |
OLD | NEW |