commit | b18a947a35975d89d96d30a2c5da3b182d762ebf | [log] [tgz] |
---|---|---|
author | Brian Salomon <bsalomon@google.com> | Wed Jun 23 10:03:07 2021 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Wed Jun 23 17:48:36 2021 +0000 |
tree | 1dbf1d99e20f83498345468a5570c8955b869ad6 | |
parent | 095185d175e605295b07c23b20415680eb630827 [diff] [blame] |
Don't use strokerect op with reduced shader mode. Bug: skia:11844 Change-Id: I8a5fdd6b074ba070022b6da3e31d8642b2f35181 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/420896 Reviewed-by: Jim Van Verth <jvanverth@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/ops/GrStrokeRectOp.cpp b/src/gpu/ops/GrStrokeRectOp.cpp index b120195..174fa4a 100644 --- a/src/gpu/ops/GrStrokeRectOp.cpp +++ b/src/gpu/ops/GrStrokeRectOp.cpp
@@ -833,6 +833,7 @@ const SkMatrix& viewMatrix, const SkRect& rect, const SkStrokeRec& stroke) { + SkASSERT(!context->priv().caps()->reducedShaderMode()); if (aaType == GrAAType::kCoverage) { // The AA op only supports axis-aligned rectangles if (!viewMatrix.rectStaysRect()) {