diff options
author | Doris Liu <tianliu@google.com> | 2017-12-04 16:31:07 -0800 |
---|---|---|
committer | Doris Liu <tianliu@google.com> | 2017-12-04 16:31:07 -0800 |
commit | 6b184d7a43d88511841407673448c64a114fdb4e (patch) | |
tree | 748e3eca3919a7c409c15fc13ae3fa3fdeca90b8 /libs/hwui/VectorDrawable.cpp | |
parent | aad6c9841c81b8eed80eb12dd2e79b81cc772461 (diff) |
Private API to turn off anti-aliasing for VectorDrawable
Bug: 69322344
Test: visual inspection on VectorDrawableTest with AA off. Jagged edges
that are otherwise smooth were spotted.
Change-Id: Ib2dfbd3a941be0b4ff92b8458346f8c8f5015a4b
Diffstat (limited to 'libs/hwui/VectorDrawable.cpp')
-rw-r--r-- | libs/hwui/VectorDrawable.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/VectorDrawable.cpp b/libs/hwui/VectorDrawable.cpp index ce00488c9728..f118e8d0a53e 100644 --- a/libs/hwui/VectorDrawable.cpp +++ b/libs/hwui/VectorDrawable.cpp @@ -166,7 +166,7 @@ void FullPath::draw(SkCanvas* outCanvas, bool useStagingData) { if (needsFill) { paint.setStyle(SkPaint::Style::kFill_Style); - paint.setAntiAlias(true); + paint.setAntiAlias(mAntiAlias); outCanvas->drawPath(renderPath, paint); } @@ -182,7 +182,7 @@ void FullPath::draw(SkCanvas* outCanvas, bool useStagingData) { } if (needsStroke) { paint.setStyle(SkPaint::Style::kStroke_Style); - paint.setAntiAlias(true); + paint.setAntiAlias(mAntiAlias); paint.setStrokeJoin(SkPaint::Join(properties.getStrokeLineJoin())); paint.setStrokeCap(SkPaint::Cap(properties.getStrokeLineCap())); paint.setStrokeMiter(properties.getStrokeMiterLimit()); |