| 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 19 matching lines...) Expand all Loading... |
| 30 enum SkBackEndTypes { | 30 enum SkBackEndTypes { |
| 31 kNone_BackEndType, | 31 kNone_BackEndType, |
| 32 #if SK_SUPPORT_GPU | 32 #if SK_SUPPORT_GPU |
| 33 kNativeGL_BackEndType, | 33 kNativeGL_BackEndType, |
| 34 #if SK_ANGLE | 34 #if SK_ANGLE |
| 35 kANGLE_BackEndType, | 35 kANGLE_BackEndType, |
| 36 #endif // SK_ANGLE | 36 #endif // SK_ANGLE |
| 37 #endif // SK_SUPPORT_GPU | 37 #endif // SK_SUPPORT_GPU |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 struct AttachmentInfo { | |
| 41 int fSampleCount; | |
| 42 int fStencilBits; | |
| 43 }; | |
| 44 | |
| 45 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*)
; | 40 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*)
; |
| 46 void detach(); | 41 void detach(); |
| 47 void present(); | 42 void present(); |
| 48 | 43 |
| 49 bool wndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); | 44 bool wndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); |
| 50 static bool QuitOnDeactivate(HWND hWnd); | 45 static bool QuitOnDeactivate(HWND hWnd); |
| 51 | 46 |
| 52 enum { | 47 enum { |
| 53 SK_WM_SkEvent = WM_APP + 1000, | 48 SK_WM_SkEvent = WM_APP + 1000, |
| 54 SK_WM_SkTimerID = 0xFFFF // just need a non-zero value | 49 SK_WM_SkTimerID = 0xFFFF // just need a non-zero value |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 bool attachANGLE(int msaaSampleCount, AttachmentInfo* info); | 87 bool attachANGLE(int msaaSampleCount, AttachmentInfo* info); |
| 93 void detachANGLE(); | 88 void detachANGLE(); |
| 94 void presentANGLE(); | 89 void presentANGLE(); |
| 95 #endif // SK_ANGLE | 90 #endif // SK_ANGLE |
| 96 #endif // SK_SUPPORT_GPU | 91 #endif // SK_SUPPORT_GPU |
| 97 | 92 |
| 98 typedef SkWindow INHERITED; | 93 typedef SkWindow INHERITED; |
| 99 }; | 94 }; |
| 100 | 95 |
| 101 #endif | 96 #endif |
| OLD | NEW |