-
Notifications
You must be signed in to change notification settings - Fork 6k
Add new FlutterEngineAOTData argument to FlutterProjectArgs #18146
Conversation
For a real world example, here's the GLFW embedder updated to use the new API: https://github.com/MarcusTomlinson/glfw (see: README.md) |
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'll defer to Chinmay on the substantive part of the review; just some style nits from me. Looks great!
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.
Apart from the pointer to AOT data in FluttereProjectArgs, everything else is minor nits. This is looking great. Thanks.
Thanks for the reviews guys! Learnt a lot from them! |
@chinmaygarde, I just remembered, the additional |
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; please wait for Chinmay's approval as well though.
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.
One last comment about the lifecycle of the AOTData and when it may be collected. Other than that, lgtm. Thanks for the patch and the followups. This is great.
@chinmaygarde, @stuartmorgan: I think that covers it :) Please could you merge when you get the chance. Thanks! |
…18146) Added a new `FlutterEngineAOTData` argument to `FlutterProjectArgs`. Embedders can instantiate and destroy this object via the new `FlutterEngineCreateAOTData` and `FlutterEngineCollectAOTData` methods provided. If an embedder provides more than one source of AOT data to `FlutterEngineInitialize` or `FlutterEngineRun` (e.g. snapshots as well as `FlutterEngineAOTData`), the engine will error out. Resolves: flutter/flutter#50778
Added a new
FlutterEngineAOTData
argument toFlutterProjectArgs
. Embedders can instantiate and destroy this object via the newFlutterEngineCreateAOTData
andFlutterEngineCollectAOTData
methods provided.If an embedder provides more than one source of AOT data to
FlutterEngineInitialize
orFlutterEngineRun
(e.g. snapshots as well asFlutterEngineAOTData
), the engine will error out.Resolves: flutter/flutter#50778