| 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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 // Adreno GPUs have a tendency to drop tiles when there is a divide-by-zero
in a shader | 557 // Adreno GPUs have a tendency to drop tiles when there is a divide-by-zero
in a shader |
| 558 glslCaps->fDropsTileOnZeroDivide = kQualcomm_GrGLVendor == ctxInfo.vendor(); | 558 glslCaps->fDropsTileOnZeroDivide = kQualcomm_GrGLVendor == ctxInfo.vendor(); |
| 559 | 559 |
| 560 // On the NexusS and GalaxyNexus, the use of 'any' causes the compilation er
ror "Calls to any | 560 // On the NexusS and GalaxyNexus, the use of 'any' causes the compilation er
ror "Calls to any |
| 561 // function that may require a gradient calculation inside a conditional blo
ck may return | 561 // function that may require a gradient calculation inside a conditional blo
ck may return |
| 562 // undefined results". This appears to be an issue with the 'any' call since
even the simple | 562 // undefined results". This appears to be an issue with the 'any' call since
even the simple |
| 563 // "result=black; if (any()) result=white;" code fails to compile. This issu
e comes into play | 563 // "result=black; if (any()) result=white;" code fails to compile. This issu
e comes into play |
| 564 // from our GrTextureDomain processor. | 564 // from our GrTextureDomain processor. |
| 565 glslCaps->fCanUseAnyFunctionInShader = kImagination_GrGLVendor != ctxInfo.ve
ndor(); | 565 glslCaps->fCanUseAnyFunctionInShader = kImagination_GrGLVendor != ctxInfo.ve
ndor(); |
| 566 | 566 |
| 567 glslCaps->fForceHighPrecisionNDSTransform = kARM_GrGLVendor == ctxInfo.vendo
r() || | |
| 568 kPowerVR54x_GrGLRenderer == ctxI
nfo.renderer(); | |
| 569 | |
| 570 glslCaps->fVersionDeclString = get_glsl_version_decl_string(standard, glslCa
ps->fGLSLGeneration, | 567 glslCaps->fVersionDeclString = get_glsl_version_decl_string(standard, glslCa
ps->fGLSLGeneration, |
| 571 fIsCoreProfile); | 568 fIsCoreProfile); |
| 572 | 569 |
| 573 if (kGLES_GrGLStandard == standard && k110_GrGLSLGeneration == glslCaps->fGL
SLGeneration) { | 570 if (kGLES_GrGLStandard == standard && k110_GrGLSLGeneration == glslCaps->fGL
SLGeneration) { |
| 574 glslCaps->fShaderDerivativeExtensionString = "GL_OES_standard_derivative
s"; | 571 glslCaps->fShaderDerivativeExtensionString = "GL_OES_standard_derivative
s"; |
| 575 } | 572 } |
| 576 | 573 |
| 577 // Frag Coords Convention support is not part of ES | 574 // Frag Coords Convention support is not part of ES |
| 578 // Known issue on at least some Intel platforms: | 575 // Known issue on at least some Intel platforms: |
| 579 // http://code.google.com/p/skia/issues/detail?id=946 | 576 // http://code.google.com/p/skia/issues/detail?id=946 |
| (...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1315 glslCaps->fConfigSwizzle[kR11_EAC_GrPixelConfig] = "rrrr"; | 1312 glslCaps->fConfigSwizzle[kR11_EAC_GrPixelConfig] = "rrrr"; |
| 1316 glslCaps->fConfigSwizzle[kASTC_12x12_GrPixelConfig] = "rgba"; | 1313 glslCaps->fConfigSwizzle[kASTC_12x12_GrPixelConfig] = "rgba"; |
| 1317 glslCaps->fConfigSwizzle[kRGBA_float_GrPixelConfig] = "rgba"; | 1314 glslCaps->fConfigSwizzle[kRGBA_float_GrPixelConfig] = "rgba"; |
| 1318 glslCaps->fConfigSwizzle[kRGBA_half_GrPixelConfig] = "rgba"; | 1315 glslCaps->fConfigSwizzle[kRGBA_half_GrPixelConfig] = "rgba"; |
| 1319 | 1316 |
| 1320 } | 1317 } |
| 1321 | 1318 |
| 1322 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {} | 1319 void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {} |
| 1323 | 1320 |
| 1324 | 1321 |
| OLD | NEW |