Please sign in to comment.
Fix border-rendering in APIs < 18
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...
Showing with 42 additions and 5 deletions.