commit c6daffd
Michael Forney
·
2014-08-16 19:51:05 +0000 UTC
parent e1f8498
compositor: Add comment about update logic
1 files changed,
+3,
-1
+3,
-1
1@@ -131,7 +131,9 @@ static void handle_screen_frame(struct view_handler * handler, uint32_t time)
2 target->current_buffer = target->next_buffer;
3
4 /* If we had scheduled updates that couldn't run because we were
5- * waiting on a page flip, run them now. */
6+ * waiting on a page flip, run them now. If the compositor is
7+ * currently updating, then the frame finished immediately, and we
8+ * can be sure that there are no pending updates. */
9 if (compositor.scheduled_updates && !compositor.updating)
10 perform_update(NULL);
11 }