diff options
author | 2016-08-09 12:42:47 -0700 | |
---|---|---|
committer | 2016-08-09 12:42:47 -0700 | |
commit | 9bc1187249f27ffed448b49ad75fd226d8181241 (patch) | |
tree | 8d7c76ace097f356523e6f57936994cdbe90920b /src/gpu/gl/GrGLInterface.cpp | |
parent | b47cd4b3d6daad037651daa20fae6770285966d6 (diff) |
Include EXT_window_rectangles API
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2221393004
Review-Url: https://codereview.chromium.org/2221393004
Diffstat (limited to 'src/gpu/gl/GrGLInterface.cpp')
-rw-r--r-- | src/gpu/gl/GrGLInterface.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLInterface.cpp b/src/gpu/gl/GrGLInterface.cpp index d11a86b15a..ada6d8bc29 100644 --- a/src/gpu/gl/GrGLInterface.cpp +++ b/src/gpu/gl/GrGLInterface.cpp @@ -769,6 +769,12 @@ bool GrGLInterface::validate() const { } } + if (fExtensions.has("GL_EXT_window_rectangles")) { + if (nullptr == fFunctions.fWindowRectangles) { + RETURN_FALSE_INTERFACE + } + } + if ((kGL_GrGLStandard == fStandard && glVer >= GR_GL_VER(4,0)) || fExtensions.has("GL_ARB_sample_shading")) { if (nullptr == fFunctions.fMinSampleShading) { |