Move srgb enable flags to GrProcessorSet from pipelinebuilder
BUG=skia:
Change-Id: I533d032a8019980b3870d432ada59bac805d7c36
Reviewed-on: https://skia-review.googlesource.com/7268
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/GrProcessorSet.cpp b/src/gpu/GrProcessorSet.cpp
index 6e7eeb8..595d05c 100644
--- a/src/gpu/GrProcessorSet.cpp
+++ b/src/gpu/GrProcessorSet.cpp
@@ -18,5 +18,14 @@
for (auto& fp : paint.fCoverageFragmentProcessors) {
fFragmentProcessors[i++] = fp.release();
}
- fUsesDistanceVectorField = paint.usesDistanceVectorField();
+ fFlags = 0;
+ if (paint.usesDistanceVectorField()) {
+ fFlags |= kUseDistanceVectorField_Flag;
+ }
+ if (paint.getDisableOutputConversionToSRGB()) {
+ fFlags |= kDisableOutputConversionToSRGB_Flag;
+ }
+ if (paint.getAllowSRGBInputs()) {
+ fFlags |= kAllowSRGBInputs_Flag;
+ }
}