From c421ca1d6e41214f09c0e6311c8519a15e44edd4 Mon Sep 17 00:00:00 2001 From: Khushal Date: Tue, 26 Jun 2018 14:38:34 -0700 Subject: 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 Commit-Queue: Khusal Sagar --- dm/DMSrcSink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dm') 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); -- cgit v1.2.3