diff options
author | Mike Klein <mtklein@chromium.org> | 2017-12-04 14:05:56 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-04 19:29:49 +0000 |
commit | 364c4c87c1321625ae961d8f2cf315096ccfd462 (patch) | |
tree | d044c73437773df627cecaff29e53f287efa822c /src/gpu/GrBlurUtils.cpp | |
parent | 8d1e67ed6b75909ac20211ae3aec130587920cec (diff) |
Only look at gamut_transform if we wrote to it.
If we're already in sRGB gamut, we will not write to the 3x4 matrix,
but we still analyze it to see if we need clamping. So we might
(harmlessly) re-clamp some already clamped colors unnecessarily.
Found by this Chromium MSAN bot.
Bug: chromium:789767
Change-Id: I5d76e59b541a03ee8efbd4352262b4f650e1ec01
Reviewed-on: https://skia-review.googlesource.com/79762
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/gpu/GrBlurUtils.cpp')
0 files changed, 0 insertions, 0 deletions