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

This commit is contained in:
Yegor
2016-04-29 13:34:06 -07:00
parent 91dd969966
commit 7c017898da

View File

@@ -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;
}
}
}