summaryrefslogtreecommitdiff
path: root/src/lib/evas/include/evas_common_private.h
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-11-16 16:05:56 -0800
committerCedric BAIL <cedric@osg.samsung.com>2016-11-16 16:05:56 -0800
commit53dd596f437ae53b96d746f0a5cf0963642f76ad (patch)
treedeb3ea334fb4f5e5a2dfc0fb88c81e092f973a07 /src/lib/evas/include/evas_common_private.h
parent0b6e04d94fc3ff6447b6fbf0fcdbdd8b6958e621 (diff)
evas: reduce usage of __thread directive.
Moved rects caching into draw context to avoid the use of __thread slot. Draw context are defined per thread anyway and should be just fine. This doesn't really change the picture regarding glibc problem when to many __thread are needed, but slightly improve the global picture. Also this patch doesn't affect our performance in expedite benchmark as far as I can tell.
Diffstat (limited to 'src/lib/evas/include/evas_common_private.h')
-rw-r--r--src/lib/evas/include/evas_common_private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/evas/include/evas_common_private.h b/src/lib/evas/include/evas_common_private.h
index 07ff291761..c0df4ce12d 100644
--- a/src/lib/evas/include/evas_common_private.h
+++ b/src/lib/evas/include/evas_common_private.h
@@ -757,6 +757,10 @@ struct _RGBA_Draw_Context
757 } clip; 757 } clip;
758 Cutout_Rects cutout; 758 Cutout_Rects cutout;
759 struct { 759 struct {
760 Cutout_Rects *rects;
761 int used;
762 } cache;
763 struct {
760 struct { 764 struct {
761 void *(*gl_new) (void *data, RGBA_Font_Glyph *fg); 765 void *(*gl_new) (void *data, RGBA_Font_Glyph *fg);
762 void (*gl_free) (void *ext_dat); 766 void (*gl_free) (void *ext_dat);