Skip to content
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

DrawHandler cause Choreographer.mDisplayEventReceiver leak #460

Open
ZellHo opened this issue Apr 23, 2021 · 0 comments
Open

DrawHandler cause Choreographer.mDisplayEventReceiver leak #460

ZellHo opened this issue Apr 23, 2021 · 0 comments

Comments

@ZellHo
Copy link

ZellHo commented Apr 23, 2021

DrawHandler裡會用到Choreographer.getInstance(), 但由於Choreographer.getInstance()是ThreadLocal變數, 而DrawHandler是活在自己的handlerThread上, 所以DanmakuView在離開時必須讓DrawHandler去執行Choreographer.getInstance().release()//要在DrawHandler的handlerThread上執行, 才能避免Choreographer.mDisplayEventReceiver leak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant