Lines Matching +full:0 +full:- +full:987
2 From: Jeffy Chen <jeffy.chen@rock-chips.com>
6 Use '-w' or '--warm-up' to enable it.
8 Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
9 ---
15 diff --git a/compositor/main.c b/compositor/main.c
16 index d65f8aa..987c8f9 100644
17 --- a/compositor/main.c
19 @@ -677,6 +677,7 @@ usage(int error_code)
20 " -f, --flight-rec-scopes=SCOPE\n\t\t\tSpecify log scopes to "
23 + " -w, --warm-up\t\tHold display for the first app\n"
24 " -h, --help\t\tThis help message\n\n");
27 @@ -3581,6 +3582,8 @@ wet_main(int argc, char *argv[], const struct weston_testsuite_data *test_dat…
35 { WESTON_OPTION_STRING, "shell", 0, &shell },
36 @@ -3599,6 +3602,7 @@ wet_main(int argc, char *argv[], const struct weston_testsuite_data *test_dat…
37 { WESTON_OPTION_BOOLEAN, "debug", 0, &debug_protocol },
38 { WESTON_OPTION_STRING, "logger-scopes", 'l', &log_scopes },
39 { WESTON_OPTION_STRING, "flight-rec-scopes", 'f', &flight_rec_scopes },
40 + { WESTON_OPTION_BOOLEAN, "warm-up", 'w', &warm_up },
44 @@ -3785,6 +3789,7 @@ wet_main(int argc, char *argv[], const struct weston_testsuite_data *test_dat…
45 wet.compositor->idle_time = idle_time;
46 wet.compositor->default_pointer_grab = NULL;
47 wet.compositor->exit = handle_exit;
48 + wet.compositor->warm_up = warm_up;
52 diff --git a/include/libweston/libweston.h b/include/libweston/libweston.h
54 --- a/include/libweston/libweston.h
56 @@ -1340,6 +1340,8 @@ struct weston_compositor {
65 diff --git a/libweston/compositor.c b/libweston/compositor.c
67 --- a/libweston/compositor.c
69 @@ -179,6 +179,24 @@ weston_compositor_is_static_layer(struct weston_layer *layer)
79 + switch (layer->position) {
94 @@ -3234,7 +3252,14 @@ weston_compositor_build_view_list(struct weston_compositor *compositor,
95 wl_list_init(&compositor->view_list);
97 wl_list_for_each(layer, &compositor->layer_list, link) {
100 wl_list_for_each(view, &layer->view_list.link, layer_link.link) {
101 + if (compositor->warm_up && !system_layer) {
103 + compositor->warm_up = false;
109 @@ -3290,6 +3315,11 @@ weston_output_repaint(struct weston_output *output)
113 + if (ec->warm_up) {
115 + return -1;
119 wl_list_for_each(pnode, &output->paint_node_z_order_list,
121 --