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 ...@@ -206,7 +206,7 @@ abstract class WidgetsBinding extends BindingBase implements GestureBinding, Ren
buildOwner.finalizeTree(); buildOwner.finalizeTree();
// TODO(ianh): Following code should not be included in release mode, only profile and debug modes. // TODO(ianh): Following code should not be included in release mode, only profile and debug modes.
if (_needToReportFirstFrame) { if (_needToReportFirstFrame) {
if (_thisFrameWasUseful) { if (!_thisFrameWasUseful) {
_thisFrameWasUseful = true; _thisFrameWasUseful = true;
} else { } else {
developer.Timeline.instantSync('Widgets completed first useful frame'); 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