aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/mac
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-01 13:07:29 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-01 13:07:29 +0000
commita34bb60c4e319f2289106d519544fe09d43eabd5 (patch)
tree63a3683c5d7cec2197cc4fa3f6301ab24f806001 /src/gpu/gl/mac
parent58d69d846071ff9a84e879041f2f092006bfcd14 (diff)
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
Diffstat (limited to 'src/gpu/gl/mac')
-rw-r--r--src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp b/src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp
index 3a6e07a64b..04898d1110 100644
--- a/src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp
+++ b/src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp
@@ -242,6 +242,15 @@ const GrGLInterface* GrGLCreateNativeInterface() {
GET_PROC_SUFFIX(PopGroupMarker, EXT);
}
+ if (ver >= GR_GL_VER(4,3) || extensions.has("GL_ARB_invalidate_subdata")) {
+ GET_PROC(InvalidateBufferData);
+ GET_PROC(InvalidateBufferSubData);
+ GET_PROC(InvalidateFramebuffer);
+ GET_PROC(InvalidateSubFramebuffer);
+ GET_PROC(InvalidateTexImage);
+ GET_PROC(InvalidateTexSubImage);
+ }
+
interface->fExtensions.swap(&extensions);
return interface;
}