Add SkPMColor4f support to SkSL
Convert GrConstColorProcessor to store SkPMColor4f
Bug: skia:
Change-Id: I6c505856653a02e576ae11fca59dc307545437f7
Reviewed-on: https://skia-review.googlesource.com/c/159152
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/src/gpu/GrProcessorAnalysis.h b/src/gpu/GrProcessorAnalysis.h
index 85943e1..b7475db 100644
--- a/src/gpu/GrProcessorAnalysis.h
+++ b/src/gpu/GrProcessorAnalysis.h
@@ -129,9 +129,9 @@
return fProcessorsToEliminate;
}
- int initialProcessorsToEliminate(GrColor4f* newPipelineInputColor) const {
+ int initialProcessorsToEliminate(SkPMColor4f* newPipelineInputColor) const {
if (fProcessorsToEliminate > 0) {
- *newPipelineInputColor = GrColor4f::FromRGBA4f(fLastKnownOutputColor);
+ *newPipelineInputColor = fLastKnownOutputColor;
}
return fProcessorsToEliminate;
}