| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 library fn; | 5 library fn; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 import 'dart:sky' as sky; | 9 import 'dart:sky' as sky; |
| 10 import 'reflect.dart' as reflect; | 10 import 'reflect.dart' as reflect; |
| (...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 sky.Node _host = null; | 760 sky.Node _host = null; |
| 761 App() : super(stateful: true) { | 761 App() : super(stateful: true) { |
| 762 _host = sky.document.createElement('div'); | 762 _host = sky.document.createElement('div'); |
| 763 sky.document.appendChild(_host); | 763 sky.document.appendChild(_host); |
| 764 | 764 |
| 765 new Future.microtask(() { | 765 new Future.microtask(() { |
| 766 Stopwatch sw = new Stopwatch()..start(); | 766 Stopwatch sw = new Stopwatch()..start(); |
| 767 | 767 |
| 768 _sync(null, _host, null); | 768 _sync(null, _host, null); |
| 769 assert(_root is sky.Node); | 769 assert(_root is sky.Node); |
| 770 _notifyMountStatusChanged(); |
| 770 | 771 |
| 771 sw.stop(); | 772 sw.stop(); |
| 772 if (_shouldLogRenderDuration) | 773 if (_shouldLogRenderDuration) |
| 773 print("Initial build: ${sw.elapsedMicroseconds} microseconds"); | 774 print("Initial build: ${sw.elapsedMicroseconds} microseconds"); |
| 774 }); | 775 }); |
| 775 } | 776 } |
| 776 } | 777 } |
| OLD | NEW |