From bab45b85378956689b169702906b73359cee9f37 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Tue, 29 May 2018 11:21:15 +0900 Subject: [PATCH] evas gl: update example code for better user understanding. --- src/examples/evas/evas-gl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/examples/evas/evas-gl.c b/src/examples/evas/evas-gl.c index 81601dc0c8..3694d3c9bc 100644 --- a/src/examples/evas/evas-gl.c +++ b/src/examples/evas/evas-gl.c @@ -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; }