[evas_gl] add partial_render_debug mode for debug 62/76562/2
authorsunghyun kim <scholb.kim@samsung.com>
Fri, 24 Jun 2016 08:00:14 +0000 (17:00 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 30 Jun 2016 05:08:05 +0000 (22:08 -0700)
if EVAS_GL_PARTIAL_DEBUG is set, add sky blue color rectangle before draw object.
it is for debug.

Change-Id: I5dad4970927d57ad191343fb2d9402a9c2e5cf18

src/lib/evas/canvas/evas_render.c

index b73a644..710189c 100755 (executable)
@@ -183,6 +183,8 @@ _accumulate_time(double before, Eina_Bool async)
 #endif
 
 static int _render_busy = 0;
+//TIZEN_ONLY(20160624) : draw sky blue color bg before draw object. it is for debug.
+static int partial_render_debug=-1;
 
 static void
 _evas_render_cleanup(void)
@@ -2269,6 +2271,22 @@ evas_render_updates_internal_loop(Evas *eo_e, Evas_Public_Data *e,
         e->engine.func->context_color_set(e->engine.data.output,
                                           context,
                                           0, 0, 0, 0);
+        //TIZEN_ONLY(20160624) : draw sky blue color bg before draw object. it is for debug.
+        if (partial_render_debug == -1)
+          {
+             if (getenv("EVAS_GL_PARTIAL_DEBUG")) partial_render_debug = 1;
+             else partial_render_debug = 0;
+          }
+
+        if(partial_render_debug==1)
+          {
+             INF("[EVAS_GL_PARTIAL_DEBUG] mode is ON . change default clear color to sky blue. ");
+             e->engine.func->context_color_set(e->engine.data.output,
+                                          context,
+                                          50, 128, 255, 255);
+          }
+        //
+
         e->engine.func->context_multiplier_unset
           (e->engine.data.output, e->engine.data.context);
         e->engine.func->context_render_op_set(e->engine.data.output,