Make GrRRectBlurEffect use the thread-safe uniquely-keyed view cache
This yields a ~8% performance improvement on OOP-R/DDL-like rendering of the simpleblurroundrect GM.
Bug: 1108408
Change-Id: I1ec9477dffe870e5973f8a334a65b1013a4ca3dd
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/311720
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/tests/GrThreadSafeViewCacheTest.cpp b/tests/GrThreadSafeViewCacheTest.cpp
index 134d7e4..fe9b0f8 100644
--- a/tests/GrThreadSafeViewCacheTest.cpp
+++ b/tests/GrThreadSafeViewCacheTest.cpp
@@ -417,7 +417,7 @@
GrSurfaceProxyView view;
// We can "fail the lookup" to simulate a threaded race condition
- if (auto view = threadSafeViewCache->find(key); !failLookup && view) {
+ if (view = threadSafeViewCache->find(key); !failLookup && view) {
++stats->fCacheHits;
return view;
}