Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87bb019e authored by Chris Craik's avatar Chris Craik Committed by Android Git Automerger
Browse files

am a84c9639: Merge "Avoid tesselation path when useCenter is set" into jb-mr1-dev

* commit 'a84c9639':
  Avoid tesselation path when useCenter is set
parents 893634aa a84c9639
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);