| 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 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 // undefined results". This appears to be an issue with the 'any' call since
even the simple | 584 // undefined results". This appears to be an issue with the 'any' call since
even the simple |
| 585 // "result=black; if (any()) result=white;" code fails to compile. This issu
e comes into play | 585 // "result=black; if (any()) result=white;" code fails to compile. This issu
e comes into play |
| 586 // from our GrTextureDomain processor. | 586 // from our GrTextureDomain processor. |
| 587 glslCaps->fCanUseAnyFunctionInShader = kImagination_GrGLVendor != ctxInfo.ve
ndor(); | 587 glslCaps->fCanUseAnyFunctionInShader = kImagination_GrGLVendor != ctxInfo.ve
ndor(); |
| 588 | 588 |
| 589 glslCaps->fForceHighPrecisionNDSTransform = kARM_GrGLVendor == ctxInfo.vendo
r() || | 589 glslCaps->fForceHighPrecisionNDSTransform = kARM_GrGLVendor == ctxInfo.vendo
r() || |
| 590 kPowerVR54x_GrGLRenderer == ctxI
nfo.renderer(); | 590 kPowerVR54x_GrGLRenderer == ctxI
nfo.renderer(); |
| 591 | 591 |
| 592 glslCaps->fVersionDeclString = get_glsl_version_decl_string(standard, glslCa
ps->fGLSLGeneration, | 592 glslCaps->fVersionDeclString = get_glsl_version_decl_string(standard, glslCa
ps->fGLSLGeneration, |
| 593 fIsCoreProfile); | 593 fIsCoreProfile); |
| 594 |
| 595 if (kGLES_GrGLStandard == standard && k110_GrGLSLGeneration == glslCaps->fGL
SLGeneration) { |
| 596 glslCaps->fShaderDerivativeExtensionString = "GL_OES_standard_derivative
s"; |
| 597 } |
| 594 } | 598 } |
| 595 | 599 |
| 596 bool GrGLCaps::hasPathRenderingSupport(const GrGLContextInfo& ctxInfo, const GrG
LInterface* gli) { | 600 bool GrGLCaps::hasPathRenderingSupport(const GrGLContextInfo& ctxInfo, const GrG
LInterface* gli) { |
| 597 bool hasChromiumPathRendering = ctxInfo.hasExtension("GL_CHROMIUM_path_rende
ring"); | 601 bool hasChromiumPathRendering = ctxInfo.hasExtension("GL_CHROMIUM_path_rende
ring"); |
| 598 | 602 |
| 599 if (!(ctxInfo.hasExtension("GL_NV_path_rendering") || hasChromiumPathRenderi
ng)) { | 603 if (!(ctxInfo.hasExtension("GL_NV_path_rendering") || hasChromiumPathRenderi
ng)) { |
| 600 return false; | 604 return false; |
| 601 } | 605 } |
| 602 | 606 |
| 603 if (kGL_GrGLStandard == ctxInfo.standard()) { | 607 if (kGL_GrGLStandard == ctxInfo.standard()) { |
| (...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1272 for (int p = 0; p < kGrSLPrecisionCount; ++p) { | 1276 for (int p = 0; p < kGrSLPrecisionCount; ++p) { |
| 1273 glslCaps->fFloatPrecisions[kGeometry_GrShaderType][p] = | 1277 glslCaps->fFloatPrecisions[kGeometry_GrShaderType][p] = |
| 1274 glslCaps->fFloatPrecisions[kVerte
x_GrShaderType][p]; | 1278 glslCaps->fFloatPrecisions[kVerte
x_GrShaderType][p]; |
| 1275 } | 1279 } |
| 1276 } | 1280 } |
| 1277 } | 1281 } |
| 1278 | 1282 |
| 1279 | 1283 |
| 1280 | 1284 |
| 1281 | 1285 |
| OLD | NEW |