Chromium Code Reviews| Index: src/gpu/gl/GrGLCaps.cpp |
| diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp |
| index 678c62abb82c92ebc62d20e5e21ea6b6d5198e37..cb2582755a5828167de4c079a38259bf8a90917b 100644 |
| --- a/src/gpu/gl/GrGLCaps.cpp |
| +++ b/src/gpu/gl/GrGLCaps.cpp |
| @@ -271,6 +271,15 @@ void GrGLCaps::init(const GrContextOptions& contextOptions, |
| ctxInfo.hasExtension("GL_OES_standard_derivatives"); |
| } |
| + if (ctxInfo.hasExtension("GL_EXT_shader_pixel_local_storage")) { |
| + #define GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_FAST_SIZE_EXT 0x8F63 |
|
bsalomon
2016/01/13 19:15:34
Define in GrGLDefines.h, nix the _EXT, prefix GR_.
|
| + GR_GL_GetIntegerv(gli, GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_FAST_SIZE_EXT, |
| + &glslCaps->fPixelLocalStorageSize); |
| + } |
| + else { |
| + glslCaps->fPixelLocalStorageSize = 0; |
| + } |
| + |
| /************************************************************************** |
| * GrCaps fields |
| **************************************************************************/ |
| @@ -514,7 +523,6 @@ void GrGLCaps::initGLSL(const GrGLContextInfo& ctxInfo) { |
| GrGLSLCaps* glslCaps = static_cast<GrGLSLCaps*>(fShaderCaps.get()); |
| glslCaps->fGLSLGeneration = ctxInfo.glslGeneration(); |
| - |
| if (kGLES_GrGLStandard == standard) { |
| if (ctxInfo.hasExtension("GL_EXT_shader_framebuffer_fetch")) { |
| glslCaps->fFBFetchNeedsCustomOutput = (version >= GR_GL_VER(3, 0)); |