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,
|
_cogl_framebuffer_add_dependency (CoglFramebuffer *framebuffer,
|
||||||
CoglFramebuffer *dependency);
|
CoglFramebuffer *dependency);
|
||||||
|
|
||||||
void
|
|
||||||
_cogl_framebuffer_remove_all_dependencies (CoglFramebuffer *framebuffer);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
_cogl_framebuffer_flush_journal (CoglFramebuffer *framebuffer);
|
_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));
|
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
|
void
|
||||||
_cogl_framebuffer_flush_journal (CoglFramebuffer *framebuffer)
|
_cogl_framebuffer_flush_journal (CoglFramebuffer *framebuffer)
|
||||||
{
|
{
|
||||||
@ -593,7 +583,10 @@ _cogl_framebuffer_flush_dependency_journals (CoglFramebuffer *framebuffer)
|
|||||||
GList *l;
|
GList *l;
|
||||||
for (l = framebuffer->deps; l; l = l->next)
|
for (l = framebuffer->deps; l; l = l->next)
|
||||||
_cogl_framebuffer_flush_journal (l->data);
|
_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 *
|
CoglOffscreen *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user