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>
This commit is contained in:
Adlai Holler 2020-05-13 15:02:28 -04:00 committed by Skia Commit-Bot
parent 1908bb8e3a
commit dcfb233858

View File

@ -81,8 +81,8 @@ GrMatrixConvolutionEffect::KernelWrapper GrMatrixConvolutionEffect::KernelWrappe
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) {