X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwm_layer_control.hpp;h=df6c863911a40541cfc2a697a8544925dd5d599b;hb=2f2639950dec4b97984fd6776a850e5d4703ef52;hp=10b2082057958e3c3ec5deb16455fc793ed4a1b0;hpb=359f7cd7b49d714bc7cce3fc702c353455a5f168;p=apps%2Fagl-service-windowmanager.git diff --git a/src/wm_layer_control.hpp b/src/wm_layer_control.hpp index 10b2082..df6c863 100644 --- a/src/wm_layer_control.hpp +++ b/src/wm_layer_control.hpp @@ -44,7 +44,6 @@ class LayerControlCallbacks { LayerControlCallbacks(const LayerControlCallbacks &obj) = default; // callback functions - void test(unsigned i) { HMI_DEBUG("test %d", i); } std::function surfaceCreated; /* std::function surfaceDestroyed; std::function layerCreated; @@ -64,6 +63,8 @@ class LayerControl WMError init(const LayerControlCallbacks& cb); void createNewLayer(unsigned id); unsigned getNewLayerID(const std::string& role, std::string* layer_name); + std::shared_ptr getWMLayer(unsigned layer); + // std::shared_ptr getWMLayer(std::string layer_name); struct rect getAreaSize(const std::string& area); void setupArea(double scaling); Screen getScreenInfo(); @@ -74,6 +75,7 @@ class LayerControl // std::vector getRenderOrder(const std::string& layer_name); WMError updateLayer(LayerState& layer_state); WMError commitChange(); + // WMError renderWMLayers(); void undoUpdate(); WMError layoutChange(const WMAction& action); WMError visibilityChange(const WMAction &action); @@ -89,6 +91,7 @@ class LayerControl WMError loadAreaDb(const std::string& path); std::vector> wm_layers; + std::unordered_map lid2wmlid; std::unordered_map area2size; unsigned screenID; struct ilmScreenProperties screen_prop;