commit | aac5728a8260858316f2e0d93f2c06817a3d6db5 | [log] [tgz] |
---|---|---|
author | Robert Phillips <robertphillips@google.com> | Wed Sep 30 10:23:38 2020 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Wed Sep 30 15:54:43 2020 +0000 |
tree | f86de474f389832886f1b1f3da480a5a7f509f40 | |
parent | 70b82429ac56527bcfc11f843c90dfb795bff4ba [diff] [blame] |
Make GrRRectBlurEffect use the thread-safe uniquely-keyed view cache (take 2) This yields a ~8% performance improvement on OOP-R/DDL-like rendering of the simpleblurroundrect GM. Bug: 1108408 Change-Id: I710c75b73a395b2280abf0c5af528e0f6731326d Reviewed-on: https://skia-review.googlesource.com/c/skia/+/311720 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/320917
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; }