Skip to content

Commit 7fae521

Browse files
committed
Avoid tesselation path when useCenter is set
bug:7458300 The tesselation path doesn't handle sharp joins. Change-Id: I28bf03f3b72fc584a205daa40934dda17031098f
1 parent dbcec90 commit 7fae521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/hwui/OpenGLRenderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2433,7 +2433,7 @@ status_t OpenGLRenderer::drawArc(float left, float top, float right, float botto
24332433
}
24342434

24352435
// TODO: support fills (accounting for concavity if useCenter && sweepAngle > 180)
2436-
if (p->getStyle() != SkPaint::kStroke_Style || p->getPathEffect() != 0 || p->getStrokeCap() != SkPaint::kButt_Cap) {
2436+
if (p->getStyle() != SkPaint::kStroke_Style || p->getPathEffect() != 0 || p->getStrokeCap() != SkPaint::kButt_Cap || useCenter) {
24372437
mCaches.activeTexture(0);
24382438
const PathTexture* texture = mCaches.arcShapeCache.getArc(right - left, bottom - top,
24392439
startAngle, sweepAngle, useCenter, p);

0 commit comments

Comments
 (0)