| 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 bool attach(SkBackEndTypes attachType, int msaaSampleCount); | 40 struct AttachmentInfo { |
| 41 int fSampleCount; |
| 42 int fStencilBits; |
| 43 }; |
| 44 |
| 45 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*)
; |
| 41 void detach(); | 46 void detach(); |
| 42 void present(); | 47 void present(); |
| 43 | 48 |
| 44 bool wndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); | 49 bool wndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); |
| 45 static bool QuitOnDeactivate(HWND hWnd); | 50 static bool QuitOnDeactivate(HWND hWnd); |
| 46 | 51 |
| 47 enum { | 52 enum { |
| 48 SK_WM_SkEvent = WM_APP + 1000, | 53 SK_WM_SkEvent = WM_APP + 1000, |
| 49 SK_WM_SkTimerID = 0xFFFF // just need a non-zero value | 54 SK_WM_SkTimerID = 0xFFFF // just need a non-zero value |
| 50 }; | 55 }; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 63 void* fHWND; | 68 void* fHWND; |
| 64 | 69 |
| 65 void doPaint(void* ctx); | 70 void doPaint(void* ctx); |
| 66 | 71 |
| 67 #if SK_SUPPORT_GPU | 72 #if SK_SUPPORT_GPU |
| 68 void* fHGLRC; | 73 void* fHGLRC; |
| 69 #if SK_ANGLE | 74 #if SK_ANGLE |
| 70 EGLDisplay fDisplay; | 75 EGLDisplay fDisplay; |
| 71 EGLContext fContext; | 76 EGLContext fContext; |
| 72 EGLSurface fSurface; | 77 EGLSurface fSurface; |
| 78 EGLConfig fConfig; |
| 73 #endif // SK_ANGLE | 79 #endif // SK_ANGLE |
| 74 #endif // SK_SUPPORT_GPU | 80 #endif // SK_SUPPORT_GPU |
| 75 | 81 |
| 76 HMENU fMBar; | 82 HMENU fMBar; |
| 77 | 83 |
| 78 SkBackEndTypes fAttached; | 84 SkBackEndTypes fAttached; |
| 79 | 85 |
| 80 #if SK_SUPPORT_GPU | 86 #if SK_SUPPORT_GPU |
| 81 bool attachGL(int msaaSampleCount); | 87 bool attachGL(int msaaSampleCount, AttachmentInfo* info); |
| 82 void detachGL(); | 88 void detachGL(); |
| 83 void presentGL(); | 89 void presentGL(); |
| 84 | 90 |
| 85 #if SK_ANGLE | 91 #if SK_ANGLE |
| 86 bool attachANGLE(int msaaSampleCount); | 92 bool attachANGLE(int msaaSampleCount, AttachmentInfo* info); |
| 87 void detachANGLE(); | 93 void detachANGLE(); |
| 88 void presentANGLE(); | 94 void presentANGLE(); |
| 89 #endif // SK_ANGLE | 95 #endif // SK_ANGLE |
| 90 #endif // SK_SUPPORT_GPU | 96 #endif // SK_SUPPORT_GPU |
| 91 | 97 |
| 92 typedef SkWindow INHERITED; | 98 typedef SkWindow INHERITED; |
| 93 }; | 99 }; |
| 94 | 100 |
| 95 #endif | 101 #endif |
| OLD | NEW |