-
Notifications
You must be signed in to change notification settings - Fork 6k
[Embedder API] Add next frame callback #35244
Conversation
chinmaygarde
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nits and documentation suggestions.
shell/platform/embedder/embedder.h
Outdated
|
|
||
| //------------------------------------------------------------------------------ | ||
| /// @brief Schedule a callback to be called after the next frame is drawn. | ||
| /// This callback is made on an internal engine managed thread and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(or an embedder managed thread if custom task runners are specified)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, perhaps my original comment is incorrect. This runs on the raster thread, which is created by the embedder (and thus also managed by the embedder?). Should I just say it runs on the raster thread?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I switched this to say raster thread. I'll leave this conversation open for now, let me know if you'd prefer I go with your original message!
cbracken
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

Adds an embedder API to be notified when the next frame has been drawn. In the future, this will be used by the Windows embedder to hide the window until the first frame has been drawn.
Part of flutter/flutter#41980
Pre-launch Checklist
writing and running engine tests.
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.