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:
parent
b120d41b47
commit
03f9e2a3b7
@ -129,8 +129,7 @@ private:
|
||||
public:
|
||||
TestGLSLFP() {}
|
||||
void emitCode(EmitArgs& args) override {
|
||||
GrGLSLFPFragmentBuilder* fragBuilder = args.fFragBuilder;
|
||||
fragBuilder->codeAppendf("%s = %s;", args.fOutputColor, args.fInputColor);
|
||||
args.fFragBuilder->codeAppendf("%s = half4(1);", args.fOutputColor);
|
||||
}
|
||||
|
||||
private:
|
||||
|
@ -42,13 +42,7 @@ static const uint32_t kMaxKeySize = 1024;
|
||||
class GLBigKeyProcessor : public GrGLSLFragmentProcessor {
|
||||
public:
|
||||
void emitCode(EmitArgs& args) override {
|
||||
// pass through
|
||||
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);
|
||||
}
|
||||
args.fFragBuilder->codeAppendf("%s = half4(1);\n", args.fOutputColor);
|
||||
}
|
||||
|
||||
static void GenKey(const GrProcessor&, const GrShaderCaps&, GrProcessorKeyBuilder* b) {
|
||||
|
Loading…
Reference in New Issue
Block a user