Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Side by Side Diff: sky/sdk/example/stocks/lib/main.dart

Issue 1216973005: Turn off the code that is forcing stocksapp to build 50 times a second, and change the code that tr… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | sky/sdk/lib/widgets/widget.dart » ('j') | sky/sdk/lib/widgets/widget.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import 'package:sky/rendering/sky_binding.dart'; 5 import 'package:sky/rendering/sky_binding.dart';
6 import 'package:sky/theme/colors.dart' as colors; 6 import 'package:sky/theme/colors.dart' as colors;
7 import 'package:sky/theme/theme_data.dart'; 7 import 'package:sky/theme/theme_data.dart';
8 import 'package:sky/widgets/basic.dart'; 8 import 'package:sky/widgets/basic.dart';
9 import 'package:sky/widgets/navigator.dart'; 9 import 'package:sky/widgets/navigator.dart';
10 import 'package:sky/widgets/theme.dart'; 10 import 'package:sky/widgets/theme.dart';
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 return new Theme( 80 return new Theme(
81 data: theme, 81 data: theme,
82 child: new Navigator(_navigationState) 82 child: new Navigator(_navigationState)
83 ); 83 );
84 } 84 }
85 } 85 }
86 86
87 void main() { 87 void main() {
88 print("starting stocks app!"); 88 print("starting stocks app!");
89 runApp(new StocksApp(), enableProfilingLoop: true); 89 runApp(new StocksApp(), enableProfilingLoop: false);
abarth-chromium 2015/06/29 22:39:57 Can we delete the named parameter now that we're p
90 // set enableProfilingLoop to true to make the app rebuild continually every 2 0ms 90 // set enableProfilingLoop to true to make the app rebuild continually every 2 0ms
91 SkyBinding.instance.onFrame = () { 91 SkyBinding.instance.onFrame = () {
92 // uncomment this to print the RenderObject tree every frame: 92 // uncomment this to print the RenderObject tree every frame:
93 // SkyBinding.instance.debugDumpRenderTree(); 93 // SkyBinding.instance.debugDumpRenderTree();
94 }; 94 };
95 } 95 }
OLDNEW
« no previous file with comments | « no previous file | sky/sdk/lib/widgets/widget.dart » ('j') | sky/sdk/lib/widgets/widget.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698