Index: src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp |
diff --git a/src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp b/src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp |
index 5a3e09d15142c394c84ff02dfa9b63391b2a6bc3..122db10ec99ba0d4a8aa4cd6cf0cd4199d93c55a 100644 |
--- a/src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp |
+++ b/src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp |
@@ -10,6 +10,7 @@ |
#include "glsl/GrGLSL.h" |
#include "glsl/GrGLSLCaps.h" |
#include "glsl/GrGLSLProgramBuilder.h" |
+#include "glsl/GrGLSLVarying.h" |
const char* GrGLSLFragmentShaderBuilder::kDstTextureColorName = "_dstColor"; |
@@ -237,19 +238,12 @@ const char* GrGLSLFragmentShaderBuilder::getSecondaryColorOutputName() const { |
} |
void GrGLSLFragmentShaderBuilder::onFinalize() { |
+ fProgramBuilder->varyingHandler()->getFragDecls(&this->inputs(), &this->outputs()); |
GrGLSLAppendDefaultFloatPrecisionDeclaration(kDefault_GrSLPrecision, |
*fProgramBuilder->glslCaps(), |
&this->precisionQualifier()); |
} |
-void GrGLSLFragmentShaderBuilder::addVarying(GrGLSLVarying* v, GrSLPrecision fsPrec) { |
- v->fFsIn = v->fVsOut; |
- if (v->fGsOut) { |
- v->fFsIn = v->fGsOut; |
- } |
- fInputs.push_back().set(v->fType, GrGLSLShaderVar::kVaryingIn_TypeModifier, v->fFsIn, fsPrec); |
-} |
- |
void GrGLSLFragmentBuilder::onBeforeChildProcEmitCode() { |
SkASSERT(fSubstageIndices.count() >= 1); |
fSubstageIndices.push_back(0); |