bug fix: The error of thumbnail of a share memory buffer is not retried 30/32130/1
authorRyota Okubi <ryota.okubi@mail.toyota-td.jp>
Tue, 16 Dec 2014 04:34:40 +0000 (13:34 +0900)
committerRyota Okubi <ryota.okubi@mail.toyota-td.jp>
Tue, 16 Dec 2014 04:42:29 +0000 (13:42 +0900)
Change-Id: Ifd88b972896c8ba80eab78b43604db778ce602cc
Signed-off-by: Ryota Okubi <ryota.okubi@mail.toyota-td.jp>
src/homescreen/CicoHSMenuTile.cpp
src/homescreen/CicoHSMenuTile.h
src/homescreen/CicoHomeScreen.cpp

index 8d23efe..21df4e6 100644 (file)
@@ -806,9 +806,13 @@ CicoHSMenuTile::SetThumbnail(ico_syc_thumb_info_t *info)
         icon = tile;
         if (thumb.thumb_timer)  {
             ecore_timer_del(thumb.thumb_timer);
+            thumb.thumb_timer = NULL;
+        }
+        if ((info == NULL) || (info->type != ICO_HS_MAP_ERROR_SHBUF))   {
+            thumb.thumb_timer = ecore_timer_add(ICO_HS_MENUTILE_THUMBNAIL_RETRYTIME,
+                                                CicoHSMenuTile::TimerThumbnail,
+                                                (void *)this);
         }
-        thumb.thumb_timer = ecore_timer_add(ICO_HS_MENUTILE_THUMBNAIL_RETRYTIME,
-                                            CicoHSMenuTile::TimerThumbnail, (void *)this);
     }
 
     if (icon != old_icon)   {
index f95f184..16213aa 100644 (file)
@@ -76,7 +76,7 @@
 #define ICO_HS_MENUTILE_TERM_ICON_WIDTH 64
 #define ICO_HS_MENUTILE_TERM_ICON_HEIGHT 64
 
-#define ICO_HS_MENUTILE_THUMBNAIL_FPS_SHOW      15          /* 15 frames/sec        */
+#define ICO_HS_MENUTILE_THUMBNAIL_FPS_SHOW      4           /* 4 frames/sec         */
 #define ICO_HS_MENUTILE_THUMBNAIL_FPS_HIDE      -1          /* meanse 'not update'  */
 #define ICO_HS_MENUTILE_THUMBNAIL_REDUCE_PIX    4
 #define ICO_HS_MENUTILE_THUMBNAIL_REDUCE_PIX2   6
@@ -104,6 +104,8 @@ struct _CicoHSMenuTile_thumb {
     int         orgsurface;             // original surface id
 };
 
+#define ICO_HS_MAP_ERROR_SHBUF  4       /* error core of map shared buffer  */
+
 class CicoHSMenuTile
 {
   public:
index 10ff2d4..b1f7d5a 100644 (file)
@@ -1129,9 +1129,12 @@ CicoHomeScreen::EventCallBack(const ico_syc_ev_e event,
                     "no appinfo", thumb_info->appid, thumb_info->surface);
             return;
         }
-        ICO_DBG("CicoHomeScreen::EventCallBack : ICO_SYC_EV_THUMB_UNMAP %s(%02x)",
-                thumb_info->appid, thumb_info->surface);
-        hs_instance->menu_window->SetThumbnail(thumb_info->appid, NULL);
+        ICO_DBG("CicoHomeScreen::EventCallBack : ICO_SYC_EV_THUMB_UNMAP %s(%02x) %x",
+                thumb_info->appid, thumb_info->surface, thumb_info->type);
+        ico_syc_thumb_info_t    wrk_info;
+        wrk_info.surface = 0;
+        wrk_info.type = thumb_info->type;
+        hs_instance->menu_window->SetThumbnail(thumb_info->appid, &wrk_info);
     }
     else if (event == ICO_SYC_EV_THUMB_ERROR)  {
         ico_syc_thumb_info_t *thumb_info =