photocam: fix late calculation when object is resized or moved 07/83607/1
authorWooHyun Jung <wh0705.jung@samsung.com>
Fri, 12 Aug 2016 03:59:16 +0000 (12:59 +0900)
committerWooHyun Jung <wh0705.jung@samsung.com>
Fri, 12 Aug 2016 03:59:16 +0000 (12:59 +0900)
This commit is merged from Tizen 2.4

@tizen_fix

Change-Id: I8859d242f543d29045be8e66ca8c074b034191e6

src/lib/elm_photocam.c

index 2c6e14e..b3cd504 100644 (file)
@@ -148,7 +148,10 @@ EOLIAN static void
 _elm_photocam_pan_evas_object_smart_move(Eo *obj EINA_UNUSED, Elm_Photocam_Pan_Data *psd, Evas_Coord x EINA_UNUSED, Evas_Coord y EINA_UNUSED)
 {
    ecore_job_del(psd->wsd->calc_job);
-   psd->wsd->calc_job = ecore_job_add(_calc_job_cb, psd->wobj);
+   //TIZEN ONLY (20150911): Many job based calculation should be fixed together in the upstream.
+   //psd->wsd->calc_job = ecore_job_add(_calc_job_cb, psd->wobj);
+   _calc_job_cb(psd->wobj);
+   ///
 }
 
 EOLIAN static void
@@ -161,7 +164,10 @@ _elm_photocam_pan_evas_object_smart_resize(Eo *obj, Elm_Photocam_Pan_Data *psd,
 
    psd->wsd->resized = EINA_TRUE;
    ecore_job_del(psd->wsd->calc_job);
-   psd->wsd->calc_job = ecore_job_add(_calc_job_cb, psd->wobj);
+   //TIZEN ONLY (20150911): Many job based calculation should be fixed together in the upstream.
+   //psd->wsd->calc_job = ecore_job_add(_calc_job_cb, psd->wobj);
+   _calc_job_cb(psd->wobj);
+   ///
 }
 
 // TIZEN_ONLY(20150813): make as a function for reusability