Remove fInputColor usage in unit-test FPs

Change-Id: If467390cd3e1d33f0e72db4b75f9889d4562af5a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/341722
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
This commit is contained in:
Brian Osman 2020-12-08 11:17:26 -05:00 committed by Skia Commit-Bot
parent b120d41b47
commit 03f9e2a3b7
2 changed files with 2 additions and 9 deletions

View File

@ -129,8 +129,7 @@ private:
public: public:
TestGLSLFP() {} TestGLSLFP() {}
void emitCode(EmitArgs& args) override { void emitCode(EmitArgs& args) override {
GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder; args.fFragBuilder->codeAppendf("%s = half4(1);", args.fOutputColor);
fragBuilder->codeAppendf("%s = %s;", args.fOutputColor, args.fInputColor);
} }
private: private:

View File

@ -42,13 +42,7 @@ static const uint32_t kMaxKeySize = 1024;
class GLBigKeyProcessor : public GrGLSLFragmentProcessor { class GLBigKeyProcessor : public GrGLSLFragmentProcessor {
public: public:
void emitCode(EmitArgs& args) override { void emitCode(EmitArgs& args) override {
// pass through args.fFragBuilder->codeAppendf("%s = half4(1);\n", args.fOutputColor);
GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder;
if (args.fInputColor) {
fragBuilder->codeAppendf("%s = %s;\n", args.fOutputColor, args.fInputColor);
} else {
fragBuilder->codeAppendf("%s = vec4(1.0);\n", args.fOutputColor);
}
} }
static void GenKey(const GrProcessor&, const GrShaderCaps&, GrProcessorKeyBuilder* b) { static void GenKey(const GrProcessor&, const GrShaderCaps&, GrProcessorKeyBuilder* b) {