evas gl: update example code for better user understanding.

This commit is contained in:
Hermet Park 2018-05-29 11:21:15 +09:00
parent 843850154d
commit bab45b8537
1 changed files with 6 additions and 0 deletions

View File

@ -338,6 +338,12 @@ _animator_cb(void *data)
//pixel get callback then.
evas_object_image_pixels_dirty_set(img, EINA_TRUE);
//If you know the specific region to be updated, specify here for the patial rendering.
//Otherwise, full image region will be redrawn on the canvas.
Evas_Coord w, h;
evas_object_geometry_get(img, NULL, NULL, &w, &h);
evas_object_image_data_update_add(img, 0, 0, w, h);
return ECORE_CALLBACK_RENEW;
}