diff options
author | Robert Phillips <robertphillips@google.com> | 2018-01-22 10:48:15 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-22 16:53:17 +0000 |
commit | f35fd8d2f26ef7217368d1a09d231ee68ed0cb2f (patch) | |
tree | 8c97c1dee833ffed509f0ff106ac75f3f8bf6070 /src/gpu/GrContextPriv.h | |
parent | 3ba3fa72ae2fd4102cff22b947d124f72ce0f880 (diff) |
Move more internal methods from GrContext to GrContextPriv (take 3)
Change-Id: Ied630e61cf95780bf85032867e6ce663e1ef9c2f
Reviewed-on: https://skia-review.googlesource.com/98000
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrContextPriv.h')
-rw-r--r-- | src/gpu/GrContextPriv.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/GrContextPriv.h b/src/gpu/GrContextPriv.h index bbf67a569a..2ce3947658 100644 --- a/src/gpu/GrContextPriv.h +++ b/src/gpu/GrContextPriv.h @@ -175,6 +175,12 @@ public: GrResourceCache* getResourceCache() { return fContext->fResourceCache; } + GrGpu* getGpu() { return fContext->fGpu.get(); } + const GrGpu* getGpu() const { return fContext->fGpu.get(); } + + GrAtlasGlyphCache* getAtlasGlyphCache() { return fContext->fAtlasGlyphCache; } + GrTextBlobCache* getTextBlobCache() { return fContext->fTextBlobCache.get(); } + private: explicit GrContextPriv(GrContext* context) : fContext(context) {} GrContextPriv(const GrContextPriv&); // unimpl |