summaryrefslogtreecommitdiff
path: root/src/lib/evas/include/evas_common_private.h
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-09-24 14:06:40 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-09-24 14:09:20 +0900
commit217faeebe80db30fe2b2790493505391eeb62f99 (patch)
tree363140dde5338a272ff9555ccc93571e24dc3b70 /src/lib/evas/include/evas_common_private.h
parent49adf8aa47f37c41ee1fed288c828737104f1c5f (diff)
evas cutouts - optimize to use less cpu
this optimizes draw ctxt cutouts by skipping small ones and remembering the last cutout added so it isn't double-added as well as extending the minimum cutout array to 512 and going up in blocks of 512 instead of 128. also optimize the clipping code a bit more.
Diffstat (limited to 'src/lib/evas/include/evas_common_private.h')
-rw-r--r--src/lib/evas/include/evas_common_private.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/evas/include/evas_common_private.h b/src/lib/evas/include/evas_common_private.h
index c7ab1ba574..2c4234164e 100644
--- a/src/lib/evas/include/evas_common_private.h
+++ b/src/lib/evas/include/evas_common_private.h
@@ -427,7 +427,7 @@ typedef struct _RGBA_Font_Glyph RGBA_Font_Glyph;
427typedef struct _RGBA_Font_Glyph_Out RGBA_Font_Glyph_Out; 427typedef struct _RGBA_Font_Glyph_Out RGBA_Font_Glyph_Out;
428typedef struct _RGBA_Gfx_Compositor RGBA_Gfx_Compositor; 428typedef struct _RGBA_Gfx_Compositor RGBA_Gfx_Compositor;
429 429
430typedef struct _Cutout_Rect Cutout_Rect; 430typedef struct _Cutout_Rect Cutout_Rect;
431typedef struct _Cutout_Rects Cutout_Rects; 431typedef struct _Cutout_Rects Cutout_Rects;
432 432
433typedef struct _Convert_Pal Convert_Pal; 433typedef struct _Convert_Pal Convert_Pal;
@@ -706,9 +706,12 @@ struct _Cutout_Rect
706 706
707struct _Cutout_Rects 707struct _Cutout_Rects
708{ 708{
709 Cutout_Rect* rects; 709 Cutout_Rect *rects;
710 int active; 710 int active;
711 int max; 711 int max;
712 struct {
713 int x, w, y, h;
714 } last_add;
712}; 715};
713 716
714struct _Evas_Common_Transform 717struct _Evas_Common_Transform