aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm
diff options
context:
space:
mode:
authorGravatar Khushal <khushalsagar@chromium.org>2018-06-26 14:38:34 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-27 01:08:45 +0000
commitc421ca1d6e41214f09c0e6311c8519a15e44edd4 (patch)
treeae029083d130acb979f9e1c15c862f6436908d7b /dm
parentef12509ff2668027664308653ced36039af800ad (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 'dm')
-rw-r--r--dm/DMSrcSink.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp
index 9a16e89b07..22c34aadd0 100644
--- a/dm/DMSrcSink.cpp
+++ b/dm/DMSrcSink.cpp
@@ -1563,7 +1563,7 @@ Error GPUSink::onDraw(const Src& src, SkBitmap* dst, SkWStream*, SkString* log,
} else if (FLAGS_releaseAndAbandonGpuContext) {
factory.releaseResourcesAndAbandonContexts();
}
- if (!context->contextPriv().abandoned()) {
+ if (!context->abandoned()) {
surface.reset();
if (backendTexture.isValid()) {
context->contextPriv().getGpu()->deleteTestingOnlyBackendTexture(backendTexture);