crtc: Move all_transforms field into instance private
Now set as a property during construction. Only actually set by the Xrandr backend, as it's the only one currently not supporting all transforms, which is the default. While at it, move the 'ALL_TRANFORMS' macro to meta-monitor-tranforms.h. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1287
This commit is contained in:

committed by
Georges Basile Stavracas Neto

parent
1406348be4
commit
c3fc6025b1
@ -31,7 +31,6 @@
|
||||
#include "tests/test-utils.h"
|
||||
#include "wayland/meta-wayland.h"
|
||||
|
||||
#define ALL_TRANSFORMS ((1 << (META_MONITOR_TRANSFORM_FLIPPED_270 + 1)) - 1)
|
||||
#define FRAME_WARNING "Frame has assigned frame counter but no frame drawn time"
|
||||
|
||||
static gboolean
|
||||
@ -143,7 +142,6 @@ meta_test_headless_monitor_connect (void)
|
||||
"id", 1,
|
||||
"gpu", gpu,
|
||||
NULL);
|
||||
crtc->all_transforms = ALL_TRANSFORMS;
|
||||
test_setup->crtcs = g_list_append (NULL, crtc);
|
||||
|
||||
modes = g_new0 (MetaCrtcMode *, 1);
|
||||
|
@ -576,7 +576,6 @@ create_monitor_test_setup (MonitorTestCaseSetup *setup,
|
||||
"id", i + 1,
|
||||
"gpu", test_get_gpu (),
|
||||
NULL);
|
||||
crtc->all_transforms = ALL_TRANSFORMS;
|
||||
|
||||
test_setup->crtcs = g_list_append (test_setup->crtcs, crtc);
|
||||
}
|
||||
|
@ -26,8 +26,6 @@
|
||||
#include "backends/meta-crtc.h"
|
||||
#include "backends/meta-output.h"
|
||||
|
||||
#define ALL_TRANSFORMS ((1 << (META_MONITOR_TRANSFORM_FLIPPED_270 + 1)) - 1)
|
||||
|
||||
#define MAX_N_MODES 10
|
||||
#define MAX_N_OUTPUTS 10
|
||||
#define MAX_N_CRTCS 10
|
||||
|
Reference in New Issue
Block a user