Remove lm_release API
[apps/agl-service-windowmanager.git] / src / applist.cpp
index d3a839c..a5ae9f0 100644 (file)
@@ -111,7 +111,8 @@ void AppList::removeSurface(unsigned surface){
     {
         ret = x.second->removeSurfaceIfExist(surface);
         if(ret){
-            HMI_DEBUG("wm", "remove surface %d from Client %s finish", surface, x.second->appID().c_str());
+            HMI_DEBUG("wm", "remove surface %d from Client %s finish",
+                        surface, x.second->appID().c_str());
             break;
         }
     }
@@ -154,8 +155,8 @@ int AppList::countClient() const
  *
  * @param     unsigned[in] surfaceID
  * @param     string[in]   role
- * @param     bool[in,out] (key)
- * @return    WMClient object
+ * @param     bool[in,out] AppID is found or not
+ * @return    AppID
  * @attention If AppID is not found, param found will be false.
  */
 string AppList::getAppID(unsigned surface, const string& role, bool* found) const
@@ -225,7 +226,7 @@ unsigned AppList::getRequestNumber(const string &appid) const
  * @attention If the request number is different with curent request number,
  *            it means the previous request is not finished.
  */
-unsigned AppList::addAllocateRequest(WMRequest req)
+unsigned AppList::addRequest(WMRequest req)
 {
     std::lock_guard<std::mutex> lock(this->mtx);
     if (this->req_list.size() == 0)
@@ -400,6 +401,7 @@ bool AppList::setEndDrawFinished(unsigned req_num, const string &appid, const st
             {
                 if (y.appid == appid && y.role == role)
                 {
+                    HMI_SEQ_INFO(req_num, "Role %s finish redraw", y.role.c_str());
                     y.end_draw_finished = true;
                     result = true;
                 }
@@ -501,7 +503,7 @@ void AppList::reqDump()
     DUMP("current request : %d", current_req);
     for (const auto &x : req_list)
     {
-        DUMP("requested with  : %d", x.req_num);
+        DUMP("requested       : %d", x.req_num);
         DUMP("Trigger : (APPID :%s, ROLE :%s, AREA :%s, TASK: %d)",
              x.trigger.appid.c_str(),
              x.trigger.role.c_str(),
@@ -511,13 +513,14 @@ void AppList::reqDump()
         for (const auto &y : x.sync_draw_req)
         {
             DUMP(
-                "Action  : (APPID :%s, ROLE :%s, AREA :%s, END_DRAW_FINISHED: %d)",
+                "Action  : (APPID :%s, ROLE :%s, AREA :%s, VISIBLE : %s, END_DRAW_FINISHED: %d)",
                 y.appid.c_str(),
                 y.role.c_str(),
                 y.area.c_str(),
+                (y.visible == TaskVisible::INVISIBLE) ? "invisible" : "visible",
                 y.end_draw_finished);
         }
     }
-    DUMP("======= req dump end =====\n");
+    DUMP("======= req dump end =====");
 }
-} // namespace wm
\ No newline at end of file
+} // namespace wm