aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrContextPriv.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-03-01 14:16:41 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-01 19:41:04 +0000
commit1056eb821f1f43b034962aa6defb80aeeb75d22d (patch)
tree0e05142557cce356f743a538f8d19c49e6aacc17 /src/gpu/GrContextPriv.h
parent4f16db62e5a794080228bd096f29dd9df8311f6c (diff)
Move atlas manager creation to GrContext derived classes (take 2)
TBR=bsalomon@google.com Change-Id: Ie10b7e770e24104d10c36ce7882126dd8551a8ba Reviewed-on: https://skia-review.googlesource.com/110822 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrContextPriv.h')
-rw-r--r--src/gpu/GrContextPriv.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/gpu/GrContextPriv.h b/src/gpu/GrContextPriv.h
index c2e525d9b9..a8fda09efe 100644
--- a/src/gpu/GrContextPriv.h
+++ b/src/gpu/GrContextPriv.h
@@ -190,16 +190,14 @@ public:
GrGlyphCache* getGlyphCache() { return fContext->fGlyphCache; }
GrTextBlobCache* getTextBlobCache() { return fContext->fTextBlobCache.get(); }
- GrRestrictedAtlasManager* getRestrictedAtlasManager() { return fContext->fFullAtlasManager; }
+
+ GrRestrictedAtlasManager* getRestrictedAtlasManager() {
+ return fContext->onGetRestrictedAtlasManager();
+ }
// This accessor should only ever be called by the GrOpFlushState.
GrAtlasManager* getFullAtlasManager() {
- if (fContext->fResourceProvider) {
- // Disallow access to the full atlasManager when recording DDLs
- return fContext->fFullAtlasManager;
- }
-
- return nullptr;
+ return fContext->onGetFullAtlasManager();
}
void moveOpListsToDDL(SkDeferredDisplayList*);