diff options
author | 2021-09-17 22:30:07 +0000 | |
---|---|---|
committer | 2021-09-18 00:38:57 +0000 | |
commit | ba248e20b22864e81a5d2c84c61507a0eef0829a (patch) | |
tree | 70f8eeb55ef38eb6ce47ca5fdbec9cd6a830191a | |
parent | 0a426db7f0652447a5b4210ed850af7fa6bebc32 (diff) |
Enable anti-aliasing for clip-path in vector drawables.
I definitely do not know what I'm doing here, so please view with
skepticism. I don't know how to check if there are other similar calls
that should be updated.
To test this I changed the Lens icon in NexusLauncher to use clip-path.
You can see the diff here: https://screenshot.googleplex.com/AoXzx2iojWQSS9v
Bug: 200304852
Change-Id: I482920c3449fa9e89906b46631b44e6264a46e61
-rw-r--r-- | libs/hwui/VectorDrawable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/VectorDrawable.cpp b/libs/hwui/VectorDrawable.cpp index f116641b560f..983c7766273a 100644 --- a/libs/hwui/VectorDrawable.cpp +++ b/libs/hwui/VectorDrawable.cpp @@ -269,7 +269,7 @@ void FullPath::FullPathProperties::setPropertyValue(int propertyId, float value) void ClipPath::draw(SkCanvas* outCanvas, bool useStagingData) { SkPath tempStagingPath; - outCanvas->clipPath(getUpdatedPath(useStagingData, &tempStagingPath)); + outCanvas->clipPath(getUpdatedPath(useStagingData, &tempStagingPath), true); } Group::Group(const Group& group) : Node(group) { |