cogl: Inline _cogl_framebuffer_remove_all_dependencies into its one caller
https://gitlab.gnome.org/GNOME/mutter/merge_requests/1015
This commit is contained in:
parent
985b3b32ce
commit
640ad4718e
@ -278,9 +278,6 @@ void
|
||||
_cogl_framebuffer_add_dependency (CoglFramebuffer *framebuffer,
|
||||
CoglFramebuffer *dependency);
|
||||
|
||||
void
|
||||
_cogl_framebuffer_remove_all_dependencies (CoglFramebuffer *framebuffer);
|
||||
|
||||
void
|
||||
_cogl_framebuffer_flush_journal (CoglFramebuffer *framebuffer);
|
||||
|
||||
|
@ -571,16 +571,6 @@ _cogl_framebuffer_add_dependency (CoglFramebuffer *framebuffer,
|
||||
g_list_prepend (framebuffer->deps, cogl_object_ref (dependency));
|
||||
}
|
||||
|
||||
void
|
||||
_cogl_framebuffer_remove_all_dependencies (CoglFramebuffer *framebuffer)
|
||||
{
|
||||
GList *l;
|
||||
for (l = framebuffer->deps; l; l = l->next)
|
||||
cogl_object_unref (l->data);
|
||||
g_list_free (framebuffer->deps);
|
||||
framebuffer->deps = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
_cogl_framebuffer_flush_journal (CoglFramebuffer *framebuffer)
|
||||
{
|
||||
@ -593,7 +583,10 @@ _cogl_framebuffer_flush_dependency_journals (CoglFramebuffer *framebuffer)
|
||||
GList *l;
|
||||
for (l = framebuffer->deps; l; l = l->next)
|
||||
_cogl_framebuffer_flush_journal (l->data);
|
||||
_cogl_framebuffer_remove_all_dependencies (framebuffer);
|
||||
for (l = framebuffer->deps; l; l = l->next)
|
||||
cogl_object_unref (l->data);
|
||||
g_list_free (framebuffer->deps);
|
||||
framebuffer->deps = NULL;
|
||||
}
|
||||
|
||||
CoglOffscreen *
|
||||
|
Loading…
Reference in New Issue
Block a user