aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2018-07-09 16:12:27 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-09 23:35:59 +0000
commite0a9962b12adf6c1d17e76fbbb498d9c0260d924 (patch)
tree91f194ab6515014d75d6a345963eaa5ea357f6d9 /bench
parent4ee7067f803fb79dba04934e67b29e7cf46f1a63 (diff)
Interpolate patch vertices in destination color space
Change-Id: I4e1403eb63370f5e61283ed4a504fb352368adc0 Reviewed-on: https://skia-review.googlesource.com/139862 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'bench')
-rw-r--r--bench/PatchBench.cpp3
1 files changed, 2 insertions, 1 deletions
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());
}
}
};