diff options
author | 2018-03-08 11:07:23 -0500 | |
---|---|---|
committer | 2018-03-08 16:30:51 +0000 | |
commit | bebfd41955028d4ff8f78d917614f2dd0ff02428 (patch) | |
tree | 517511b594b954fdc0618a561d8c103659717edf /src | |
parent | baf3e78092243210ca4489e51134df6fc8a90eee (diff) |
Fix preAbandonContext bot
This fixes a bug in https://skia-review.googlesource.com/c/skia/+/113121 (Additional DDL playback cleanup)
TBR=egdaniel@google.com
Change-Id: Idef804c00816fa373c75814ffa5d28b7c9f64d41
Reviewed-on: https://skia-review.googlesource.com/113161
Reviewed-by: Robert Phillips <robertphillips@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/GrBlurUtils.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/GrBlurUtils.cpp b/src/gpu/GrBlurUtils.cpp index 146f297987..b37da26eee 100644 --- a/src/gpu/GrBlurUtils.cpp +++ b/src/gpu/GrBlurUtils.cpp @@ -267,6 +267,10 @@ void GrBlurUtils::drawPathWithMaskFilter(GrContext* context, const SkMatrix* prePathMatrix, const SkIRect& clipBounds, bool pathIsMutable) { + if (context->contextPriv().abandoned()) { + return; + } + SkASSERT(!pathIsMutable || origPath.isVolatile()); GrStyle style(paint); |