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

Side by Side Diff: src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp

Issue 217503003: Add GL_ARB_invalidate_subdata functions to GrGLInterface. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix compilation issues Created 6 years, 8 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 #include "gl/GrGLExtensions.h" 9 #include "gl/GrGLExtensions.h"
10 #include "gl/GrGLInterface.h" 10 #include "gl/GrGLInterface.h"
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 return NULL; 217 return NULL;
218 } 218 }
219 GR_GL_GET_PROC(BindFragDataLocationIndexed); 219 GR_GL_GET_PROC(BindFragDataLocationIndexed);
220 220
221 if (extensions.has("GL_EXT_debug_marker")) { 221 if (extensions.has("GL_EXT_debug_marker")) {
222 GR_GL_GET_PROC_SUFFIX(InsertEventMarker, EXT); 222 GR_GL_GET_PROC_SUFFIX(InsertEventMarker, EXT);
223 GR_GL_GET_PROC_SUFFIX(PopGroupMarker, EXT); 223 GR_GL_GET_PROC_SUFFIX(PopGroupMarker, EXT);
224 GR_GL_GET_PROC_SUFFIX(PushGroupMarker, EXT); 224 GR_GL_GET_PROC_SUFFIX(PushGroupMarker, EXT);
225 } 225 }
226 226
227 if (glVer >= GR_GL_VER(4,3) || extensions.has("GL_ARB_invalidate_subdata")) {
228 GR_GL_GET_PROC(InvalidateBufferData);
229 GR_GL_GET_PROC(InvalidateBufferSubData);
230 GR_GL_GET_PROC(InvalidateFramebuffer);
231 GR_GL_GET_PROC(InvalidateSubFramebuffer);
232 GR_GL_GET_PROC(InvalidateTexImage);
233 GR_GL_GET_PROC(InvalidateTexSubImage);
234 }
235
227 interface->fStandard = kGL_GrGLStandard; 236 interface->fStandard = kGL_GrGLStandard;
228 interface->fExtensions.swap(&extensions); 237 interface->fExtensions.swap(&extensions);
229 238
230 return interface; 239 return interface;
231 } 240 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698