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:
parent
1908bb8e3a
commit
dcfb233858
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user