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

Side by Side Diff: src/gpu/gl/mac/GrGLCreateNativeInterface_mac.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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 // ARB extension doesn't use the ARB suffix on the function name 235 // ARB extension doesn't use the ARB suffix on the function name
236 GET_PROC(BindFragDataLocationIndexed); 236 GET_PROC(BindFragDataLocationIndexed);
237 } 237 }
238 238
239 if (extensions.has("GL_EXT_debug_marker")) { 239 if (extensions.has("GL_EXT_debug_marker")) {
240 GET_PROC_SUFFIX(InsertEventMarker, EXT); 240 GET_PROC_SUFFIX(InsertEventMarker, EXT);
241 GET_PROC_SUFFIX(PushGroupMarker, EXT); 241 GET_PROC_SUFFIX(PushGroupMarker, EXT);
242 GET_PROC_SUFFIX(PopGroupMarker, EXT); 242 GET_PROC_SUFFIX(PopGroupMarker, EXT);
243 } 243 }
244 244
245 if (ver >= GR_GL_VER(4,3) || extensions.has("GL_ARB_invalidate_subdata")) {
246 GET_PROC(InvalidateBufferData);
247 GET_PROC(InvalidateBufferSubData);
248 GET_PROC(InvalidateFramebuffer);
249 GET_PROC(InvalidateSubFramebuffer);
250 GET_PROC(InvalidateTexImage);
251 GET_PROC(InvalidateTexSubImage);
252 }
253
245 interface->fExtensions.swap(&extensions); 254 interface->fExtensions.swap(&extensions);
246 return interface; 255 return interface;
247 } 256 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698