summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/vl/vl_compositor.c12
-rw-r--r--src/gallium/auxiliary/vl/vl_compositor.h6
2 files changed, 18 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/vl/vl_compositor.c b/src/gallium/auxiliary/vl/vl_compositor.c
index eac101f3aa7..ebe6d7ae45c 100644
--- a/src/gallium/auxiliary/vl/vl_compositor.c
+++ b/src/gallium/auxiliary/vl/vl_compositor.c
@@ -563,6 +563,18 @@ vl_compositor_set_clear_color(struct vl_compositor *c, float color[4])
}
void
+vl_compositor_get_clear_color(struct vl_compositor *c, float color[4])
+{
+ unsigned i;
+
+ assert(c);
+ assert(color);
+
+ for (i = 0; i < 4; ++i)
+ color[i] = c->clear_color[i];
+}
+
+void
vl_compositor_clear_layers(struct vl_compositor *c)
{
unsigned i, j;
diff --git a/src/gallium/auxiliary/vl/vl_compositor.h b/src/gallium/auxiliary/vl/vl_compositor.h
index 73d38c96ba8..0b9b9939a8c 100644
--- a/src/gallium/auxiliary/vl/vl_compositor.h
+++ b/src/gallium/auxiliary/vl/vl_compositor.h
@@ -113,6 +113,12 @@ void
vl_compositor_set_clear_color(struct vl_compositor *compositor, float color[4]);
/**
+ * get the clear color
+ */
+void
+vl_compositor_get_clear_color(struct vl_compositor *compositor, float color[4]);
+
+/**
* set overlay samplers
*/
/*@{*/