Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp

Issue 99173003: Use lowercase windows.h in includes to fix Windows cross compilation using mingw. (Closed)
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/utils/win/SkIStream.h ('k') | src/gpu/gl/win/SkNativeGLContext_win.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 9
10 #include "gl/GrGLExtensions.h" 10 #include "gl/GrGLExtensions.h"
11 #include "gl/GrGLInterface.h" 11 #include "gl/GrGLInterface.h"
12 #include "gl/GrGLUtil.h" 12 #include "gl/GrGLUtil.h"
13 #define WIN32_LEAN_AND_MEAN 13 #define WIN32_LEAN_AND_MEAN
14 #include <Windows.h> 14 #include <windows.h>
15 15
16 /* 16 /*
17 * Windows makes the GL funcs all be __stdcall instead of __cdecl :( 17 * Windows makes the GL funcs all be __stdcall instead of __cdecl :(
18 * This implementation will only work if GR_GL_FUNCTION_TYPE is __stdcall. 18 * This implementation will only work if GR_GL_FUNCTION_TYPE is __stdcall.
19 * Otherwise, a springboard would be needed that hides the calling convention. 19 * Otherwise, a springboard would be needed that hides the calling convention.
20 */ 20 */
21 21
22 #define SET_PROC(F) interface->f ## F = (GrGL ## F ## Proc) GetProcAddress(alu.g et(), "gl" #F); 22 #define SET_PROC(F) interface->f ## F = (GrGL ## F ## Proc) GetProcAddress(alu.g et(), "gl" #F);
23 #define WGL_SET_PROC(F) interface->f ## F = (GrGL ## F ## Proc) wglGetProcAddres s("gl" #F); 23 #define WGL_SET_PROC(F) interface->f ## F = (GrGL ## F ## Proc) wglGetProcAddres s("gl" #F);
24 #define WGL_SET_PROC_SUFFIX(F, S) interface->f ## F = \ 24 #define WGL_SET_PROC_SUFFIX(F, S) interface->f ## F = \
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 WGL_SET_PROC_SUFFIX(PointAlongPath, NV); 311 WGL_SET_PROC_SUFFIX(PointAlongPath, NV);
312 } 312 }
313 313
314 interface->fBindingsExported = kDesktop_GrGLBinding; 314 interface->fBindingsExported = kDesktop_GrGLBinding;
315 315
316 return interface; 316 return interface;
317 } else { 317 } else {
318 return NULL; 318 return NULL;
319 } 319 }
320 } 320 }
OLDNEW
« no previous file with comments | « include/utils/win/SkIStream.h ('k') | src/gpu/gl/win/SkNativeGLContext_win.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698