| 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 24 matching lines...) Expand all Loading... |
| 35 static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay); | 35 static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay); |
| 36 | 36 |
| 37 enum SkBackEndTypes { | 37 enum SkBackEndTypes { |
| 38 kNone_BackEndType, | 38 kNone_BackEndType, |
| 39 #if SK_SUPPORT_GPU | 39 #if SK_SUPPORT_GPU |
| 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 kCommandBufferES2_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, AttachmentInfo*)
; |
| 51 void detach(); | 51 void detach(); |
| 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); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 bool attachCommandBuffer(int msaaSampleCount, AttachmentInfo* info); | 140 bool attachCommandBuffer(int msaaSampleCount, AttachmentInfo* info); |
| 141 void detachCommandBuffer(); | 141 void detachCommandBuffer(); |
| 142 void presentCommandBuffer(); | 142 void presentCommandBuffer(); |
| 143 #endif // SK_COMMAND_BUFFER | 143 #endif // SK_COMMAND_BUFFER |
| 144 #endif // SK_SUPPORT_GPU | 144 #endif // SK_SUPPORT_GPU |
| 145 | 145 |
| 146 typedef SkWindow INHERITED; | 146 typedef SkWindow INHERITED; |
| 147 }; | 147 }; |
| 148 | 148 |
| 149 #endif | 149 #endif |
| OLD | NEW |