Commit e60a624a authored by Yegor's avatar Yegor

fix first frame reporting logic (#3640)

parent 870c3619
......@@ -206,7 +206,7 @@ abstract class WidgetsBinding extends BindingBase implements GestureBinding, Ren
buildOwner.finalizeTree();
// TODO(ianh): Following code should not be included in release mode, only profile and debug modes.
if (_needToReportFirstFrame) {
if (_thisFrameWasUseful) {
if (!_thisFrameWasUseful) {
_thisFrameWasUseful = true;
} else {
developer.Timeline.instantSync('Widgets completed first useful frame');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment