cogl/journal: Add trace span to flush
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3417>
This commit is contained in:
parent
e11ee42dfa
commit
03252fefa3
@ -41,6 +41,7 @@
|
||||
#include "cogl/cogl-profile.h"
|
||||
#include "cogl/cogl-attribute-private.h"
|
||||
#include "cogl/cogl-point-in-poly-private.h"
|
||||
#include "cogl/cogl-trace.h"
|
||||
#include "cogl/cogl-private.h"
|
||||
#include "cogl/cogl1-context.h"
|
||||
|
||||
@ -1381,6 +1382,8 @@ _cogl_journal_flush (CoglJournal *journal)
|
||||
"The time spent discarding the Cogl journal after a flush",
|
||||
0 /* no application private data */);
|
||||
|
||||
COGL_TRACE_BEGIN_SCOPED (Flush, "Cogl::Journal::flush()");
|
||||
|
||||
if (journal->entries->len == 0)
|
||||
{
|
||||
post_fences (journal);
|
||||
|
Loading…
Reference in New Issue
Block a user