From e0a9962b12adf6c1d17e76fbbb498d9c0260d924 Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Mon, 9 Jul 2018 16:12:27 -0400 Subject: Interpolate patch vertices in destination color space Change-Id: I4e1403eb63370f5e61283ed4a504fb352368adc0 Reviewed-on: https://skia-review.googlesource.com/139862 Reviewed-by: Mike Klein Commit-Queue: Brian Osman --- bench/PatchBench.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bench') diff --git a/bench/PatchBench.cpp b/bench/PatchBench.cpp index d88dd14a2b..375560e15d 100644 --- a/bench/PatchBench.cpp +++ b/bench/PatchBench.cpp @@ -351,8 +351,9 @@ public: { 0, 0 }, { 10, 0 }, { 10, 10 }, { 0, 10 }, }; + auto cs = fLinearInterp ? SkColorSpace::MakeSRGBLinear() : nullptr; for (int i = 0; i < 100*loops; ++i) { - SkPatchUtils::MakeVertices(pts, colors, tex, 20, 20, fLinearInterp); + SkPatchUtils::MakeVertices(pts, colors, tex, 20, 20, cs.get()); } } }; -- cgit v1.2.3