[mutter/gbsneto/content: 7/8] 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: 7/8] shaped-texture: Expose paint node function
- Date: Thu, 27 Dec 2018 16:27:50 +0000 (UTC)
commit 9b66067eab852749239562023271972efa5e663b
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 223a314e6..606418ac1 100644
--- a/src/compositor/meta-shaped-texture-private.h
+++ b/src/compositor/meta-shaped-texture-private.h
@@ -56,4 +56,10 @@ void meta_shaped_texture_get_scale (MetaShapedTexture *stex,
double *scale_x,
double *scale_y);
+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 95ed02f8a..6145805c6 100644
--- a/src/compositor/meta-shaped-texture.c
+++ b/src/compositor/meta-shaped-texture.c
@@ -1241,3 +1241,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]