From a34bb60c4e319f2289106d519544fe09d43eabd5 Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Tue, 1 Apr 2014 13:07:29 +0000 Subject: Add GL_ARB_invalidate_subdata functions to GrGLInterface. BUG=skia:1541 R=egdaniel@google.com Review URL: https://codereview.chromium.org/217503003 git-svn-id: http://skia.googlecode.com/svn/trunk@14004 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/gl/iOS/GrGLCreateNativeInterface_iOS.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/gpu/gl/iOS') diff --git a/src/gpu/gl/iOS/GrGLCreateNativeInterface_iOS.cpp b/src/gpu/gl/iOS/GrGLCreateNativeInterface_iOS.cpp index decc23498c..553831d6ef 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); -- cgit v1.2.3