diff options
author | Cedric BAIL <cedric.bail@free.fr> | 2012-07-04 09:39:23 +0000 |
---|---|---|
committer | Cedric BAIL <cedric.bail@free.fr> | 2012-07-04 09:39:23 +0000 |
commit | 1d415b796bf0f506ef7888195faa8ec0ed1f0d06 (patch) | |
tree | 7b79753ca57cf5d98c831f19609fccc6749aa214 /legacy/evas/src/lib/engines/common_8/evas_soft8_rectangle.c | |
parent | 5ef3b00eaf4886d130dfd938354abbc7a8e5a702 (diff) |
evas: add more infrastructure to the prepare stage of pipe rendering.
NOTE: this improve some test by 10 to 15% some other are down by 5%.
Their is still more tunning and improvement possible now (Particularly
with Map), but it will do for now.
SVN revision: 73264
Diffstat (limited to '')
-rw-r--r-- | legacy/evas/src/lib/engines/common_8/evas_soft8_rectangle.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/legacy/evas/src/lib/engines/common_8/evas_soft8_rectangle.c b/legacy/evas/src/lib/engines/common_8/evas_soft8_rectangle.c index 150f262e8e..98a053bb81 100644 --- a/legacy/evas/src/lib/engines/common_8/evas_soft8_rectangle.c +++ b/legacy/evas/src/lib/engines/common_8/evas_soft8_rectangle.c | |||
@@ -79,8 +79,8 @@ void | |||
79 | evas_common_soft8_rectangle_draw(Soft8_Image * dst, RGBA_Draw_Context * dc, | 79 | evas_common_soft8_rectangle_draw(Soft8_Image * dst, RGBA_Draw_Context * dc, |
80 | int x, int y, int w, int h) | 80 | int x, int y, int w, int h) |
81 | { | 81 | { |
82 | static Cutout_Rects *rects = NULL; | ||
82 | Eina_Rectangle dr; | 83 | Eina_Rectangle dr; |
83 | Cutout_Rects *rects; | ||
84 | Cutout_Rect *r; | 84 | Cutout_Rect *r; |
85 | struct RGBA_Draw_Context_clip c_bkp; | 85 | struct RGBA_Draw_Context_clip c_bkp; |
86 | int i; | 86 | int i; |
@@ -113,13 +113,12 @@ evas_common_soft8_rectangle_draw(Soft8_Image * dst, RGBA_Draw_Context * dc, | |||
113 | dc->clip = c_bkp; | 113 | dc->clip = c_bkp; |
114 | return; | 114 | return; |
115 | } | 115 | } |
116 | rects = evas_common_draw_context_apply_cutouts(dc); | 116 | rects = evas_common_draw_context_apply_cutouts(dc, rects); |
117 | for (i = 0; i < rects->active; ++i) | 117 | for (i = 0; i < rects->active; ++i) |
118 | { | 118 | { |
119 | r = rects->rects + i; | 119 | r = rects->rects + i; |
120 | evas_common_draw_context_set_clip(dc, r->x, r->y, r->w, r->h); | 120 | evas_common_draw_context_set_clip(dc, r->x, r->y, r->w, r->h); |
121 | _soft8_rectangle_draw_int(dst, dc, dr); | 121 | _soft8_rectangle_draw_int(dst, dc, dr); |
122 | } | 122 | } |
123 | evas_common_draw_context_apply_clear_cutouts(rects); | ||
124 | dc->clip = c_bkp; | 123 | dc->clip = c_bkp; |
125 | } | 124 | } |