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
This commit is contained in:
Bo Brinkman
2021-09-17 22:30:07 +00:00
parent 0a426db7f0
commit ba248e20b2

View File

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