[mutter/gbsneto/content: 107/111] shaped-texture: Expose paint node function
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gbsneto/content: 107/111] shaped-texture: Expose paint node function
- Date: Wed, 23 Jan 2019 15:55:50 +0000 (UTC)
commit 9c5b12ae5e4dd6a464b206d4881a1791c2a44c02
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Dec 27 14:17:30 2018 -0200
shaped-texture: Expose paint node function
WIP
src/compositor/meta-shaped-texture-private.h | 6 ++++++
src/compositor/meta-shaped-texture.c | 15 +++++++++++++++
2 files changed, 21 insertions(+)
---
diff --git a/src/compositor/meta-shaped-texture-private.h b/src/compositor/meta-shaped-texture-private.h
index f926a272c..b8b68cda1 100644
--- a/src/compositor/meta-shaped-texture-private.h
+++ b/src/compositor/meta-shaped-texture-private.h
@@ -53,4 +53,10 @@ void meta_shaped_texture_set_scale (MetaShapedTexture *stex,
double scale);
double meta_shaped_texture_get_scale (MetaShapedTexture *stex);
+void _meta_shaped_texture_paint_node (MetaShapedTexture *stex,
+ ClutterPaintNode *root_node,
+ ClutterActorBox *box,
+ double tex_scale,
+ guchar opacity);
+
#endif
diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c
index f7a25aae7..92bee5c2b 100644
--- a/src/compositor/meta-shaped-texture.c
+++ b/src/compositor/meta-shaped-texture.c
@@ -1630,3 +1630,18 @@ meta_shaped_texture_reset_culling (MetaShapedTexture *stex)
set_clip_region (stex, NULL);
}
+
+void
+_meta_shaped_texture_paint_node (MetaShapedTexture *stex,
+ ClutterPaintNode *root_node,
+ ClutterActorBox *box,
+ double tex_scale,
+ guchar opacity)
+{
+ g_return_if_fail (META_IS_SHAPED_TEXTURE (stex));
+
+ if (!stex->texture)
+ return;
+
+ do_paint_content (stex, root_node, stex->texture, box, tex_scale, opacity);
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]