| 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 | |
| 10 #include "gl/GrGLExtensions.h" | |
| 11 #include "gl/GrGLInterface.h" | 9 #include "gl/GrGLInterface.h" |
| 12 #include "gl/GrGLUtil.h" | 10 #include "gl/GrGLUtil.h" |
| 13 #define WIN32_LEAN_AND_MEAN | 11 #define WIN32_LEAN_AND_MEAN |
| 14 #include <windows.h> | 12 #include <windows.h> |
| 15 | 13 |
| 16 /* | 14 /* |
| 17 * Windows makes the GL funcs all be __stdcall instead of __cdecl :( | 15 * Windows makes the GL funcs all be __stdcall instead of __cdecl :( |
| 18 * This implementation will only work if GR_GL_FUNCTION_TYPE is __stdcall. | 16 * This implementation will only work if GR_GL_FUNCTION_TYPE is __stdcall. |
| 19 * Otherwise, a springboard would be needed that hides the calling convention. | 17 * Otherwise, a springboard would be needed that hides the calling convention. |
| 20 */ | 18 */ |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 WGL_SET_PROC_SUFFIX(GetPathColorGenfv, NV); | 299 WGL_SET_PROC_SUFFIX(GetPathColorGenfv, NV); |
| 302 WGL_SET_PROC_SUFFIX(GetPathTexGeniv, NV); | 300 WGL_SET_PROC_SUFFIX(GetPathTexGeniv, NV); |
| 303 WGL_SET_PROC_SUFFIX(GetPathTexGenfv, NV); | 301 WGL_SET_PROC_SUFFIX(GetPathTexGenfv, NV); |
| 304 WGL_SET_PROC_SUFFIX(IsPointInFillPath, NV); | 302 WGL_SET_PROC_SUFFIX(IsPointInFillPath, NV); |
| 305 WGL_SET_PROC_SUFFIX(IsPointInStrokePath, NV); | 303 WGL_SET_PROC_SUFFIX(IsPointInStrokePath, NV); |
| 306 WGL_SET_PROC_SUFFIX(GetPathLength, NV); | 304 WGL_SET_PROC_SUFFIX(GetPathLength, NV); |
| 307 WGL_SET_PROC_SUFFIX(PointAlongPath, NV); | 305 WGL_SET_PROC_SUFFIX(PointAlongPath, NV); |
| 308 } | 306 } |
| 309 | 307 |
| 310 interface->fStandard = kGL_GrGLStandard; | 308 interface->fStandard = kGL_GrGLStandard; |
| 309 interface->fExtensions.swap(&extensions); |
| 311 | 310 |
| 312 return interface; | 311 return interface; |
| 313 } else { | 312 } else { |
| 314 return NULL; | 313 return NULL; |
| 315 } | 314 } |
| 316 } | 315 } |
| OLD | NEW |