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

Unified 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, 9 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 side-by-side diff with in-line comments
Download patch
Index: src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp
diff --git a/src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp b/src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp
index e46309b4487ab003d5cb09ff2c2ebc523750459c..93807637fbbf165ca5fea98e8ce7a9c6f38e5f9f 100644
--- a/src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp
+++ b/src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp
@@ -278,6 +278,15 @@ const GrGLInterface* GrGLCreateNativeInterface() {
GR_GL_GET_PROC_SUFFIX(PopGroupMarker, EXT);
}
+ if (glVer >= GR_GL_VER(4,3) || extensions.has("GL_ARB_invalidate_subdata")) {
+ GR_GL_GET_PROC(InvalidateBufferData);
+ GR_GL_GET_PROC(InvalidateBufferSubData);
+ GR_GL_GET_PROC(InvalidateFramebuffer);
+ GR_GL_GET_PROC(InvalidateSubFramebuffer);
+ GR_GL_GET_PROC(InvalidateTexImage);
+ GR_GL_GET_PROC(InvalidateTexSubImage);
+ }
+
interface->fStandard = kGL_GrGLStandard;
interface->fExtensions.swap(&extensions);

Powered by Google App Engine
This is Rietveld 408576698