Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@jason-simmons
Copy link
Member

The engine's activity_running flag tracks whether the app is in the paused or
running lifecycle state. The engine had been defaulting activity_running to
false (meaning paused). But the animator had been defaulting its paused flag
to false, which allowed frames to render at startup. If the engine loses and
regains its surface, then frames would stop rendering because activity_running
is false (even though frames had been rendering when the engine initially
acquired its surface).

This change puts the engine and the animator into a consistent state at
startup. Frames will continue to render until the embedder sends a lifecycle
message that will pause both the engine and the animator.

See flutter/flutter#32624

…fault state

The engine's activity_running flag tracks whether the app is in the paused or
running lifecycle state.  The engine had been defaulting activity_running to
false (meaning paused).  But the animator had been defaulting its paused flag
to false, which allowed frames to render at startup.  If the engine loses and
regains its surface, then frames would stop rendering because activity_running
is false (even though frames had been rendering when the engine initially
acquired its surface).

This change puts the engine and the animator into a consistent state at
startup.  Frames will continue to render until the embedder sends a lifecycle
message that will pause both the engine and the animator.

See flutter/flutter#32624
@jason-simmons jason-simmons merged commit ca1dda0 into flutter:master Aug 14, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 15, 2019
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Aug 15, 2019
[email protected]:flutter/engine.git/compare/c5e30553cd1a...5e155c6

git log c5e3055..5e155c6 --no-merges --oneline
2019-08-14 [email protected] some drive-by docs while I was reading the embedding classes (flutter/engine#9341)
2019-08-14 [email protected] Initialize the engine in the running state to match the animator's default state (flutter/engine#11011)
2019-08-14 [email protected] Trace RasterCacheResult::Draw (flutter/engine#11004)
2019-08-14 [email protected] Rename macOS FLE* classes to Flutter* (flutter/engine#11010)
2019-08-14 [email protected] [Windows] Alternative Windows shell platform implementation (flutter/engine#9835)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff ([email protected]), and stop
the roller if necessary.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants