-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] one aiks context per app. #55393
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as resolved.
This comment was marked as resolved.
gaaclarke
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.
This seems to make avoiding making a content context easier but it doesn't stop someone from doing it, right?
Shouldn't we be doing something like making the AiksContext constructor private (with friend access to the one spot we want to make them)? Or having a debug runtime check to make sure we don't make AiksContexts?
|
Who do we need to stop from doing it? its our own internal API. |
The linked issue doesn't mention under what pretenses we were creating the extra content context. If it was our only option this should be fine, if we were erroneously doing it we'd need something like I mentioned with visibility changes and/or runtime checks. The wording of the issue makes it sound like we were making an error and we need to "ensure" we don't do it: "Today, it is easy to create context on demand and there are are few API guardrails that prevent one from being created." |
|
They're just expensive to create, and there is no need to make more than one. IMO this was just a plumbng problem. |
|
FYI @chinmaygarde PTAL |
|
Reason for revert: Postsubmit turned red (clang tidy and build). |
This reverts commit 7fbdef0.
Reverts: #55393 Initiated by: matanlurey Reason for reverting: Postsubmit turned red (clang tidy and build). Original PR Author: jonahwilliams Reviewed By: {chinmaygarde} This change reverts the following previous change: Hoist the content context up to the ios_surface so that overlay layers don't recreate a bunch of expensive machinery. Fixes flutter/flutter#154836
…156174) flutter/engine@de1762d...20369c5 2024-10-03 [email protected] [Impeller] A text layout and shaping API for the standalone library. (flutter/engine#55598) 2024-10-03 [email protected] Refactor `et run` (and friends). (flutter/engine#55537) 2024-10-03 [email protected] [Impeller] Do not cull in TextFrameDispatcher::drawDisplayList if the transform has perspective (flutter/engine#55602) 2024-10-03 [email protected] iOS: Fix IOSSurfaceNoopTest (flutter/engine#55621) 2024-10-03 98614782+auto-submit[bot]@users.noreply.github.com Reverts "[Impeller] one aiks context per app. (#55393)" (flutter/engine#55625) 2024-10-03 [email protected] Roll Fuchsia Linux SDK from YKvfbpZ38daiwJ7H0... to TnSpLq0S9XT2rHGl1... (flutter/engine#55622) 2024-10-03 [email protected] [Impeller] one aiks context per app. (flutter/engine#55393) Also rolling transitive DEPS: fuchsia/sdk/core/linux-amd64 from YKvfbpZ38dai to TnSpLq0S9XT2 If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Hoist the content context up to the ios_surface so that overlay layers don't recreate a bunch of expensive machinery. Fixes flutter#154836
…er/engine#55625) Reverts: flutter/engine#55393 Initiated by: matanlurey Reason for reverting: Postsubmit turned red (clang tidy and build). Original PR Author: jonahwilliams Reviewed By: {chinmaygarde} This change reverts the following previous change: Hoist the content context up to the ios_surface so that overlay layers don't recreate a bunch of expensive machinery. Fixes flutter#154836
Hoist the content context up to the ios_surface so that overlay layers don't recreate a bunch of expensive machinery.
Fixes flutter/flutter#154836