Commit 7c017898 authored by Yegor's avatar Yegor

invert first frame condition to make it positive (#3641)

parent 91dd9699
......@@ -206,11 +206,11 @@ 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) {
_thisFrameWasUseful = true;
} else {
if (_thisFrameWasUseful) {
developer.Timeline.instantSync('Widgets completed first useful frame');
_needToReportFirstFrame = false;
} else {
_thisFrameWasUseful = true;
}
}
}
......
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