aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-07-25 05:12:53 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-25 05:12:53 -0700
commit1638c0deea80e4a580fe43babeb04279dd163e98 (patch)
tree3397b189513a586c7187434a6edc113a78037059 /gm
parentb560b5c8c03fe1b9b1b8a90c546481b8db7f043e (diff)
Add destination color space to AsFPArgs. Eliminates last XFORMTODO.
This is going to be needed in many more places as I finish connecting the dots. Even better - I'd like to switch to a world where SkColorSpace != nullptr is the only signal we use for gamma-correct rendering, so I can eliminate SkSourceGammaTreatment and SkSurfaceProps::isGammaCorrect. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2180503002 Review-Url: https://codereview.chromium.org/2180503002
Diffstat (limited to 'gm')
-rw-r--r--gm/constcolorprocessor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gm/constcolorprocessor.cpp b/gm/constcolorprocessor.cpp
index 32d03a0c02..3a5d73acf3 100644
--- a/gm/constcolorprocessor.cpp
+++ b/gm/constcolorprocessor.cpp
@@ -100,7 +100,8 @@ protected:
skPaint.setColor(kPaintColors[paintType]);
}
// SRGBTODO: No sRGB inputs allowed here?
- SkAssertResult(SkPaintToGrPaint(context, skPaint, viewMatrix, false, &grPaint));
+ SkAssertResult(SkPaintToGrPaint(context, skPaint, viewMatrix, false, nullptr,
+ &grPaint));
GrConstColorProcessor::InputMode mode = (GrConstColorProcessor::InputMode) m;
GrColor color = kColors[procColor];