commit | dcfb2338586c3f3288b99b79acad5b6e157efa42 | [log] [tgz] |
---|---|---|
author | Adlai Holler <adlai@google.com> | Wed May 13 15:02:28 2020 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Wed May 13 19:51:13 2020 +0000 |
tree | 8868853ce8fade92fb4d0f7dc41169250fa62ba3 | |
parent | 1908bb8e3ab35f608208979d005f7d30077aa582 [diff] [blame] |
Enable kernel caching in GrMatrixConvolutionEffect Bug: skia:10233 Change-Id: I7a68cbb44c786a113c0f324e21ed963e8f47f382 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/289492 Auto-Submit: Adlai Holler <adlai@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/effects/GrMatrixConvolutionEffect.cpp b/src/gpu/effects/GrMatrixConvolutionEffect.cpp index 3736996..8de8dee 100644 --- a/src/gpu/effects/GrMatrixConvolutionEffect.cpp +++ b/src/gpu/effects/GrMatrixConvolutionEffect.cpp
@@ -81,8 +81,8 @@ scalableSampler.fBias = SkScalarToFloat(min) / scalableSampler.fGain; } - // TODO: Enable kernel caching and check perf. - static constexpr bool kCacheKernelTexture = false; + // TODO: Pick cache or dont-cache based on observed perf. + static constexpr bool kCacheKernelTexture = true; GrUniqueKey key; if (kCacheKernelTexture) {