aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gpu
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 /tools/gpu
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 'tools/gpu')
-rw-r--r--tools/gpu/GrTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gpu/GrTest.cpp b/tools/gpu/GrTest.cpp
index 21761c214f..f7c1f0c504 100644
--- a/tools/gpu/GrTest.cpp
+++ b/tools/gpu/GrTest.cpp
@@ -140,7 +140,8 @@ void SkGpuDevice::drawTexture(GrTexture* tex, const SkRect& dst, const SkPaint&
SkMatrix mat;
mat.reset();
if (!SkPaintToGrPaint(this->context(), paint, mat,
- this->surfaceProps().isGammaCorrect(), &grPaint)) {
+ this->surfaceProps().isGammaCorrect(), fDrawContext->getColorSpace(),
+ &grPaint)) {
return;
}
SkMatrix textureMat;