Avoid tesselation path when useCenter is set
bug:7458300 The tesselation path doesn't handle sharp joins. Change-Id: I28bf03f3b72fc584a205daa40934dda17031098f
This commit is contained in:
@@ -2433,7 +2433,7 @@ status_t OpenGLRenderer::drawArc(float left, float top, float right, float botto
|
||||
}
|
||||
|
||||
// TODO: support fills (accounting for concavity if useCenter && sweepAngle > 180)
|
||||
if (p->getStyle() != SkPaint::kStroke_Style || p->getPathEffect() != 0 || p->getStrokeCap() != SkPaint::kButt_Cap) {
|
||||
if (p->getStyle() != SkPaint::kStroke_Style || p->getPathEffect() != 0 || p->getStrokeCap() != SkPaint::kButt_Cap || useCenter) {
|
||||
mCaches.activeTexture(0);
|
||||
const PathTexture* texture = mCaches.arcShapeCache.getArc(right - left, bottom - top,
|
||||
startAngle, sweepAngle, useCenter, p);
|
||||
|
||||
Reference in New Issue
Block a user