Skip to content

Conversation

CatchABus
Copy link
Contributor

@CatchABus CatchABus commented Aug 8, 2022

It seems that current flag for TNSCanvas invalidation state was not covering all cases.
In particular, state was changed asynchronously due to GLThread and Choreographer being like 2 tasks running in parallel.

This caused multiple issues that resulted in more flush calls than expected or none at all, and this whole problem turned canvas blank as mentioned in #84 .
I updated old TNSCanvas property to use bitwise flags instead of enums to avoid doing multiple checks and support more things in the future.

This seems to completely fix the problem I mentioned.

Fixes #84

@cla-bot cla-bot bot added the cla: yes label Aug 8, 2022
@triniwiz
Copy link
Member

triniwiz commented Aug 8, 2022

Looking good 😎

@triniwiz triniwiz merged commit cee733e into NativeScript:master Aug 8, 2022
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.

Android canvas becomes blank after few updates

2 participants