Index: src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp |
diff --git a/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp b/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp |
index ff3989bf634bbd2c2d9b7bff924e6cdf18bd0c25..76558d8875fc9be54a772790a3c7bd87ff56c50c 100644 |
--- a/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp |
+++ b/src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp |
@@ -346,10 +346,12 @@ |
} |
} |
-void GrGLFragmentShaderBuilder::addVarying(GrGLVarying* v, GrGLShaderVar::Precision fsPrec) { |
- v->fFsIn = v->fVsOut; |
- if (v->fGsOut) { |
- v->fFsIn = v->fGsOut; |
- } |
- fInputs.push_back().set(v->fType, GrGLShaderVar::kVaryingIn_TypeModifier, v->fFsIn, fsPrec); |
-} |
+void GrGLFragmentShaderBuilder::addVarying(GrSLType type, |
+ const char* name, |
+ const char** fsInName, |
+ GrGLShaderVar::Precision fsPrecision) { |
+ fInputs.push_back().set(type, GrGLShaderVar::kVaryingIn_TypeModifier, name, fsPrecision); |
+ if (fsInName) { |
+ *fsInName = name; |
+ } |
+} |