X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwayland.hpp;h=60a045bc3b91a81078d924b63d10ce3c20372df7;hb=88666c08dd76d09596aa9906f39d466c45d5979e;hp=9a5541d7242d47751aa0a9fbaa189582ef9fb242;hpb=ac5350e948b0ac44fd8055f5c88d8e4dc85435bb;p=staging%2Fwindowmanager.git diff --git a/src/wayland.hpp b/src/wayland.hpp index 9a5541d..60a045b 100644 --- a/src/wayland.hpp +++ b/src/wayland.hpp @@ -208,19 +208,9 @@ struct layer : public wayland_proxy, struct screen : public wayland_proxy, controller_child { screen(uint32_t i, struct controller *c, struct ivi_controller_screen *p); - - void clear() { ivi_controller_screen_clear(this->proxy); } - void add_layer(layer *l) { - ivi_controller_screen_add_layer(this->proxy, l->proxy); - } - void set_render_order(std::vector const &ro) { - struct wl_array wlro { - .size = ro.size() * sizeof(ro[0]), - .alloc = ro.capacity() * sizeof(ro[0]), - .data = const_cast(static_cast(ro.data())) - }; - ivi_controller_screen_set_render_order(this->proxy, &wlro); - } + void clear(); + void add_layer(layer *l); + void set_render_order(std::vector const &ro); }; // _ _ _ @@ -231,10 +221,11 @@ struct screen : public wayland_proxy, // struct controller : public wayland_proxy { std::unordered_map surface_proxy_to_id; - std::unordered_map> surfaces; std::unordered_map layer_proxy_to_id; - std::unordered_map> layers; std::unordered_map screen_proxy_to_id; + + std::unordered_map> surfaces; + std::unordered_map> layers; std::unordered_map> screens; typedef std::pair>