backend: Add meta_overlay_copy()

This function will be useful to transfer an overlay so it can be
temporarily rendered differently. Will be mainly useful for DnD
animations.
This commit is contained in:
Carlos Garnacho 2014-09-30 16:51:30 +02:00
parent 1dbc9e868f
commit 572727e6e8

View File

@ -55,6 +55,15 @@ meta_overlay_init (MetaOverlay *overlay)
overlay->pipeline = cogl_pipeline_new (ctx);
}
static void
meta_overlay_copy (MetaOverlay *src,
MetaOverlay *dst)
{
*dst = *src;
dst->pipeline = cogl_pipeline_copy (src->pipeline);
dst->texture = src->texture;
}
static void
meta_overlay_free (MetaOverlay *overlay)
{