From 0d1c18a4ce0f20beac9da0bcb009a620eb65c485 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Tue, 3 Dec 2019 16:41:34 -0300 Subject: 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 */ -- cgit v1.2.1