From b475f642d6a863a00502d0e5e0fc5308adcc72ea Mon Sep 17 00:00:00 2001 From: sunghyun kim Date: Wed, 23 Sep 2015 15:30:24 +0900 Subject: [PATCH] add Image rendering optimization in Optimizing Evas Change-Id: I3003c6587e1d162b13a17fce8c2e6884fec99e26 Signed-off-by: sunghyun kim --- .../html/native/efl/evas_optimization_n.htm | 44 +++++++++++++++++++++- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/org.tizen.ui.practices/html/native/efl/evas_optimization_n.htm b/org.tizen.ui.practices/html/native/efl/evas_optimization_n.htm index 61223fd..a71cb5f 100644 --- a/org.tizen.ui.practices/html/native/efl/evas_optimization_n.htm +++ b/org.tizen.ui.practices/html/native/efl/evas_optimization_n.htm @@ -27,6 +27,7 @@
  • Making an Object Invisible instead of Setting Alpha as 0
  • Using evas_object_image for Maximum Optimization
  • Setting the Parent to Avoid the Elementary Tree Reconstruction
  • +
  • Image rendering optimization via GL driver
  • Related Info

    Using a Rectangle Object instead of a Solid Color Image

    @@ -200,7 +202,45 @@ button = elm_button_add(box); - +

    Image rendering optimization via GL driver

    +

    For rendering performance, set hint 'EVAS_IMAGE_CONTENT_HINT_DYNAMIC' using evas_object_image_content_hint_set() function.

    + + + + + + + + + + + + + + + + + + +
    Before
    +
    +ad->img = evas_object_image_add(ad->conform);
    +
    +...
    +unsigned int *img_data; // image data pointer
    +img_data = evas_object_image_data_get(ad->img,EINA_TRUE);
    +// writing
    +evas_object_image_data_set(ad->img, img_data);
    +
    After
    +
    +ad->img = evas_object_image_add(ad->conform);
    +evas_object_image_content_hint_set(ad->img,EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
    +...
    +unsigned int *img_data; // image data pointer
    +img_data = evas_object_image_data_get(ad->img,EINA_TRUE);
    +// writing
    +evas_object_image_data_set(ad->img, img_data);
    +
    @@ -224,4 +264,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga - \ No newline at end of file + -- 2.7.4