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 | 9 |
10 #ifndef SkOSWindow_Win_DEFINED | 10 #ifndef SkOSWindow_Win_DEFINED |
(...skipping 29 matching lines...) Expand all Loading... |
40 kNativeGL_BackEndType, | 40 kNativeGL_BackEndType, |
41 #if SK_ANGLE | 41 #if SK_ANGLE |
42 kANGLE_BackEndType, | 42 kANGLE_BackEndType, |
43 #endif // SK_ANGLE | 43 #endif // SK_ANGLE |
44 #if SK_COMMAND_BUFFER | 44 #if SK_COMMAND_BUFFER |
45 kCommandBuffer_BackEndType, | 45 kCommandBuffer_BackEndType, |
46 #endif // SK_COMMAND_BUFFER | 46 #endif // SK_COMMAND_BUFFER |
47 #endif // SK_SUPPORT_GPU | 47 #endif // SK_SUPPORT_GPU |
48 }; | 48 }; |
49 | 49 |
50 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*)
; | 50 bool attach(SkBackEndTypes attachType, int msaaSampleCount, bool tenBitColor
, AttachmentInfo*); |
51 void release(); | 51 void release(); |
52 void present(); | 52 void present(); |
53 | 53 |
54 bool wndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); | 54 bool wndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); |
55 static bool QuitOnDeactivate(HWND hWnd); | 55 static bool QuitOnDeactivate(HWND hWnd); |
56 | 56 |
57 enum { | 57 enum { |
58 SK_WM_SkEvent = WM_APP + 1000, | 58 SK_WM_SkEvent = WM_APP + 1000, |
59 SK_WM_SkTimerID = 0xFFFF // just need a non-zero value | 59 SK_WM_SkTimerID = 0xFFFF // just need a non-zero value |
60 }; | 60 }; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 LONG fScreenBits; | 120 LONG fScreenBits; |
121 void* fHWND; | 121 void* fHWND; |
122 } fSavedWindowState; | 122 } fSavedWindowState; |
123 | 123 |
124 HMENU fMBar; | 124 HMENU fMBar; |
125 | 125 |
126 SkBackEndTypes fAttached; | 126 SkBackEndTypes fAttached; |
127 | 127 |
128 void updateSize(); | 128 void updateSize(); |
129 #if SK_SUPPORT_GPU | 129 #if SK_SUPPORT_GPU |
130 bool attachGL(int msaaSampleCount, AttachmentInfo* info); | 130 bool attachGL(int msaaSampleCount, bool tenBitColor, AttachmentInfo* info); |
131 void detachGL(); | 131 void detachGL(); |
132 void presentGL(); | 132 void presentGL(); |
133 | 133 |
134 #if SK_ANGLE | 134 #if SK_ANGLE |
135 bool attachANGLE(int msaaSampleCount, AttachmentInfo* info); | 135 bool attachANGLE(int msaaSampleCount, AttachmentInfo* info); |
136 void detachANGLE(); | 136 void detachANGLE(); |
137 void presentANGLE(); | 137 void presentANGLE(); |
138 #endif // SK_ANGLE | 138 #endif // SK_ANGLE |
139 | 139 |
140 #if SK_COMMAND_BUFFER | 140 #if SK_COMMAND_BUFFER |
141 bool attachCommandBuffer(int msaaSampleCount, AttachmentInfo* info); | 141 bool attachCommandBuffer(int msaaSampleCount, AttachmentInfo* info); |
142 void detachCommandBuffer(); | 142 void detachCommandBuffer(); |
143 void presentCommandBuffer(); | 143 void presentCommandBuffer(); |
144 #endif // SK_COMMAND_BUFFER | 144 #endif // SK_COMMAND_BUFFER |
145 #endif // SK_SUPPORT_GPU | 145 #endif // SK_SUPPORT_GPU |
146 | 146 |
147 typedef SkWindow INHERITED; | 147 typedef SkWindow INHERITED; |
148 }; | 148 }; |
149 | 149 |
150 #endif | 150 #endif |
OLD | NEW |