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

Side by Side Diff: src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp

Issue 20436002: get genmipmap function in the struct (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix rebase conflicts Created 7 years, 4 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
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"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 interface->fDrawBuffer = glDrawBuffer; 82 interface->fDrawBuffer = glDrawBuffer;
83 GR_GL_GET_PROC(DrawBuffers); 83 GR_GL_GET_PROC(DrawBuffers);
84 interface->fDrawElements = glDrawElements; 84 interface->fDrawElements = glDrawElements;
85 interface->fEnable = glEnable; 85 interface->fEnable = glEnable;
86 GR_GL_GET_PROC(EnableVertexAttribArray); 86 GR_GL_GET_PROC(EnableVertexAttribArray);
87 GR_GL_GET_PROC(EndQuery); 87 GR_GL_GET_PROC(EndQuery);
88 interface->fFinish = glFinish; 88 interface->fFinish = glFinish;
89 interface->fFlush = glFlush; 89 interface->fFlush = glFlush;
90 interface->fFrontFace = glFrontFace; 90 interface->fFrontFace = glFrontFace;
91 GR_GL_GET_PROC(GenBuffers); 91 GR_GL_GET_PROC(GenBuffers);
92 GR_GL_GET_PROC(GenerateMipmap);
92 GR_GL_GET_PROC(GetBufferParameteriv); 93 GR_GL_GET_PROC(GetBufferParameteriv);
93 interface->fGetError = glGetError; 94 interface->fGetError = glGetError;
94 interface->fGetIntegerv = glGetIntegerv; 95 interface->fGetIntegerv = glGetIntegerv;
95 GR_GL_GET_PROC(GetQueryObjectiv); 96 GR_GL_GET_PROC(GetQueryObjectiv);
96 GR_GL_GET_PROC(GetQueryObjectuiv); 97 GR_GL_GET_PROC(GetQueryObjectuiv);
97 if (glVer >= GR_GL_VER(3,3) || extensions.has("GL_ARB_timer_query")) { 98 if (glVer >= GR_GL_VER(3,3) || extensions.has("GL_ARB_timer_query")) {
98 GR_GL_GET_PROC(GetQueryObjecti64v); 99 GR_GL_GET_PROC(GetQueryObjecti64v);
99 GR_GL_GET_PROC(GetQueryObjectui64v); 100 GR_GL_GET_PROC(GetQueryObjectui64v);
100 GR_GL_GET_PROC(QueryCounter); 101 GR_GL_GET_PROC(QueryCounter);
101 } else if (extensions.has("GL_EXT_timer_query")) { 102 } else if (extensions.has("GL_EXT_timer_query")) {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 delete interface; 214 delete interface;
214 return NULL; 215 return NULL;
215 } 216 }
216 interface->fBindingsExported = kDesktop_GrGLBinding; 217 interface->fBindingsExported = kDesktop_GrGLBinding;
217 218
218 return interface; 219 return interface;
219 } else { 220 } else {
220 return NULL; 221 return NULL;
221 } 222 }
222 } 223 }
OLDNEW
« no previous file with comments | « src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp ('k') | src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698