X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fapp.hpp;h=80a9142501ce5eeb8888f86de254f3dfc6ae3872;hb=8f32cd03059507c6b5bf3d26aaeb851c21d0437e;hp=ded952a68011fb22c88084e0ed781ff41e8273ce;hpb=bbf684fb596414141190958dbd0b0abcc0f7f6d3;p=apps%2Fagl-service-windowmanager.git diff --git a/src/app.hpp b/src/app.hpp index ded952a..80a9142 100644 --- a/src/app.hpp +++ b/src/app.hpp @@ -76,7 +76,6 @@ struct id_allocator // Surfaces that where requested but not yet created std::unordered_map id2name; - // std::unordered_set pending_surfaces; std::unordered_map name2id; id_allocator(id_allocator const &) = delete; @@ -89,7 +88,6 @@ struct id_allocator { unsigned sid = this->next++; this->id2name[sid] = name; - // this->pending_surfaces.insert({sid}); this->name2id[name] = sid; HMI_DEBUG("wm", "allocated new id %u with name %s", sid, name.c_str()); return sid; @@ -192,8 +190,6 @@ struct App // Set by AFB API when wayland events need to be dispatched std::atomic pending_events; - std::vector pending_end_draw; - Policy policy; std::map map_afb_event; @@ -246,9 +242,6 @@ struct App bool pop_pending_events(); - void enqueue_flushdraw(int surface_id); - void check_flushdraw(int surface_id); - int init_layers(); void surface_set_layout(int surface_id, const std::string& area = ""); @@ -277,8 +270,7 @@ struct App WMError setSurfaceSize(unsigned surface, const std::string& area); WMError changeCurrentState(unsigned req_num); - void - setTimer(); + void setTimer(); void stopTimer(); void processNextRequest(); @@ -286,16 +278,8 @@ struct App void activate(int id); void deactivate(int id); - void deactivate_main_surface(); bool can_split(struct LayoutState const &state, int new_id); - void try_layout(struct LayoutState &state, - struct LayoutState const &new_layout, - std::function apply); - - // The following function is temporary. - // Then will be removed when layermanager is finished - WMError lm_release(const struct WMAction &action); private: std::unordered_map area2size;