Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: android support for clipToBounds #9508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 11, 2021

Conversation

farfromrefug
Copy link
Collaborator

@farfromrefug farfromrefug commented Aug 11, 2021

It comes with a major refactoring of the BorderDrawable. Now all Paths are cached not to regenerate them on every draw pass.

Also it is important to understand that the clipping feature on android comes at a cost.
It will be done only when truly necessary. but with complex paths ((border radius > 0 && border non uniform) || border-width >0) then we must apply a costly drawing pass (though hardware accelerated) to accomplish it.

farfromrefug and others added 4 commits August 11, 2021 11:42
* update svelte config to use svelte-loader

* handle null config

* fix: worker support in .svelte files & update snapshots

* fix after merge

Co-authored-by: halfnelson <[email protected]>
Co-authored-by: Igor Randjelovic <[email protected]>
It comes with a major refactoring of the BorderDrawable. Now all Paths are cached not to regenerate them on every draw pass.

Also it is important to understand that the clipping feature on android comes at a cost.
It will be done only when truelly necessary. but with complex paths ((border radius > 0 && border non uniform) || border-width >0) then we must apply a costly drawing pass (though hardware accelerated) to accomplish it.
@cla-bot cla-bot bot added the cla: yes label Aug 11, 2021
@farfromrefug
Copy link
Collaborator Author

Screenshot 2021-08-11 at 13 46 03

@rigor789 rigor789 added this to the 8.1 milestone Aug 11, 2021
@NathanWalker NathanWalker changed the base branch from master to release/8.1.0 August 11, 2021 19:04
@NathanWalker NathanWalker merged commit 5890667 into NativeScript:release/8.1.0 Aug 11, 2021
NathanWalker pushed a commit that referenced this pull request Sep 8, 2021
* performance improvements around border handling

BREAKING CHANGE:

* if you have broder-radius or clip-path, it will clip by default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants