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

* commit '7494f0c04b1abd010207ee5c7e8c9aff6d69c956':
  Avoid tesselation path when useCenter is set
This commit is contained in:
Chris Craik
2012-11-01 14:40:04 -07:00
committed by Android Git Automerger

View File

@@ -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);