diff options
Diffstat (limited to 'bench')
-rw-r--r-- | bench/PatchBench.cpp | 3 |
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()); } } }; |