diff options
author | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2019-12-03 16:41:34 -0300 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2019-12-03 16:41:34 -0300 |
commit | 0d1c18a4ce0f20beac9da0bcb009a620eb65c485 (patch) | |
tree | 00dd9684787b235505a727bf05d613bea358f690 | |
parent | 40205d8f1b4ce1017d2c749468377b65956a7eb9 (diff) | |
download | mutter-0d1c18a4ce0f20beac9da0bcb009a620eb65c485.tar.gz |
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
-rw-r--r-- | clutter/clutter/clutter-paint-context-private.h | 5 | ||||
-rw-r--r-- | 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 */ |