-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: `Canvas.clipPath` isn't supported with hardware acceleration in APIs below 18. The rounded border rendering logic for Android relies on this method. Therefore, rounded borders do not render correctly on such devices. **Screenshot of Nexus 5 running API 17 (Before these changes):** https://pxl.cl/9rsf **The fix**: If the API version is less than 18 and we're rendering rounded borders, I disable hardware acceleration. Otherwise, I enable it. I'm going to check to see if this has perf regressions by running a CT-Scan. With this change, rounded borders render correctly on Android devices running versions of Android between Honeycomb to JellyBean MR2. **Screenshot of Nexus 5 running API 17 (After these changes):** https://pxl.cl/9rrk Reviewed By: xiphirx Differential Revision: D6153087 fbshipit-source-id: 16e35be096051ac817c8b8bcdd132ecff3b4b167
- Loading branch information
1 parent
6082856
commit 5aa1fb3
Showing
2 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters