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

Unified Diff: sky/sdk/lib/framework/rendering/render_node.dart

Issue 1145973009: Add a simple inksplash example (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: nits Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/sdk/lib/framework/app.dart ('k') | sky/sdk/lib/framework/scheduler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/rendering/render_node.dart
diff --git a/sky/sdk/lib/framework/rendering/render_node.dart b/sky/sdk/lib/framework/rendering/render_node.dart
index 1d68e356c28da8d78984c40441e16e168f6447e9..45ed33921cd079e73fd46d4e78433a78432923a4 100644
--- a/sky/sdk/lib/framework/rendering/render_node.dart
+++ b/sky/sdk/lib/framework/rendering/render_node.dart
@@ -3,6 +3,7 @@
// found in the LICENSE file.
import '../node.dart';
+import '../scheduler.dart' as scheduler;
import 'dart:math' as math;
import 'dart:sky' as sky;
@@ -173,10 +174,7 @@ abstract class RenderNode extends AbstractNode {
static bool debugDoingPaint = false;
void markNeedsPaint() {
assert(!debugDoingPaint);
- // TODO(abarth): It's very redundant to call this for every node in the
- // render tree during layout. We should instead compute a summary bit and
- // call it once at the end of layout.
- sky.view.scheduleFrame();
+ scheduler.ensureVisualUpdate();
}
void paint(RenderNodeDisplayList canvas) { }
« no previous file with comments | « sky/sdk/lib/framework/app.dart ('k') | sky/sdk/lib/framework/scheduler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698