diff options
author | Robert Phillips <robertphillips@google.com> | 2018-01-16 10:44:11 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-16 17:02:45 +0000 |
commit | 1f9ed8501b0007846b3032f4bfc38aee98c175a1 (patch) | |
tree | a342137e34180a110d1cd4129650a771290d0f17 /src/gpu/GrDrawOpAtlas.cpp | |
parent | 20df20cfe822f613d6035baf5f5415a3a977e709 (diff) |
Move resourceProvider accessor to GrContextPriv
Change-Id: I5cddd620a7ec4b006b7359864ede58e9d4dd684e
Reviewed-on: https://skia-review.googlesource.com/94340
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrDrawOpAtlas.cpp')
-rw-r--r-- | src/gpu/GrDrawOpAtlas.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrDrawOpAtlas.cpp b/src/gpu/GrDrawOpAtlas.cpp index 0ba9deca04..24e19f5b5e 100644 --- a/src/gpu/GrDrawOpAtlas.cpp +++ b/src/gpu/GrDrawOpAtlas.cpp @@ -188,7 +188,7 @@ inline bool GrDrawOpAtlas::updatePlot(GrDeferredUploadTarget* target, AtlasID* i // MDB TODO: this is currently fine since the atlas' proxy is always pre-instantiated. // Once it is deferred more care must be taken upon instantiation failure. - if (!fProxies[pageIdx]->instantiate(fContext->resourceProvider())) { + if (!fProxies[pageIdx]->instantiate(fContext->contextPriv().resourceProvider())) { return false; } @@ -309,7 +309,7 @@ bool GrDrawOpAtlas::addToAtlas(AtlasID* id, GrDeferredUploadTarget* target, int sk_sp<Plot> plotsp(SkRef(newPlot.get())); // MDB TODO: this is currently fine since the atlas' proxy is always pre-instantiated. // Once it is deferred more care must be taken upon instantiation failure. - if (!fProxies[pageIdx]->instantiate(fContext->resourceProvider())) { + if (!fProxies[pageIdx]->instantiate(fContext->contextPriv().resourceProvider())) { return false; } GrTextureProxy* proxy = fProxies[pageIdx].get(); |