| Index: src/gpu/gl/GrGLProgramDesc.cpp
|
| diff --git a/src/gpu/gl/GrGLProgramDesc.cpp b/src/gpu/gl/GrGLProgramDesc.cpp
|
| index 8b731fbc2c71244e80a6f6dc87262280e31e214a..0f5727e27f02372e5ecb0005f8bb82d5cac14c44 100644
|
| --- a/src/gpu/gl/GrGLProgramDesc.cpp
|
| +++ b/src/gpu/gl/GrGLProgramDesc.cpp
|
| @@ -122,11 +122,13 @@ void GrGLProgramDesc::Build(const GrDrawState& drawState,
|
| header->fExperimentalGS = false;
|
| #endif
|
| #endif
|
| + bool defaultToUniformInputs = GR_GL_NO_CONSTANT_ATTRIBUTES || gpu->glCaps().pathRenderingSupport();
|
| +
|
| if (colorIsTransBlack) {
|
| header->fColorInput = kTransBlack_ColorInput;
|
| } else if (colorIsSolidWhite) {
|
| header->fColorInput = kSolidWhite_ColorInput;
|
| - } else if (GR_GL_NO_CONSTANT_ATTRIBUTES && !requiresColorAttrib) {
|
| + } else if (defaultToUniformInputs && !requiresColorAttrib) {
|
| header->fColorInput = kUniform_ColorInput;
|
| } else {
|
| header->fColorInput = kAttribute_ColorInput;
|
| @@ -139,7 +141,7 @@ void GrGLProgramDesc::Build(const GrDrawState& drawState,
|
| header->fCoverageInput = kTransBlack_ColorInput;
|
| } else if (covIsSolidWhite) {
|
| header->fCoverageInput = kSolidWhite_ColorInput;
|
| - } else if (GR_GL_NO_CONSTANT_ATTRIBUTES && !requiresCoverageAttrib) {
|
| + } else if (defaultToUniformInputs && !requiresCoverageAttrib) {
|
| header->fCoverageInput = kUniform_ColorInput;
|
| } else {
|
| header->fCoverageInput = kAttribute_ColorInput;
|
|
|