From bebfd41955028d4ff8f78d917614f2dd0ff02428 Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Thu, 8 Mar 2018 11:07:23 -0500 Subject: [PATCH] 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 Reviewed-by: Greg Daniel Commit-Queue: Robert Phillips --- src/gpu/GrBlurUtils.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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);