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

Side by Side Diff: src/gpu/gl/unix/GrGLCreateNativeInterface_unix.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 9
10 #include "gl/GrGLInterface.h" 10 #include "gl/GrGLInterface.h"
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 GR_GL_GET_PROC_SUFFIX(GetPathLength, NV); 271 GR_GL_GET_PROC_SUFFIX(GetPathLength, NV);
272 GR_GL_GET_PROC_SUFFIX(PointAlongPath, NV); 272 GR_GL_GET_PROC_SUFFIX(PointAlongPath, NV);
273 } 273 }
274 274
275 if (extensions.has("GL_EXT_debug_marker")) { 275 if (extensions.has("GL_EXT_debug_marker")) {
276 GR_GL_GET_PROC_SUFFIX(InsertEventMarker, EXT); 276 GR_GL_GET_PROC_SUFFIX(InsertEventMarker, EXT);
277 GR_GL_GET_PROC_SUFFIX(PushGroupMarker, EXT); 277 GR_GL_GET_PROC_SUFFIX(PushGroupMarker, EXT);
278 GR_GL_GET_PROC_SUFFIX(PopGroupMarker, EXT); 278 GR_GL_GET_PROC_SUFFIX(PopGroupMarker, EXT);
279 } 279 }
280 280
281 if (glVer >= GR_GL_VER(4,3) || extensions.has("GL_ARB_invalidate_subdata")) {
282 GR_GL_GET_PROC(InvalidateBufferData);
283 GR_GL_GET_PROC(InvalidateBufferSubData);
284 GR_GL_GET_PROC(InvalidateFramebuffer);
285 GR_GL_GET_PROC(InvalidateSubFramebuffer);
286 GR_GL_GET_PROC(InvalidateTexImage);
287 GR_GL_GET_PROC(InvalidateTexSubImage);
288 }
289
281 interface->fStandard = kGL_GrGLStandard; 290 interface->fStandard = kGL_GrGLStandard;
282 interface->fExtensions.swap(&extensions); 291 interface->fExtensions.swap(&extensions);
283 292
284 return interface; 293 return interface;
285 } 294 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698