diff options
author | Robert Phillips <robertphillips@google.com> | 2018-01-16 15:07:54 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-16 20:53:28 +0000 |
commit | 6be756b673b823881e90a2ef68c12b640ddde549 (patch) | |
tree | f7e09cae44e5d5b3faddef00d9250962eec0e05a /src/gpu/GrGpuCommandBuffer.cpp | |
parent | 1ea485fd56a977b4e84b4e82039e8f2487813c1e (diff) |
Move resourceProvider accessor to GrContextPriv (take 2)
TBR=bsalomon@google.com
Change-Id: I3fd46ebfad0d04b8a2bfa6190f81308f3a6be620
Reviewed-on: https://skia-review.googlesource.com/95121
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrGpuCommandBuffer.cpp')
-rw-r--r-- | src/gpu/GrGpuCommandBuffer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrGpuCommandBuffer.cpp b/src/gpu/GrGpuCommandBuffer.cpp index 1dc16c1caa..096c3c4d38 100644 --- a/src/gpu/GrGpuCommandBuffer.cpp +++ b/src/gpu/GrGpuCommandBuffer.cpp @@ -46,8 +46,9 @@ bool GrGpuRTCommandBuffer::draw(const GrPipeline& pipeline, SkASSERT(primProc.hasInstanceAttribs() == meshes[i].isInstanced()); } #endif + auto resourceProvider = this->gpu()->getContext()->contextPriv().resourceProvider(); - if (pipeline.isBad() || !primProc.instantiate(this->gpu()->getContext()->resourceProvider())) { + if (pipeline.isBad() || !primProc.instantiate(resourceProvider)) { return false; } |