renderer-view: Add view transform getter

This will later be used by the nested backend to emulate per CRTC
rendering.

https://bugzilla.gnome.org/show_bug.cgi?id=777732
This commit is contained in:
Jonas Ådahl 2017-03-17 16:38:36 +08:00
parent d38c4c1f2d
commit 8a29c51b73
2 changed files with 8 additions and 0 deletions

View File

@ -51,6 +51,12 @@ meta_renderer_view_get_logical_monitor (MetaRendererView *view)
return view->logical_monitor; return view->logical_monitor;
} }
MetaMonitorTransform
meta_renderer_view_get_transform (MetaRendererView *view)
{
return view->transform;
}
static void static void
meta_renderer_view_get_offscreen_transformation_matrix (ClutterStageView *view, meta_renderer_view_get_offscreen_transformation_matrix (ClutterStageView *view,
CoglMatrix *matrix) CoglMatrix *matrix)

View File

@ -28,4 +28,6 @@ G_DECLARE_FINAL_TYPE (MetaRendererView, meta_renderer_view,
MetaLogicalMonitor *meta_renderer_view_get_logical_monitor (MetaRendererView *view); MetaLogicalMonitor *meta_renderer_view_get_logical_monitor (MetaRendererView *view);
MetaMonitorTransform meta_renderer_view_get_transform (MetaRendererView *view);
#endif /* META_RENDERER_VIEW_H */ #endif /* META_RENDERER_VIEW_H */