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

Unified Diff: src/gpu/gl/iOS/GrGLCreateNativeInterface_iOS.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/iOS/GrGLCreateNativeInterface_iOS.cpp
diff --git a/src/gpu/gl/iOS/GrGLCreateNativeInterface_iOS.cpp b/src/gpu/gl/iOS/GrGLCreateNativeInterface_iOS.cpp
index decc23498c1d8680793392813a5e8907de9b21e5..553831d6eff6b3369a56942c6ed7fffeb9147113 100644
--- a/src/gpu/gl/iOS/GrGLCreateNativeInterface_iOS.cpp
+++ b/src/gpu/gl/iOS/GrGLCreateNativeInterface_iOS.cpp
@@ -150,6 +150,18 @@ const GrGLInterface* GrGLCreateNativeInterface() {
functions->fPopGroupMarker = glPopGroupMarkerEXT;
#endif
+#if GL_ES_VERSION_3_0 || GL_ARB_invalidate_subdata
+ functions->fInvalidateFramebuffer = glInvalidateFramebuffer;
+ functions->fInvalidateSubFramebuffer = glInvalidateSubFramebuffer;
+#endif
+
+#if GL_ARB_invalidate_subdata
+ functions->fInvalidateBufferData = glInvalidateBufferData;
+ functions->fInvalidateBufferSubData = glInvalidateBufferSubData;
+ functions->fInvalidateTexImage = glInvalidateTexImage;
+ functions->fInvalidateTexSubImage = glInvalidateTexSubImage;
+#endif
+
interface->fStandard = kGLES_GrGLStandard;
interface->fExtensions.init(kGLES_GrGLStandard, glGetString, NULL, glGetIntegerv);

Powered by Google App Engine
This is Rietveld 408576698