OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
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 #include "SkRefCnt.h" | 9 #include "SkRefCnt.h" |
10 | 10 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 typedef BOOL (WINAPI *GetPixelFormatAttribfvProc)(HDC hdc, int, int, UINT, c
onst int*, FLOAT*); | 99 typedef BOOL (WINAPI *GetPixelFormatAttribfvProc)(HDC hdc, int, int, UINT, c
onst int*, FLOAT*); |
100 typedef HGLRC (WINAPI *CreateContextAttribsProc)(HDC hDC, HGLRC, const int *
); | 100 typedef HGLRC (WINAPI *CreateContextAttribsProc)(HDC hDC, HGLRC, const int *
); |
101 | 101 |
102 GetExtensionsStringProc fGetExtensionsString; | 102 GetExtensionsStringProc fGetExtensionsString; |
103 ChoosePixelFormatProc fChoosePixelFormat; | 103 ChoosePixelFormatProc fChoosePixelFormat; |
104 GetPixelFormatAttribfvProc fGetPixelFormatAttribfv; | 104 GetPixelFormatAttribfvProc fGetPixelFormatAttribfv; |
105 GetPixelFormatAttribivProc fGetPixelFormatAttribiv; | 105 GetPixelFormatAttribivProc fGetPixelFormatAttribiv; |
106 CreateContextAttribsProc fCreateContextAttribs; | 106 CreateContextAttribsProc fCreateContextAttribs; |
107 }; | 107 }; |
108 | 108 |
| 109 /** |
| 110 * Helper to create an OpenGL context for a DC using WGL. Configs with a sample
count >= to |
| 111 * msaaSampleCount are preferred but if none is available then a context with a
lower sample count |
| 112 * (including non-MSAA) will be created. If preferCoreProfile is true but a core
profile cannot be |
| 113 * created then a compatible profile context will be created. |
| 114 */ |
| 115 HGLRC SkCreateWGLContext(HDC dc, int msaaSampleCount, bool preferCoreProfile); |
| 116 |
109 #endif | 117 #endif |
OLD | NEW |