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

Unified Diff: runtime/observatory/lib/src/elements/helpers/rendering_queue.dart

Issue 2184263006: Avoid to schedule unnecessary empty rendering cicles (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Avoid to schedule unnecessary empty rendering cycles Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/elements/helpers/rendering_queue.dart
diff --git a/runtime/observatory/lib/src/elements/helpers/rendering_queue.dart b/runtime/observatory/lib/src/elements/helpers/rendering_queue.dart
index a6062c38ebd64201b88518d6397e5c505f15d19b..707de2331ad3883bd0fca81ef112073aaacacb20 100644
--- a/runtime/observatory/lib/src/elements/helpers/rendering_queue.dart
+++ b/runtime/observatory/lib/src/elements/helpers/rendering_queue.dart
@@ -66,7 +66,8 @@ class RenderingQueue {
Future _render() async {
await _barrier.next;
while (_queue.isNotEmpty) {
- _queue.removeFirst().render();
+ _queue.first.render();
+ _queue.removeFirst();
}
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698