diff options
author | Khushal <khushalsagar@chromium.org> | 2018-06-26 14:38:34 -0700 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-27 01:08:45 +0000 |
commit | c421ca1d6e41214f09c0e6311c8519a15e44edd4 (patch) | |
tree | ae029083d130acb979f9e1c15c862f6436908d7b /src/gpu/GrAHardwareBufferImageGenerator.cpp | |
parent | ef12509ff2668027664308653ced36039af800ad (diff) |
gpu: Expose GrContextPriv::abandoned in the public API.
TBR=bsalomon@google.com
Bug: 854416
Change-Id: Iab71ca6e4724a925b0b9791267aac5ddc34f5b15
Reviewed-on: https://skia-review.googlesource.com/137692
Reviewed-by: Khusal Sagar <khushalsagar@chromium.org>
Commit-Queue: Khusal Sagar <khushalsagar@chromium.org>
Diffstat (limited to 'src/gpu/GrAHardwareBufferImageGenerator.cpp')
-rw-r--r-- | src/gpu/GrAHardwareBufferImageGenerator.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpu/GrAHardwareBufferImageGenerator.cpp b/src/gpu/GrAHardwareBufferImageGenerator.cpp index ea1da11ab0..e3ae782d9a 100644 --- a/src/gpu/GrAHardwareBufferImageGenerator.cpp +++ b/src/gpu/GrAHardwareBufferImageGenerator.cpp @@ -144,8 +144,7 @@ sk_sp<GrTextureProxy> GrAHardwareBufferImageGenerator::onGenerateTexture( } sk_sp<GrTextureProxy> GrAHardwareBufferImageGenerator::makeProxy(GrContext* context) { - if (context->contextPriv().abandoned() || - kOpenGL_GrBackend != context->contextPriv().getBackend()) { + if (context->abandoned() || kOpenGL_GrBackend != context->contextPriv().getBackend()) { // Check if GrContext is not abandoned and the backend is GL. return nullptr; } |