Can Pictures be used for performance improvements? #2819
AdamGerthel
started this conversation in
General
Replies: 1 comment 1 reply
-
yes that makes a lot of sense, I am wondering if the atlas API would be a good API to draw the button, or it looks like this API might be even more of a fit: https://api.skia.org/classSkCanvas.html#ab8a724321360f9f71b409f8d11172628 (we don't expose it but we could if there is a compelling use case for it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently attempting to improve performance of a 9-slice solution (see #2818 to get a better idea), and I'm trying to wrap my head around whether I could utilize
createPicture
to draw my button backgrounds, store the output somewhere, and then re-use the picture in future renders (when visually related props are the same).My questions are:
Beta Was this translation helpful? Give feedback.
All reactions