| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 | 8 |
| 9 #include "GrGLCaps.h" | 9 #include "GrGLCaps.h" |
| 10 | 10 |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 if (kGL_GrGLStandard == standard) { | 185 if (kGL_GrGLStandard == standard) { |
| 186 if (version >= GR_GL_VER(3, 0)) { | 186 if (version >= GR_GL_VER(3, 0)) { |
| 187 fBindFragDataLocationSupport = true; | 187 fBindFragDataLocationSupport = true; |
| 188 } | 188 } |
| 189 } else { | 189 } else { |
| 190 if (version >= GR_GL_VER(3, 0) && ctxInfo.hasExtension("GL_EXT_blend_fun
c_extended")) { | 190 if (version >= GR_GL_VER(3, 0) && ctxInfo.hasExtension("GL_EXT_blend_fun
c_extended")) { |
| 191 fBindFragDataLocationSupport = true; | 191 fBindFragDataLocationSupport = true; |
| 192 } | 192 } |
| 193 } | 193 } |
| 194 | 194 |
| 195 #if 0 // Disabled due to https://bug.skia.org/4454 | |
| 196 fBindUniformLocationSupport = ctxInfo.hasExtension("GL_CHROMIUM_bind_uniform
_location"); | 195 fBindUniformLocationSupport = ctxInfo.hasExtension("GL_CHROMIUM_bind_uniform
_location"); |
| 197 #else | |
| 198 fBindUniformLocationSupport = false; | |
| 199 #endif | |
| 200 | 196 |
| 201 if (kGL_GrGLStandard == standard) { | 197 if (kGL_GrGLStandard == standard) { |
| 202 if (version >= GR_GL_VER(3, 1) || ctxInfo.hasExtension("GL_ARB_texture_r
ectangle")) { | 198 if (version >= GR_GL_VER(3, 1) || ctxInfo.hasExtension("GL_ARB_texture_r
ectangle")) { |
| 203 // We also require textureSize() support for rectangle 2D samplers w
hich was added in | 199 // We also require textureSize() support for rectangle 2D samplers w
hich was added in |
| 204 // GLSL 1.40. | 200 // GLSL 1.40. |
| 205 if (ctxInfo.glslGeneration() >= k140_GrGLSLGeneration) { | 201 if (ctxInfo.glslGeneration() >= k140_GrGLSLGeneration) { |
| 206 fRectangleTextureSupport = true; | 202 fRectangleTextureSupport = true; |
| 207 } | 203 } |
| 208 } | 204 } |
| 209 } else { | 205 } else { |
| (...skipping 1723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1933 for (int j = 0; j < kExternalFormatUsageCnt; ++j) { | 1929 for (int j = 0; j < kExternalFormatUsageCnt; ++j) { |
| 1934 SkASSERT(defaultEntry.fFormats.fExternalFormat[j] != | 1930 SkASSERT(defaultEntry.fFormats.fExternalFormat[j] != |
| 1935 fConfigTable[i].fFormats.fExternalFormat[j]); | 1931 fConfigTable[i].fFormats.fExternalFormat[j]); |
| 1936 } | 1932 } |
| 1937 SkASSERT(defaultEntry.fFormats.fExternalType != fConfigTable[i].fFormats
.fExternalType); | 1933 SkASSERT(defaultEntry.fFormats.fExternalType != fConfigTable[i].fFormats
.fExternalType); |
| 1938 } | 1934 } |
| 1939 #endif | 1935 #endif |
| 1940 } | 1936 } |
| 1941 | 1937 |
| 1942 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {} | 1938 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {} |
| OLD | NEW |