Fix empty stroked oval handling in GrRenderTargetContext::drawOval
The fix in https://skia-review.googlesource.com/c/skia/+/138932 (Don't reject stroked empty rrects in GPU backend) revealed a similar bug in oval drawing. Bug: skia:8115 Change-Id: I2f864daf2ccabdcdbb49b242cc5ce3682fe7b12a Reviewed-on: https://skia-review.googlesource.com/139120 Reviewed-by: Jim Van Verth <jvanverth@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
This commit is contained in:
parent
ff2181e62e
commit
7484d20668
@ -1305,7 +1305,14 @@ void GrRenderTargetContext::drawOval(const GrClip& clip,
|
||||
SkDEBUGCODE(this->validate();)
|
||||
GR_CREATE_TRACE_MARKER_CONTEXT("GrRenderTargetContext", "drawOval", fContext);
|
||||
|
||||
const SkStrokeRec& stroke = style.strokeRec();
|
||||
|
||||
if (oval.isEmpty() && !style.pathEffect()) {
|
||||
if (stroke.getStyle() == SkStrokeRec::kFill_Style) {
|
||||
return;
|
||||
}
|
||||
|
||||
this->drawRect(clip, std::move(paint), aa, viewMatrix, oval, &style);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user