diff options
author | 2014-01-21 16:09:18 +0000 | |
---|---|---|
committer | 2014-01-21 16:09:18 +0000 | |
commit | c72425ae368bfcb47de7d2532eb90d305ec0d1cf (patch) | |
tree | 89199d135e0f899f726632155965dc4b3f17cfe4 /src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp | |
parent | 91506eb0b9461a19c6fc7dc0b15edbdbd1ed094d (diff) |
Move GrGLInterface function pointers into a nested struct
BUG=skia:2042
R=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/133073009
git-svn-id: http://skia.googlecode.com/svn/trunk@13130 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp')
-rw-r--r-- | src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp b/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp index e011605edf..e901b3602c 100644 --- a/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp +++ b/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp @@ -17,10 +17,9 @@ * Otherwise, a springboard would be needed that hides the calling convention. */ -#define SET_PROC(F) interface->f ## F = (GrGL ## F ## Proc) GetProcAddress(alu.get(), "gl" #F); -#define WGL_SET_PROC(F) interface->f ## F = (GrGL ## F ## Proc) wglGetProcAddress("gl" #F); -#define WGL_SET_PROC_SUFFIX(F, S) interface->f ## F = \ - (GrGL ## F ## Proc) wglGetProcAddress("gl" #F #S); +#define SET_PROC(F) interface->fFunctions.f ## F = (GrGL ## F ## Proc) GetProcAddress(alu.get(), "gl" #F); +#define WGL_SET_PROC(F) interface->fFunctions.f ## F = (GrGL ## F ## Proc) wglGetProcAddress("gl" #F); +#define WGL_SET_PROC_SUFFIX(F, S) interface->fFunctions.f ## F = (GrGL ## F ## Proc) wglGetProcAddress("gl" #F #S); class AutoLibraryUnload { public: |