diff options
author | Chris Craik <ccraik@google.com> | 2012-11-01 11:27:03 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2012-11-01 11:27:03 -0700 |
commit | 7fae5216d24ebe67e22777ab933689dbcbc001b9 (patch) | |
tree | cafed3ae6a4d8bfad73b81ecc2325ce906e4537d /libs | |
parent | dbcec903c858b65c78620e2b06238e42ff4d12da (diff) | |
download | frameworks_base-7fae5216d24ebe67e22777ab933689dbcbc001b9.zip frameworks_base-7fae5216d24ebe67e22777ab933689dbcbc001b9.tar.gz frameworks_base-7fae5216d24ebe67e22777ab933689dbcbc001b9.tar.bz2 |
Avoid tesselation path when useCenter is set
bug:7458300
The tesselation path doesn't handle sharp joins.
Change-Id: I28bf03f3b72fc584a205daa40934dda17031098f
Diffstat (limited to 'libs')
-rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index e2d7156..6787705 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -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); |