Move StrikeCache and TextBlobCache to RecordingContext
TBR=bsalomon@google.com
Change-Id: I09a918eee4fab2091b0cbbbe83bc66418e43045e
Reviewed-on: https://skia-review.googlesource.com/c/193471
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
diff --git a/src/gpu/GrContextPriv.h b/src/gpu/GrContextPriv.h
index de1d3a8..3172207 100644
--- a/src/gpu/GrContextPriv.h
+++ b/src/gpu/GrContextPriv.h
@@ -68,6 +68,9 @@
sk_sp<GrOpMemoryPool> refOpMemoryPool();
GrOpMemoryPool* opMemoryPool() { return fContext->opMemoryPool(); }
+ GrStrikeCache* getGlyphCache() { return fContext->getGlyphCache(); }
+ GrTextBlobCache* getTextBlobCache() { return fContext->getTextBlobCache(); }
+
/**
* Registers an object for flush-related callbacks. (See GrOnFlushCallbackObject.)
*
@@ -265,9 +268,6 @@
GrGpu* getGpu() { return fContext->fGpu.get(); }
const GrGpu* getGpu() const { return fContext->fGpu.get(); }
- GrStrikeCache* getGlyphCache() { return fContext->fGlyphCache; }
- GrTextBlobCache* getTextBlobCache() { return fContext->fTextBlobCache.get(); }
-
// This accessor should only ever be called by the GrOpFlushState.
GrAtlasManager* getAtlasManager() {
return fContext->onGetAtlasManager();