mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
journal: start uprof flush timer after flushing fb deps
This avoids us recursively starting the _cogl_journal_flush uprof timer by only starting it after flushing the journals of dependency framebuffers.
This commit is contained in:
parent
affce86924
commit
4758ed2cf2
@ -1292,14 +1292,16 @@ _cogl_journal_flush (CoglJournal *journal,
|
||||
if (journal->entries->len == 0)
|
||||
return;
|
||||
|
||||
COGL_TIMER_START (_cogl_uprof_context, flush_timer);
|
||||
|
||||
/* The entries in this journal may depend on images in other
|
||||
* framebuffers which may require that we flush the journals
|
||||
* associated with those framebuffers before we can flush
|
||||
* this journal... */
|
||||
_cogl_framebuffer_flush_dependency_journals (framebuffer);
|
||||
|
||||
/* Note: we start the timer after flushing dependency journals so
|
||||
* that the timer isn't started recursively. */
|
||||
COGL_TIMER_START (_cogl_uprof_context, flush_timer);
|
||||
|
||||
cogl_push_framebuffer (framebuffer);
|
||||
|
||||
if (G_UNLIKELY (cogl_debug_flags & COGL_DEBUG_BATCHING))
|
||||
|
Loading…
Reference in New Issue
Block a user