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/GrBufferAllocPool.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/GrBufferAllocPool.cpp')
-rw-r--r-- | src/gpu/GrBufferAllocPool.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/GrBufferAllocPool.cpp b/src/gpu/GrBufferAllocPool.cpp index 13ae404d3d..fc5fb66478 100644 --- a/src/gpu/GrBufferAllocPool.cpp +++ b/src/gpu/GrBufferAllocPool.cpp @@ -10,6 +10,7 @@ #include "GrBuffer.h" #include "GrCaps.h" #include "GrContext.h" +#include "GrContextPriv.h" #include "GrGpu.h" #include "GrResourceProvider.h" #include "GrTypes.h" @@ -368,11 +369,11 @@ void GrBufferAllocPool::flushCpuData(const BufferBlock& block, size_t flushSize) GrBuffer* GrBufferAllocPool::getBuffer(size_t size) { - GrResourceProvider* rp = fGpu->getContext()->resourceProvider(); + auto resourceProvider = fGpu->getContext()->contextPriv().resourceProvider(); // Shouldn't have to use this flag (https://bug.skia.org/4156) static const uint32_t kFlags = GrResourceProvider::kNoPendingIO_Flag; - return rp->createBuffer(size, fBufferType, kDynamic_GrAccessPattern, kFlags); + return resourceProvider->createBuffer(size, fBufferType, kDynamic_GrAccessPattern, kFlags); } //////////////////////////////////////////////////////////////////////////////// |