Commit Graph

522 Commits

Author SHA1 Message Date
Cedric BAIL 0a5c65549a * evas: font config access is not thread safe at all. Don't forget
to call FTLOCK/FTUNLOCK around each FT_* call.


SVN revision: 50379
2010-07-20 12:09:46 +00:00
Cedric BAIL 8006ed3753 * evas: METRIC and WORD cache require stringshare use in thread, so
enable it.


SVN revision: 50378
2010-07-20 12:07:51 +00:00
Cedric BAIL 8bd358c65e * evas: unbreak pipe rendering, that was a long break.
SVN revision: 50374
2010-07-20 09:32:28 +00:00
Gustavo Sverzut Barbieri 7521047f09 Fix invalid access if using async-render
Ouch, that was nasty! src/lib/cache/evas_cache_image.c was assuming
all Image_Entry were RGBA_Image (why?!?!?), thus doing the cast and
having mutexes and other to operate on garbage (possibly crashing due
segv). This happened to be the case with Soft16_Image used by
software_16 engines.

I'm not sure, but this may fix problems that people noticed with
async-render hanging their systems even if not explicitly enabled
during runtime.

I also found it quite strange the number of locks required by this
code! Clearly we could use macros to simplify and avoid bugs, but
maybe some atomic_inc/dec code should be used to remove half of the
mutexes in that code?

/me wonders what kinds of bug more we can expect from this code :-/



SVN revision: 50300
2010-07-16 22:52:04 +00:00
Eduardo de Barros Lima 9b3cf97523 Ability to disable NEON code in runtime
Just set the EVAS_CPU_NO_NEON environment var if you want to disable Neon.
The same is done for other specific CPU codes, such as MMX, MMX2, SSE, etc.



SVN revision: 50271
2010-07-15 17:58:38 +00:00
Brett Nash 8dfc47998e Add more control over word-cache size. Also really fix my leak on international text.
The new wordcache option is an environment variable called:
	EVAS_WORD_CACHE_MAX_WORDS
set this to a number between 1-500 to change the cache size.

Larger values (40+) fix regressions in a few of the expedite tests.



SVN revision: 50047
2010-07-05 06:40:20 +00:00
Brett Nash daa5685bd3 Don't check alloca, it's like checking the stack exists.
SVN revision: 49991
2010-07-02 08:31:12 +00:00
Brett Nash 0227f22ad7 Some fixes for internation support and word cache
SVN revision: 49990
2010-07-02 07:05:20 +00:00
Brett Nash 59bbcfbb8a Put a FIXME where someone doesn't understand alloca.
SVN revision: 49989
2010-07-02 06:53:41 +00:00
Brett Nash b304ae1642 Only use work and metric cacheing on 3 character or longer strings.
SVN revision: 49988
2010-07-02 06:47:22 +00:00
Brett Nash ac552cd762 Renable 'free' for word cache
SVN revision: 49986
2010-07-02 02:20:11 +00:00
Tom Hacohen 3e2b214065 evas: Removed the obsolete Arabic shaping as it's now done in FrBiDi (starting from version 0.19.2).
If you are having any problems with Arabic shaping please make sure you have FriBiDi version 0.19.2 installed at the time of compilation. If your distro doesn't have that version yet, make them upgrade, it's an year and a half old.

SVN revision: 49949
2010-06-30 16:51:49 +00:00
Brett Nash 13fcfaa5a1 Neon fixes for text rendering
SVN revision: 49917
2010-06-28 05:21:34 +00:00
Brett Nash 5710adfa7b whitespace --
SVN revision: 49916
2010-06-28 05:21:05 +00:00
Brett Nash 22e2ac921c Fic names of caching vars.
SVN revision: 49854
2010-06-25 08:52:37 +00:00
Carsten Haitzler a08e99cd82 warnings--
SVN revision: 49765
2010-06-20 06:32:05 +00:00
Brett Nash 4d591c3148 Some more Neon updates: 180 degress.
SVN revision: 49692
2010-06-16 09:02:09 +00:00
Brett Nash 725e12bdfa Don't double declare len
SVN revision: 49663
2010-06-14 08:16:47 +00:00
Brett Nash c410401441 Remoive extra #endif
SVN revision: 49662
2010-06-14 08:07:12 +00:00
Brett Nash 02f204b84c Add experimental word and metric caching.
SVN revision: 49661
2010-06-14 05:59:23 +00:00
Cedric BAIL 5685faac42 * evas: make it possible to call unload_all from surface_alloc.
SVN revision: 49448
2010-06-04 15:21:12 +00:00
Carsten Haitzler 3a5502362e fix valgrind complaint - indeed corner case.
SVN revision: 49414
2010-06-03 14:02:46 +00:00
Carsten Haitzler 3b8ae6502a ooh and also lkd - just to be clean.
SVN revision: 49346
2010-05-31 03:40:48 +00:00
Carsten Haitzler 77123462e1 now that header was a mess - and this wasnt using the same lock! bad
bad!



SVN revision: 49345
2010-05-31 03:31:49 +00:00
Carsten Haitzler 9621532945 trga loader - snarfed 80% from imlib2. missing paletted mode (just
like the imlib2 one) but.. handles alpha correctly- unlike imlib2 and
manyother loaders.



SVN revision: 49330
2010-05-30 17:48:19 +00:00
Carsten Haitzler 6f6730eaf8 for shits and giggles... i wrote a bmp loader. i did look at the old
imlib2 bmp loader, but it was imcomplete compared to the bmp
standards, so i actually ended up reading the file format definitions
on line i could find and using lots of test images... wrote a new one.
you can at least view bmp files now. note - i found 1 bmp file that
claims to have an alpha channel (amask is non-empty) and then proceeds
to provide an image with pixels - all alpha 0. so its transparent when
it shouldnt be. beats me but looks like a broken bmp file to me when
it compes to specs.



SVN revision: 49324
2010-05-30 13:04:34 +00:00
Brett Nash 285d1558ae Fix buggy arm ldr instruction.
The size suffixes are apparetly allowed only on neon instructions.
Thanks to Ben Zores for the bug report + testing.


SVN revision: 49174
2010-05-24 02:16:14 +00:00
Gustavo Sverzut Barbieri 446b0040a4 make it easier to debug if it was enabled, and how :-)
minor style fixes.



SVN revision: 49100
2010-05-21 14:14:54 +00:00
Carsten Haitzler eaad0eb095 big patch from Samsung SAIT (Advanced research group) for async multi-frame
rendering. to turn on:

1.
configure with --enable-async-render
2.
export EVAS_RENDER_MODE=non-blocking
  
presto. necessitates some api swizzling (thus the expedite. ecore etc. changes)

the kind of results you get on a desktop:

http://www.rasterman.com/files/evas-async-vs-none.html



SVN revision: 49087
2010-05-21 07:10:45 +00:00
Brett Nash 5259fb8d83 BUILD_NEON, not BUILD_NEONx
/me kicks me for commiting debugging code.


SVN revision: 49000
2010-05-19 09:03:46 +00:00
Brett Nash 0a18dc2c93 Neonized rotated 90 display for ARMs.
Share and enjoy.
See my previous neon related commit for more details.


SVN revision: 48999
2010-05-19 08:52:29 +00:00
Carsten Haitzler cedba3f7d9 handle gl init fialure correctly and dont mess up font init.
SVN revision: 48959
2010-05-18 04:22:33 +00:00
Brett Nash bd6b2d5cb1 Neon improvements for ARM Cortex.
Samsung Electronics just allowed me to release the first set of ARM neon
patches under the Evas licence.  They are silently helping improve EFL and
this another product of their help.

These patches have been tested on a Cortex A8 and show consistent improvement
across the board.  For expedite some tests up to 100% improvements, and
practical real world examples show that rendering limited applications show
similar improvements.  For instance in one application from 17fps->30fps or
for another 40->63fps.

The patches are pure neon code (intrinsics tend to generate worse code).  To
build under GCC you will need a recent GCC and the following C flags:
	-mfloat-abi=softfp -mfpu=neon
I also recommend -O2 and -ffast-math.

If you have any problems please let me know.


SVN revision: 48733
2010-05-10 09:24:11 +00:00
Carsten Haitzler 15b7e11198 hmm - i don't know how this happened, but - metrics were not being done
right. fixed now. i wonder why. this used to be right at some point.



SVN revision: 48503
2010-05-01 14:08:14 +00:00
Carsten Haitzler c10f1e9c5d fix map rendering of text objects.
SVN revision: 48501
2010-05-01 13:27:05 +00:00
Carsten Haitzler d37f08a616 adding... items... oooooh what are these items? invisible sized blobs treated
like characters/words for wrapping. intended for use in sticking inlined
content - like icons, images etc.



SVN revision: 48301
2010-04-25 11:35:41 +00:00
Carsten Haitzler 58c7049da8 allow neon build even if not armv4 - eg build for armv6 but add neon asm as a
"check if its there then use it" ala mmx/sse as opposed to require it all be
neon armv7 stuff ffor neon to work.



SVN revision: 48044
2010-04-16 00:13:46 +00:00
Carsten Haitzler a6e4ee23f5 oops. fix scalecache issue - would do a LOT of unload/reload thanks to extra
dump code. moved into dump code as opposed to unload.



SVN revision: 47982
2010-04-13 03:00:29 +00:00
Carsten Haitzler afe65d7c0a add ability to dump engine coontents (if engine supports it). this means
unload images it has loaded from disk, unload fonts, and more. dump dump dump!



SVN revision: 47947
2010-04-12 08:23:53 +00:00
Vincent Torri 57c16867e2 remove unused variable
SVN revision: 47840
2010-04-08 17:41:18 +00:00
Vincent Torri 438f002794 use float constants instead of double as computations
are done on float numbers


SVN revision: 47839
2010-04-08 17:41:00 +00:00
Cedric BAIL 3d27a7b9e4 * evas: improve thread rendering by moving image loading in worker thread.
SVN revision: 47434
2010-03-24 19:07:59 +00:00
Cedric BAIL 1a51c662bf * evas: make map work with threaded rendering.
SVN revision: 47429
2010-03-24 16:39:39 +00:00
Cedric BAIL f715c8584d * evas: fix uncertain lock. It's look like it improve perf here without breaking things.
SVN revision: 47428
2010-03-24 14:55:37 +00:00
Cedric BAIL 80901b0abe * evas: fix build with thread rendering on and scale cache off.
SVN revision: 47427
2010-03-24 14:46:28 +00:00
Cedric BAIL 31d6a2e21c * evas: remove lock during heavy computation.
FIXME: Still one at line 685, but don't know if it's safe to move it around.

	TODO: Fix map support with threaded rendering.


SVN revision: 47426
2010-03-24 14:45:58 +00:00
Cedric BAIL 6549ab12ce * evas: fix potential race condition with FT_Activate_Size and threaded rendering.
SVN revision: 47419
2010-03-24 11:07:37 +00:00
Cedric BAIL e414c90820 * evas: fix fribidi race condition (perhaps not the right way) with thread rendering.
SVN revision: 47418
2010-03-24 11:06:54 +00:00
Cedric BAIL 34e4c55f37 * evas: Fix thread rendering issu with scalecache.
SVN revision: 47417
2010-03-24 11:06:02 +00:00
Cedric BAIL a859e60140 * evas: Make evas_object_move on Evas_Object_Polygon work.
TODO: Make evas_object_resize work also.


SVN revision: 47291
2010-03-16 13:23:37 +00:00