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 --- src/gpu/text/GrTextContext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gpu/text') diff --git a/src/gpu/text/GrTextContext.cpp b/src/gpu/text/GrTextContext.cpp index 6da4c0d014..a20ba4424a 100644 --- a/src/gpu/text/GrTextContext.cpp +++ b/src/gpu/text/GrTextContext.cpp @@ -103,7 +103,7 @@ void GrTextContext::drawTextBlob(GrContext* context, GrTextUtils::Target* target const SkTextBlob* blob, SkScalar x, SkScalar y, SkDrawFilter* drawFilter, const SkIRect& clipBounds) { // If we have been abandoned, then don't draw - if (context->contextPriv().abandoned()) { + if (context->abandoned()) { return; } @@ -316,7 +316,7 @@ void GrTextContext::drawPosText(GrContext* context, GrTextUtils::Target* target, int scalarsPerPosition, const SkPoint& offset, const SkIRect& regionClipBounds) { GrTextUtils::Paint paint(&skPaint, &target->colorSpaceInfo()); - if (context->contextPriv().abandoned()) { + if (context->abandoned()) { return; } -- cgit v1.2.3