clutter: Make ClutterStageView API public to mutter

All subclasses and stage implementations will come from src/backends,
so this internal API must be accessible there.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1862>
This commit is contained in:
Carlos Garnacho 2021-05-10 16:16:15 +02:00
parent 5beba8b99b
commit dd9d40aedb
5 changed files with 13 additions and 1 deletions

View File

@ -34,7 +34,7 @@
#include "clutter-private.h" #include "clutter-private.h"
#include "clutter-stage-private.h" #include "clutter-stage-private.h"
#include "clutter-stage-view.h" #include "clutter-stage-view.h"
#include "cogl/clutter-stage-cogl.h" #include "clutter-stage-view-private.h"
#include "clutter/x11/clutter-backend-x11.h" #include "clutter/x11/clutter-backend-x11.h"
CLUTTER_EXPORT CLUTTER_EXPORT

View File

@ -214,9 +214,11 @@ void _clutter_util_fully_transform_vertices (const graphene_matrix_t *modelvie
graphene_point3d_t *vertices_out, graphene_point3d_t *vertices_out,
int n_vertices); int n_vertices);
CLUTTER_EXPORT
void _clutter_util_rect_from_rectangle (const cairo_rectangle_int_t *src, void _clutter_util_rect_from_rectangle (const cairo_rectangle_int_t *src,
graphene_rect_t *dest); graphene_rect_t *dest);
CLUTTER_EXPORT
void _clutter_util_rectangle_int_extents (const graphene_rect_t *src, void _clutter_util_rectangle_int_extents (const graphene_rect_t *src,
cairo_rectangle_int_t *dest); cairo_rectangle_int_t *dest);

View File

@ -34,6 +34,7 @@ G_BEGIN_DECLS
/* stage */ /* stage */
ClutterStageWindow *_clutter_stage_get_default_window (void); ClutterStageWindow *_clutter_stage_get_default_window (void);
CLUTTER_EXPORT
void clutter_stage_paint_view (ClutterStage *stage, void clutter_stage_paint_view (ClutterStage *stage,
ClutterStageView *view, ClutterStageView *view,
const cairo_region_t *redraw_clip); const cairo_region_t *redraw_clip);
@ -61,6 +62,7 @@ void _clutter_stage_get_viewport (ClutterStage
float *width, float *width,
float *height); float *height);
void _clutter_stage_dirty_viewport (ClutterStage *stage); void _clutter_stage_dirty_viewport (ClutterStage *stage);
CLUTTER_EXPORT
void _clutter_stage_maybe_setup_viewport (ClutterStage *stage, void _clutter_stage_maybe_setup_viewport (ClutterStage *stage,
ClutterStageView *view); ClutterStageView *view);
void clutter_stage_maybe_relayout (ClutterActor *stage); void clutter_stage_maybe_relayout (ClutterActor *stage);

View File

@ -21,9 +21,11 @@
#include "clutter/clutter-stage-view.h" #include "clutter/clutter-stage-view.h"
#include "clutter/clutter-types.h" #include "clutter/clutter-types.h"
CLUTTER_EXPORT
void clutter_stage_view_after_paint (ClutterStageView *view, void clutter_stage_view_after_paint (ClutterStageView *view,
cairo_region_t *redraw_clip); cairo_region_t *redraw_clip);
CLUTTER_EXPORT
void clutter_stage_view_before_swap_buffer (ClutterStageView *view, void clutter_stage_view_before_swap_buffer (ClutterStageView *view,
const cairo_region_t *swap_region); const cairo_region_t *swap_region);
@ -54,10 +56,13 @@ gboolean clutter_stage_view_has_redraw_clip (ClutterStageView *view);
const cairo_region_t * clutter_stage_view_peek_redraw_clip (ClutterStageView *view); const cairo_region_t * clutter_stage_view_peek_redraw_clip (ClutterStageView *view);
CLUTTER_EXPORT
cairo_region_t * clutter_stage_view_take_redraw_clip (ClutterStageView *view); cairo_region_t * clutter_stage_view_take_redraw_clip (ClutterStageView *view);
CLUTTER_EXPORT
CoglScanout * clutter_stage_view_take_scanout (ClutterStageView *view); CoglScanout * clutter_stage_view_take_scanout (ClutterStageView *view);
CLUTTER_EXPORT
void clutter_stage_view_transform_rect_to_onscreen (ClutterStageView *view, void clutter_stage_view_transform_rect_to_onscreen (ClutterStageView *view,
const cairo_rectangle_int_t *src_rect, const cairo_rectangle_int_t *src_rect,
int dst_width, int dst_width,
@ -67,9 +72,11 @@ void clutter_stage_view_transform_rect_to_onscreen (ClutterStageView
CLUTTER_EXPORT CLUTTER_EXPORT
void clutter_stage_view_schedule_update (ClutterStageView *view); void clutter_stage_view_schedule_update (ClutterStageView *view);
CLUTTER_EXPORT
void clutter_stage_view_notify_presented (ClutterStageView *view, void clutter_stage_view_notify_presented (ClutterStageView *view,
ClutterFrameInfo *frame_info); ClutterFrameInfo *frame_info);
CLUTTER_EXPORT
void clutter_stage_view_notify_ready (ClutterStageView *view); void clutter_stage_view_notify_ready (ClutterStageView *view);
#endif /* __CLUTTER_STAGE_VIEW_PRIVATE_H__ */ #endif /* __CLUTTER_STAGE_VIEW_PRIVATE_H__ */

View File

@ -88,6 +88,7 @@ void _clutter_stage_window_redraw_view (ClutterStageWin
ClutterStageView *view, ClutterStageView *view,
ClutterFrame *frame); ClutterFrame *frame);
CLUTTER_EXPORT
gboolean _clutter_stage_window_can_clip_redraws (ClutterStageWindow *window); gboolean _clutter_stage_window_can_clip_redraws (ClutterStageWindow *window);
GList * _clutter_stage_window_get_views (ClutterStageWindow *window); GList * _clutter_stage_window_get_views (ClutterStageWindow *window);