mirror of
https://github.com/brl/mutter.git
synced 2025-02-17 21:54:10 +00:00
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:
parent
1dbc9e868f
commit
572727e6e8
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user