From: sunghyun kim Date: Fri, 24 Jun 2016 08:00:14 +0000 (+0900) Subject: [evas_gl] add partial_render_debug mode for debug X-Git-Tag: accepted/tizen/common/20160703.130317~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8a5919d275701ba807afb86ae7dc52e5a52b5f8;p=platform%2Fupstream%2Fefl.git [evas_gl] add partial_render_debug mode for debug if EVAS_GL_PARTIAL_DEBUG is set, add sky blue color rectangle before draw object. it is for debug. Change-Id: I5dad4970927d57ad191343fb2d9402a9c2e5cf18 --- diff --git a/src/lib/evas/canvas/evas_render.c b/src/lib/evas/canvas/evas_render.c index b73a644..710189c 100755 --- a/src/lib/evas/canvas/evas_render.c +++ b/src/lib/evas/canvas/evas_render.c @@ -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,