diff options
author | 2018-06-26 14:38:34 -0700 | |
---|---|---|
committer | 2018-06-27 01:08:45 +0000 | |
commit | c421ca1d6e41214f09c0e6311c8519a15e44edd4 (patch) | |
tree | ae029083d130acb979f9e1c15c862f6436908d7b /src/gpu/text | |
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/text')
-rw-r--r-- | src/gpu/text/GrTextContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |