[mutter/gbsneto/expose-push-pop] paint-context: Expose push and pop framebuffer
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gbsneto/expose-push-pop] paint-context: Expose push and pop framebuffer
- Date: Tue, 3 Dec 2019 19:45:27 +0000 (UTC)
commit 0d1c18a4ce0f20beac9da0bcb009a620eb65c485
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Dec 3 16:41:34 2019 -0300
paint-context: Expose push and pop framebuffer
When rendering on-stage, it might be necessary to push offscreen
framebuffers to the paint context by external consumers, such as
GNOME Shell effects.
Expose clutter_paint_context_push|pop_framebuffer().
https://gitlab.gnome.org/GNOME/mutter/merge_requests/955
clutter/clutter/clutter-paint-context-private.h | 5 -----
clutter/clutter/clutter-paint-context.h | 7 +++++++
2 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/clutter/clutter/clutter-paint-context-private.h b/clutter/clutter/clutter-paint-context-private.h
index ba6b68927..6d2f0e92c 100644
--- a/clutter/clutter/clutter-paint-context-private.h
+++ b/clutter/clutter/clutter-paint-context-private.h
@@ -22,11 +22,6 @@
ClutterPaintContext * clutter_paint_context_new_for_view (ClutterStageView *view);
-void clutter_paint_context_push_framebuffer (ClutterPaintContext *paint_context,
- CoglFramebuffer *framebuffer);
-
-void clutter_paint_context_pop_framebuffer (ClutterPaintContext *paint_context);
-
gboolean clutter_paint_context_is_drawing_off_stage (ClutterPaintContext *paint_context);
CoglFramebuffer * clutter_paint_context_get_base_framebuffer (ClutterPaintContext *paint_context);
diff --git a/clutter/clutter/clutter-paint-context.h b/clutter/clutter/clutter-paint-context.h
index e7e52331a..59ce0fa45 100644
--- a/clutter/clutter/clutter-paint-context.h
+++ b/clutter/clutter/clutter-paint-context.h
@@ -52,4 +52,11 @@ CoglFramebuffer * clutter_paint_context_get_framebuffer (ClutterPaintContext *pa
CLUTTER_EXPORT
ClutterStageView * clutter_paint_context_get_stage_view (ClutterPaintContext *paint_context);
+CLUTTER_EXPORT
+void clutter_paint_context_push_framebuffer (ClutterPaintContext *paint_context,
+ CoglFramebuffer *framebuffer);
+
+CLUTTER_EXPORT
+void clutter_paint_context_pop_framebuffer (ClutterPaintContext *paint_context);
+
#endif /* CLUTTER_PAINT_CONTEXT_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]