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

Feature/event loop interop #218

Merged
merged 18 commits into from
Aug 2, 2019
Merged

Feature/event loop interop #218

merged 18 commits into from
Aug 2, 2019

Conversation

pchampio
Copy link
Member

@pchampio pchampio commented Aug 2, 2019

duplicated of #215

Go implementation of https://github.com/flutter/engine/pull/9089/files

This feature is removing a deprecated engine function. For now, there is a tiny benefit of using FlutterCustomTaskRunners, instead of FlutterEngineFlushPendingTasksNow.
Once the restriction evoked by @chinmaygarde comment is lift. I hope to remove all polling handler from the embedder.

To achieve true waiting, the UI must run on a separate thread. (android UIthread like). I don't thinks it's possible using GLFW.

@pchampio pchampio merged commit 97a9358 into beta Aug 2, 2019
@pchampio pchampio deleted the feature/event-loop-interop branch August 2, 2019 07:47
@pchampio pchampio mentioned this pull request Aug 2, 2019
pchampio added a commit that referenced this pull request Aug 2, 2019
pchampio added a commit that referenced this pull request Aug 2, 2019
pchampio added a commit that referenced this pull request Aug 4, 2019
pchampio added a commit that referenced this pull request Aug 4, 2019
pchampio added a commit that referenced this pull request Sep 3, 2019
* Texture support (#217)

* Feature/event loop interop (#218)

* Feature/callback messages (#220)

* fix: remove initial WaitEvent

now that we have implemented the proper event loop.
Delete the first WaitEvent

* lazy initialize go-gl/gl on first texture frame

* align BinaryMessenger with *-channels

BinaryMessenger:
SendNoReply -> Send
Send -> SendWithReply

* change the priorityQueue to specifically contain embedder.FlutterTask's

* Adds comments and renames internals. Also some re-ordering of init code. (#235)

* Addressing comments & fix pointer warning

* implement RunOnCurrentThread check using C call

* Custom error codes on the plugin side (#238)

Custom error codes on the plugin side

* rely on LockOSThread to ensure engine task are run on the same thread
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant