Add plumbing for the GrThreadSafeUniquelyKeyedProxyViewCache
This CL is also imperfect and incomplete but, although currently unused, it sketches in how the threadSafeProxyCache will be plumbed through the GrContexts and GrResourceCache.
Bug: 1108408
Change-Id: Idb012b6efd49291de69bd88e4b4c531458a3e553
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317360
Reviewed-by: Adlai Holler <adlai@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrContextThreadSafeProxyPriv.h b/src/gpu/GrContextThreadSafeProxyPriv.h
index c428e1a..2a31f68 100644
--- a/src/gpu/GrContextThreadSafeProxyPriv.h
+++ b/src/gpu/GrContextThreadSafeProxyPriv.h
@@ -39,6 +39,13 @@
GrTextBlobCache* getTextBlobCache() { return fProxy->fTextBlobCache.get(); }
const GrTextBlobCache* getTextBlobCache() const { return fProxy->fTextBlobCache.get(); }
+ GrThreadSafeUniquelyKeyedProxyViewCache* threadSafeViewCache() {
+ return fProxy->fThreadSafeViewCache.get();
+ }
+ const GrThreadSafeUniquelyKeyedProxyViewCache* threadSafeViewCache() const {
+ return fProxy->fThreadSafeViewCache.get();
+ }
+
void abandonContext() { fProxy->abandonContext(); }
bool abandoned() const { return fProxy->abandoned(); }