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

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

Issue 140823003: Move GrGLExtensions from GrGLContextInfo to GrGLInterface (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix Android Created 6 years, 11 months 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 | Annotate | Revision Log
« no previous file with comments | « src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp ('k') | no next file » | 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
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698