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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 static SkTHashMap<void*, SkOSWindow*> gHwndToOSWindowMap; | 91 static SkTHashMap<void*, SkOSWindow*> gHwndToOSWindowMap; |
92 | 92 |
93 WindowInit fWinInit; | 93 WindowInit fWinInit; |
94 void* fHWND; | 94 void* fHWND; |
95 | 95 |
96 void doPaint(void* ctx); | 96 void doPaint(void* ctx); |
97 | 97 |
98 #if SK_SUPPORT_GPU | 98 #if SK_SUPPORT_GPU |
99 void* fHGLRC; | 99 void* fHGLRC; |
100 #if SK_ANGLE | 100 #if SK_ANGLE |
101 EGLDisplay fDisplay; | 101 EGLDisplay fDisplay; |
102 EGLContext fContext; | 102 EGLContext fContext; |
103 EGLSurface fSurface; | 103 EGLSurface fSurface; |
104 EGLConfig fConfig; | 104 EGLConfig fConfig; |
| 105 SkAutoTUnref<const GrGLInterface> fANGLEInterface; |
105 #endif // SK_ANGLE | 106 #endif // SK_ANGLE |
106 #if SK_COMMAND_BUFFER | 107 #if SK_COMMAND_BUFFER |
107 SkCommandBufferGLContext* fCommandBuffer; | 108 SkCommandBufferGLContext* fCommandBuffer; |
108 #endif // SK_COMMAND_BUFFER | 109 #endif // SK_COMMAND_BUFFER |
109 #endif // SK_SUPPORT_GPU | 110 #endif // SK_SUPPORT_GPU |
110 | 111 |
111 bool fFullscreen; | 112 bool fFullscreen; |
112 struct SavedWindowState { | 113 struct SavedWindowState { |
113 bool fZoomed; | 114 bool fZoomed; |
114 LONG fStyle; | 115 LONG fStyle; |
(...skipping 25 matching lines...) Expand all Loading... |
140 bool attachCommandBuffer(int msaaSampleCount, AttachmentInfo* info); | 141 bool attachCommandBuffer(int msaaSampleCount, AttachmentInfo* info); |
141 void detachCommandBuffer(); | 142 void detachCommandBuffer(); |
142 void presentCommandBuffer(); | 143 void presentCommandBuffer(); |
143 #endif // SK_COMMAND_BUFFER | 144 #endif // SK_COMMAND_BUFFER |
144 #endif // SK_SUPPORT_GPU | 145 #endif // SK_SUPPORT_GPU |
145 | 146 |
146 typedef SkWindow INHERITED; | 147 typedef SkWindow INHERITED; |
147 }; | 148 }; |
148 | 149 |
149 #endif | 150 #endif |
OLD | NEW |