mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 09:00:42 -05:00
1c98f01a65
Prior to this commit the stage was drawn separately for each logical monitor. This allowed to draw different parts of the stage with different transformations, e.g. with a different viewport to implement HiDPI support. Go even further and have one view per CRTC. This causes the stage to e.g. draw two mirrored monitors twice, instead of using the same framebuffer on both. This enables us to do two things: one is to support tiled monitors and monitor mirroring using the EGLStreams backend; the other is that it'll enable us to tie rendering directly to the CRTC it will render for. It is also a requirement for rendering being affected by CRTC state, such as gamma. It'll be possible to still inhibit re-drawing of the same content twice, but it should be implemented differently, so that it will still be possible to implement features requiring the CRTC split. https://gitlab.gnome.org/GNOME/mutter/merge_requests/1042
32 lines
1.2 KiB
C
32 lines
1.2 KiB
C
/*
|
|
* Copyright (C) 2016 Red Hat Inc.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef META_RENDERER_VIEW_H
|
|
#define META_RENDERER_VIEW_H
|
|
|
|
#include "backends/meta-monitor-manager-private.h"
|
|
#include "clutter/clutter-mutter.h"
|
|
|
|
#define META_TYPE_RENDERER_VIEW (meta_renderer_view_get_type ())
|
|
G_DECLARE_FINAL_TYPE (MetaRendererView, meta_renderer_view,
|
|
META, RENDERER_VIEW,
|
|
ClutterStageViewCogl)
|
|
|
|
MetaMonitorTransform meta_renderer_view_get_transform (MetaRendererView *view);
|
|
|
|
#endif /* META_RENDERER_VIEW_H */
|