Index: src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp |
diff --git a/src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp b/src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp |
index de0bb03aa38e7b6fb148f2bd91ec00fa0ce35cce..c1a7dee56a3c54ce8c0a8dff92434652ca32b5a9 100644 |
--- a/src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp |
+++ b/src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp |
@@ -39,7 +39,7 @@ void GrGLVertexBuilder::transformToNormalizedDeviceSpace(const GrShaderVar& posV |
SkASSERT(!fRtAdjustName); |
GrSLPrecision precision = kDefault_GrSLPrecision; |
- if (fProgramBuilder->ctxInfo().vendor() == kARM_GrGLVendor) { |
+ if (fProgramBuilder->glslCaps()->forceHighPrecisionNDSTransform()) { |
precision = kHigh_GrSLPrecision; |
} |
@@ -89,7 +89,7 @@ void GrGLVertexBuilder::bindVertexAttributes(GrGLuint programID) { |
bool |
GrGLVertexBuilder::compileAndAttachShaders(GrGLuint programId, SkTDArray<GrGLuint>* shaderIds) { |
- this->versionDecl() = GrGLGetGLSLVersionDecl(fProgramBuilder->ctxInfo()); |
+ this->versionDecl() = fProgramBuilder->glslCaps()->versionDeclString(); |
this->compileAndAppendLayoutQualifiers(); |
fProgramBuilder->appendUniformDecls(GrGLProgramBuilder::kVertex_Visibility, &this->uniforms()); |
this->appendDecls(fInputs, &this->inputs()); |