diff options
author | Hal Canary <halcanary@google.com> | 2018-01-16 18:33:07 +0000 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-16 18:33:14 +0000 |
commit | be46e24d57537f7ab6854fcd6f6ec07e2c50495c (patch) | |
tree | 8a0304af3a4ea0561af8ecced5b645250f0dd55b /src/gpu/GrGpu.cpp | |
parent | 301152cc58e937561dfd6fa93099778fad5b01b3 (diff) |
Revert "Move resourceProvider accessor to GrContextPriv"
This reverts commit 1f9ed8501b0007846b3032f4bfc38aee98c175a1.
Reason for revert:
1. breaking android roll
2. breaking Build-Debian9-Clang-arm-Release-Android_API26
Original change's description:
> 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>
TBR=egdaniel@google.com,bsalomon@google.com,robertphillips@google.com
Change-Id: I20b2d267c0925f20453b635663654967199a1197
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/94964
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'src/gpu/GrGpu.cpp')
-rw-r--r-- | src/gpu/GrGpu.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp index 93f719ab48..3a095517b5 100644 --- a/src/gpu/GrGpu.cpp +++ b/src/gpu/GrGpu.cpp @@ -13,7 +13,6 @@ #include "GrBuffer.h" #include "GrCaps.h" #include "GrContext.h" -#include "GrContextPriv.h" #include "GrGpuResourcePriv.h" #include "GrMesh.h" #include "GrPathRendering.h" @@ -484,17 +483,15 @@ bool GrGpu::SamplePatternComparator::operator()(const SamplePattern& a, GrSemaphoresSubmitted GrGpu::finishFlush(int numSemaphores, GrBackendSemaphore backendSemaphores[]) { - GrResourceProvider* resourceProvider = fContext->contextPriv().resourceProvider(); - if (this->caps()->fenceSyncSupport()) { for (int i = 0; i < numSemaphores; ++i) { sk_sp<GrSemaphore> semaphore; if (backendSemaphores[i].isInitialized()) { - semaphore = resourceProvider->wrapBackendSemaphore( + semaphore = fContext->resourceProvider()->wrapBackendSemaphore( backendSemaphores[i], GrResourceProvider::SemaphoreWrapType::kWillSignal, kBorrow_GrWrapOwnership); } else { - semaphore = resourceProvider->makeSemaphore(false); + semaphore = fContext->resourceProvider()->makeSemaphore(false); } this->insertSemaphore(semaphore, false); |