profile/ivi/evas.git
13 years agoEvas textblock: Free paragraphs as well as lines.
tasn [Sun, 15 Aug 2010 08:17:21 +0000 (08:17 +0000)]
Evas textblock: Free paragraphs as well as lines.
Fixes a small memory leak.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@51126 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agofix compile
discomfitor [Sat, 14 Aug 2010 14:36:40 +0000 (14:36 +0000)]
fix compile
raster SPANK SPANK SPANK!!!

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@51115 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoFrom: Alexander Kerner <alexander.kerner@googlemail.com>
raster [Sat, 14 Aug 2010 11:17:35 +0000 (11:17 +0000)]
From: Alexander Kerner <alexander.kerner@googlemail.com>

Attached is a small patch to fix eng_font_draw in software_8.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@51112 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoApply memset-calloc.cocci
lucas [Fri, 13 Aug 2010 12:53:08 +0000 (12:53 +0000)]
Apply memset-calloc.cocci

Change calls to malloc + memset to calloc whenever an automatic conversion can
be done.

Possible candidates are not treated here, only the ones we can be sure the
conversion is safe.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@51078 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agomore comments
raster [Fri, 13 Aug 2010 11:23:07 +0000 (11:23 +0000)]
more comments

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@51074 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agocomments.
raster [Fri, 13 Aug 2010 11:13:45 +0000 (11:13 +0000)]
comments.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@51073 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoand make it work... yes. first time sec egl image works.
raster [Fri, 13 Aug 2010 11:08:57 +0000 (11:08 +0000)]
and make it work... yes. first time sec egl image works.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@51072 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agooopsie. fix.
raster [Fri, 13 Aug 2010 10:39:41 +0000 (10:39 +0000)]
oopsie. fix.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@51071 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agomore work on egl image direct access.
raster [Fri, 13 Aug 2010 10:34:51 +0000 (10:34 +0000)]
more work on egl image direct access.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@51070 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoEvas textblock: Fixed cursor sizes in rare situations, for example the text from...
tasn [Thu, 12 Aug 2010 15:49:43 +0000 (15:49 +0000)]
Evas textblock: Fixed cursor sizes in rare situations, for example the text from expedite textblock_basic test and point the 'c' in COLOR you would get a badly shaped cursor.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@51050 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoEvas: Textblock fixed formating.
tasn [Thu, 12 Aug 2010 15:04:47 +0000 (15:04 +0000)]
Evas: Textblock fixed formating.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@51045 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoEvas: Textblock - Fixed a couple of segs/invalid memory access.
tasn [Thu, 12 Aug 2010 14:59:42 +0000 (14:59 +0000)]
Evas: Textblock - Fixed a couple of segs/invalid memory access.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@51044 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoEvas: Each paragraph has at least one layout item in order to mark it's existence.
tasn [Thu, 12 Aug 2010 14:20:19 +0000 (14:20 +0000)]
Evas: Each paragraph has at least one layout item in order to mark it's existence.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@51039 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoEvas: textblock - made _format_fill faster.
tasn [Thu, 12 Aug 2010 09:35:53 +0000 (09:35 +0000)]
Evas: textblock - made _format_fill faster.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@51032 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoEvas: textblock - Made _format_param_parse sane and cleaner and fixed compilation...
tasn [Thu, 12 Aug 2010 09:31:43 +0000 (09:31 +0000)]
Evas: textblock - Made _format_param_parse sane and cleaner and fixed compilation warnings about unused functions.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@51031 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoEvas: fixed textblock compiler warnings.
tasn [Thu, 12 Aug 2010 07:02:30 +0000 (07:02 +0000)]
Evas: fixed textblock compiler warnings.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@51029 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agomore glue/infra. glue evas api to engine together. gl engine gets stubs.
raster [Thu, 12 Aug 2010 06:11:13 +0000 (06:11 +0000)]
more glue/infra. glue evas api to engine together. gl engine gets stubs.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@51028 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoworking on new gl engine feature. inactive right now.
raster [Thu, 12 Aug 2010 06:02:15 +0000 (06:02 +0000)]
working on new gl engine feature. inactive right now.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@51027 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoi->0
raster [Wed, 11 Aug 2010 23:12:03 +0000 (23:12 +0000)]
i->0

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@51026 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoEvas: textblock - fixed arabic shaping and fixed an issue with persistant paragraph...
tasn [Wed, 11 Aug 2010 13:03:24 +0000 (13:03 +0000)]
Evas: textblock - fixed arabic shaping and fixed an issue with persistant paragraph direction (regarding RTL).

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50996 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoEvas: Improved evas_textblock_cursor_range_text_get to return markup text instead...
tasn [Wed, 11 Aug 2010 12:29:20 +0000 (12:29 +0000)]
Evas: Improved evas_textblock_cursor_range_text_get to return markup text instead of plain text.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50992 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoEvas: Textblock - Sanitized format init and shutdown.
tasn [Wed, 11 Aug 2010 11:20:10 +0000 (11:20 +0000)]
Evas: Textblock - Sanitized format init and shutdown.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50991 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoEvas: Cursor updates is now done in one function and it's updated correctly everywhere.
tasn [Wed, 11 Aug 2010 10:27:44 +0000 (10:27 +0000)]
Evas: Cursor updates is now done in one function and it's updated correctly everywhere.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50990 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoEvas: fix range text get in textblock.
tasn [Wed, 11 Aug 2010 08:33:22 +0000 (08:33 +0000)]
Evas: fix range text get in textblock.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50988 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoEvas: Added align=auto format to textblock.
tasn [Wed, 11 Aug 2010 07:46:37 +0000 (07:46 +0000)]
Evas: Added align=auto format to textblock.
This is the default. This lets you make textblock (or parts affected by this tag) auto align according to the natural paragraph direction.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50985 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoEvas: Added auto lines alignment to textblock. RTL lines will automatically align...
tasn [Wed, 11 Aug 2010 07:23:48 +0000 (07:23 +0000)]
Evas: Added auto lines alignment to textblock. RTL lines will automatically align to the right and LTR lines to the left.
This is not done per line, but per paragraph so a line break will not force recalculation of auto-alignment, only a PS.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50984 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoChoose a style for comment
lucas [Tue, 10 Aug 2010 19:12:07 +0000 (19:12 +0000)]
Choose a style for comment

Be nice with simpler regex

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50972 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoEvas: Updated Evas_BiDi docs.
tasn [Tue, 10 Aug 2010 15:12:05 +0000 (15:12 +0000)]
Evas: Updated Evas_BiDi docs.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50966 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoEvas: Update documentation of evas_object_textblock.
tasn [Tue, 10 Aug 2010 14:36:48 +0000 (14:36 +0000)]
Evas: Update documentation of evas_object_textblock.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50965 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoEvas: Fixed a bug when erasing the last paragraph of a textblock.
tasn [Tue, 10 Aug 2010 08:34:47 +0000 (08:34 +0000)]
Evas: Fixed a bug when erasing the last paragraph of a textblock.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50958 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoevas: Fixed compilation warnings in xrender_x11 engine.
tasn [Tue, 10 Aug 2010 08:17:06 +0000 (08:17 +0000)]
evas: Fixed compilation warnings in xrender_x11 engine.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50957 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoevas: Fixed compilation warnings in software_16 engine.
tasn [Tue, 10 Aug 2010 07:40:09 +0000 (07:40 +0000)]
evas: Fixed compilation warnings in software_16 engine.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50955 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoEvas: Fixed the compilation warning with sw8 engine. This is not just to beautify...
tasn [Tue, 10 Aug 2010 07:36:23 +0000 (07:36 +0000)]
Evas: Fixed the compilation warning with sw8 engine. This is not just to beautify the compilation output (which is a good enough cause on it's own behalf), right shift with negative values is not defined in the standard which means everything can happen.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50954 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years ago1. slightly optimise a get opaque call. (some tests get a 5-10% speedup)
raster [Tue, 10 Aug 2010 02:35:07 +0000 (02:35 +0000)]
1. slightly optimise a get opaque call. (some tests get a 5-10% speedup)
2. gl - be stricter on gl-es texture formats.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50950 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoEvas: Fixed compilation without BiDi support.
tasn [Mon, 9 Aug 2010 16:47:35 +0000 (16:47 +0000)]
Evas: Fixed compilation without BiDi support.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50934 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoEvas: Redesigned the textblock object.
tasn [Mon, 9 Aug 2010 16:24:17 +0000 (16:24 +0000)]
Evas: Redesigned the textblock object.
Sorry, but full documented code will be committed tomorrow, this commit is needed for the API stabilization.
Major changes in this commit:
1. Changed the textblock node system there is now a linked list for the format nodes and a linked list for the text nodes. Format and text nodes point to one anoter in a matter that will be explained in the source file (will be committed tomorrow). Each text node now represents a paragraph and each format node points to a specific location in a text node.
2. Text/Format nodes are now two distinct data types.
3. The concept of nodes is no longer exposed in the API except for the format nodes which are only slightly exposed just to enable users of the API to cycle all the formats in order to find stuff like anchors.
4. Every node has a PS (paragraph separator) format node pointing to it's end, except for the last one which has nothing. Nodes are only broken by PS's.
5. Changed the BiDi functions to work nicely with offsets in big chunks of text.

More is explained in the email with the subject 'Evas Textblock redesign + edje_entry adjustments' that will be sent tomorrow because of technical issues.
For full documentation about this object wait for the next commit.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50930 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agomagic numbers. :)
raster [Mon, 9 Aug 2010 08:38:28 +0000 (08:38 +0000)]
magic numbers. :)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50924 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agouseless repeats... remove.
raster [Mon, 9 Aug 2010 07:13:58 +0000 (07:13 +0000)]
useless repeats... remove.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50923 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agofix yuv with gl pipe stuff.
raster [Mon, 9 Aug 2010 04:59:14 +0000 (04:59 +0000)]
fix yuv with gl pipe stuff.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50920 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoallow for debug checking of # of flushes per frame. checking to see if
raster [Mon, 9 Aug 2010 04:54:05 +0000 (04:54 +0000)]
allow for debug checking of # of flushes per frame. checking to see if
this all works

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50919 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agomake new pipes have an env var for tuning, remove old comment code,
raster [Mon, 9 Aug 2010 04:42:15 +0000 (04:42 +0000)]
make new pipes have an env var for tuning, remove old comment code,
fix up yuv and maps to use pipes too. yes lines just flush it all - so
be it. :) who uses lines anyway?

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50918 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agosome major re-jig to get multiple render pipes in gl at once... some
raster [Mon, 9 Aug 2010 03:27:59 +0000 (03:27 +0000)]
some major re-jig to get multiple render pipes in gl at once... some
chunky speedups to be had in real-life cases by avoiding more array
flushes.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50917 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agowell well. i broke that. gles enignew builds again.
raster [Fri, 6 Aug 2010 04:37:06 +0000 (04:37 +0000)]
well well. i broke that. gles enignew builds again.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50852 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoFix wrong usages of malloc, calloc and E_NEW
lucas [Thu, 5 Aug 2010 00:50:43 +0000 (00:50 +0000)]
Fix wrong usages of malloc, calloc and E_NEW

Patch by bad-alloc.cocci

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50828 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoFORMATTING
lucas [Wed, 4 Aug 2010 16:57:32 +0000 (16:57 +0000)]
FORMATTING

* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50816 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agore-jig native surface stuff to share the same gl image between
raster [Tue, 3 Aug 2010 06:09:53 +0000 (06:09 +0000)]
re-jig native surface stuff to share the same gl image between
multiple instances of the same pixmap.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50758 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoallow max cutout rects to be tunable. and change3 default for gl?
raster [Mon, 2 Aug 2010 06:46:38 +0000 (06:46 +0000)]
allow max cutout rects to be tunable. and change3 default for gl?

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50736 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agodont sync if vsync not set...? (good?)
raster [Mon, 2 Aug 2010 06:44:23 +0000 (06:44 +0000)]
dont sync if vsync not set...? (good?)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50735 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoBuffer engine is desired/needed else livethumb previews do not work.
devilhorns [Sat, 31 Jul 2010 18:50:51 +0000 (18:50 +0000)]
Buffer engine is desired/needed else livethumb previews do not work.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50718 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoRemove some unused variables/dead assignments.
devilhorns [Sat, 31 Jul 2010 17:06:55 +0000 (17:06 +0000)]
Remove some unused variables/dead assignments.
Fix some formatting while I am here.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50717 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoRemove unused variable(s).
devilhorns [Sat, 31 Jul 2010 16:57:09 +0000 (16:57 +0000)]
Remove unused variable(s).

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50716 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoComment out dead assignment(s).
devilhorns [Sat, 31 Jul 2010 07:13:21 +0000 (07:13 +0000)]
Comment out dead assignment(s).

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50715 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoFix evas_module clean 'bug'. NB: Not really an issue as this code
devilhorns [Sat, 31 Jul 2010 06:15:00 +0000 (06:15 +0000)]
Fix evas_module clean 'bug'. NB: Not really an issue as this code
isn't used currently, but may be in the future, so fix the minor
bugger now, just in case :)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50714 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoCleanup some clang reports.
devilhorns [Sat, 31 Jul 2010 06:12:39 +0000 (06:12 +0000)]
Cleanup some clang reports.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50713 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoAdd missing break for case.
devilhorns [Sat, 31 Jul 2010 05:48:51 +0000 (05:48 +0000)]
Add missing break for case.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50712 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoAdd missing break for case statement.
devilhorns [Sat, 31 Jul 2010 05:46:16 +0000 (05:46 +0000)]
Add missing break for case statement.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50711 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years ago'cache' is unused here.
devilhorns [Sat, 31 Jul 2010 05:44:15 +0000 (05:44 +0000)]
'cache' is unused here.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50710 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoTwo fixes: Use the correct string for the stringshare and
nash [Fri, 30 Jul 2010 04:53:30 +0000 (04:53 +0000)]
Two fixes: Use the correct string for the stringshare and
if gl is on, but metric is compiled out, just bail out of all word/metric
cache

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50678 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoUse strnlen... NFI if this works yet.
nash [Fri, 30 Jul 2010 03:51:48 +0000 (03:51 +0000)]
Use strnlen... NFI if this works yet.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50677 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoFix word/metric cache to use strlen
nash [Fri, 30 Jul 2010 03:20:40 +0000 (03:20 +0000)]
Fix word/metric cache to use strlen

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50675 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoFix the compile error: Doesn't fix massive performance regression or rather
nash [Fri, 30 Jul 2010 03:04:43 +0000 (03:04 +0000)]
Fix the compile error: Doesn't fix massive performance regression or rather
obvious semantic change in the code.

ie: If you are changing code:
Read the comment on the LINE ABOVE the code you are changing.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50674 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoaaah yes. get the ref -1 as free will dec it.
raster [Thu, 29 Jul 2010 23:32:56 +0000 (23:32 +0000)]
aaah yes. get the ref -1 as free will dec it.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50662 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years ago * evas: remove generated file.
cedric [Thu, 29 Jul 2010 13:47:12 +0000 (13:47 +0000)]
* evas: remove generated file.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50643 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoneed to add null items for item format things (inserted external item
raster [Thu, 29 Jul 2010 07:42:30 +0000 (07:42 +0000)]
need to add null items for item format things (inserted external item
objects)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50636 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agonow work?
raster [Thu, 29 Jul 2010 06:21:51 +0000 (06:21 +0000)]
now work?

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50635 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoDocumentation for neon, word and metric caching in README.in
nash [Thu, 29 Jul 2010 03:52:31 +0000 (03:52 +0000)]
Documentation for neon, word and metric caching in README.in

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50633 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoMinor fixes to font drawing with metric caching enabled.
nash [Thu, 29 Jul 2010 03:34:30 +0000 (03:34 +0000)]
Minor fixes to font drawing with metric caching enabled.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50632 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoMake evas build again (here at least).
devilhorns [Wed, 28 Jul 2010 17:57:18 +0000 (17:57 +0000)]
Make evas build again (here at least).
Added missing unicode & bidi opts to necessary places.
Fixes lots of compiler warnings.

NB - Not all engines tested. If you spot a problem wrt any specific
engine, please report it.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50601 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoEvas: Changing the font engine to work with Eina_Unicode instead of utf8.
tasn [Wed, 28 Jul 2010 12:00:41 +0000 (12:00 +0000)]
Evas: Changing the font engine to work with Eina_Unicode instead of utf8.
Changing textblock and text objects to work with Eina_Unicode instead of utf8 (internally, API remains intact).
Started relying on new fribidi 0.19.2 instead of the old fribidi.
A lot of fixes to the font engine.
Renaming of evas_common_font_utf8_* to evas_common_encoding_utf8_*
This relies on new Eina changes and types: Eina_Unicode, Eina_UStrbuf and Eina_UStringshare.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50595 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agotry this one
raster [Wed, 28 Jul 2010 08:11:30 +0000 (08:11 +0000)]
try this one

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50589 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years ago...but don't draw twice
nash [Wed, 28 Jul 2010 07:34:04 +0000 (07:34 +0000)]
...but don't draw twice

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50588 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoFall through to slow path if no word and metric cache
nash [Wed, 28 Jul 2010 07:33:48 +0000 (07:33 +0000)]
Fall through to slow path if no word and metric cache

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50587 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoDon't try and render wordcache if GL is on, and metric cache is enabled.
nash [Wed, 28 Jul 2010 07:33:23 +0000 (07:33 +0000)]
Don't try and render wordcache if GL is on, and metric cache is enabled.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50586 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoadd new win before deleting old.
raster [Wed, 28 Jul 2010 06:00:02 +0000 (06:00 +0000)]
add new win before deleting old.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50584 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoand add in the 8bpp gray stuff
raster [Wed, 28 Jul 2010 02:27:29 +0000 (02:27 +0000)]
and add in the 8bpp gray stuff

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50571 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoFrom: Alexander Kerner <alexander.kerner@googlemail.com>
raster [Wed, 28 Jul 2010 00:16:06 +0000 (00:16 +0000)]
From: Alexander Kerner <alexander.kerner@googlemail.com>
Subject: [E-devel] 8bpp xcb evas engine

Hi all,

I've implemented the 8bpp grayscale evas engine. It is based on the 16bpp
engine. It would be nice if someone could review the code and maybe commit
into svn. The patches against evas and ecore are attached.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50560 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoBloody fenceposts. Draw the right stuff when rendering. neon fixes ++ ;-)
nash [Mon, 26 Jul 2010 05:37:36 +0000 (05:37 +0000)]
Bloody fenceposts.  Draw the right stuff when rendering.  neon fixes ++ ;-)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50503 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoUse memcmp instead of stringshare. Much faster.
nash [Mon, 26 Jul 2010 03:17:40 +0000 (03:17 +0000)]
Use memcmp instead of stringshare.  Much faster.

Everyones favourite arm benchmarks (a8 cortex)
Base                       stringshare   memcmp     Diff   Diff %
Widgets File Icons               32.48    36.78      4.3   13.24%
Widgets File Icons 2             73.65    74.93     1.28    1.74%
Widgets File Icons 3             44.87    46.89     2.02    4.50%
Widgets File Icons 4             65.66    66.45     0.79    1.20%
Text Basic                       88.67    91.21     2.54    2.86%
Text Styles                      10.71    10.95     0.24    2.24%
Text Styles Different St           8.3     8.45     0.15    1.81%
Text Change                       56.4    57.34     0.94    1.67%
Textblock Basic                  60.75     68.8     8.05   13.25%
Textblock Intl                  155.33   193.51    38.18   24.58%

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50498 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoSome improvements to 90 degree rotated neon.
nash [Sat, 24 Jul 2010 04:52:13 +0000 (04:52 +0000)]
Some improvements to 90 degree rotated neon.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50476 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

13 years agoBump the default buffer size. USeful for expedite ;-)
nash [Sat, 24 Jul 2010 02:38:36 +0000 (02:38 +0000)]
Bump the default buffer size.  USeful for expedite ;-)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50474 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoTweaks to neon text: Help with some bugs at least.
nash [Wed, 21 Jul 2010 08:09:41 +0000 (08:09 +0000)]
Tweaks to neon text: Help with some bugs at least.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50410 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoMinor fix: Don't render text if there is nothing to do
nash [Wed, 21 Jul 2010 06:43:47 +0000 (06:43 +0000)]
Minor fix: Don't render text if there is nothing to do

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50408 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoGenerally speaking, dereffing uninited pointners is not so good.
nash [Wed, 21 Jul 2010 03:51:36 +0000 (03:51 +0000)]
Generally speaking, dereffing uninited pointners is not so good.

Squash one nasal daemon!

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50403 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * evas: make WORD/METRIC cache work with pipe rendering.
cedric [Tue, 20 Jul 2010 12:11:49 +0000 (12:11 +0000)]
* evas: make WORD/METRIC cache work with pipe rendering.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50381 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * evas: fix fribidi lock.
cedric [Tue, 20 Jul 2010 12:10:40 +0000 (12:10 +0000)]
* evas: fix fribidi lock.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50380 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * evas: font config access is not thread safe at all. Don't forget
cedric [Tue, 20 Jul 2010 12:09:46 +0000 (12:09 +0000)]
* evas: font config access is not thread safe at all. Don't forget
to call FTLOCK/FTUNLOCK around each FT_* call.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50379 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * evas: METRIC and WORD cache require stringshare use in thread, so
cedric [Tue, 20 Jul 2010 12:07:51 +0000 (12:07 +0000)]
* evas: METRIC and WORD cache require stringshare use in thread, so
enable it.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50378 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * evas: unbreak pipe rendering, that was a long break.
cedric [Tue, 20 Jul 2010 09:32:28 +0000 (09:32 +0000)]
* evas: unbreak pipe rendering, that was a long break.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50374 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * evas: ignore build file.
cedric [Mon, 19 Jul 2010 10:55:07 +0000 (10:55 +0000)]
* evas: ignore build file.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50364 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoUse eina_stringshare_replace rather than several _del & _add calls
devilhorns [Sat, 17 Jul 2010 19:49:16 +0000 (19:49 +0000)]
Use eina_stringshare_replace rather than several _del & _add calls
(tested w/ no apparent adverse affects).

Fix some formatting.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50307 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoFix invalid access if using async-render
barbieri [Fri, 16 Jul 2010 22:52:04 +0000 (22:52 +0000)]
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 :-/

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50300 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoFix soft16 preload by replicating Image_Entry::info.
barbieri [Fri, 16 Jul 2010 22:47:31 +0000 (22:47 +0000)]
Fix soft16 preload by replicating Image_Entry::info.

Software 16bpp variants were crashing if using preload as the
Image_Entry that was used by preload did not keep the loader and
module information, since these were only set in the
Soft16_Image::source.  Now we copy these members while the source is
live.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50299 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAbility to disable NEON code in runtime
etrunko [Thu, 15 Jul 2010 17:58:38 +0000 (17:58 +0000)]
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.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50271 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoRemove unneeded code with notnull.cocci script
lucas [Wed, 14 Jul 2010 02:05:47 +0000 (02:05 +0000)]
Remove unneeded code with notnull.cocci script

The notnull.cocci script from Coccinelle finds places where you check if a
variable is NULL, but it's known not to be NULL. The check can be safely
removed. For example, this code would be caught by notnull:

if (!var) return;
if (var && var->fld) { ... }

It's needless to check again if var is not NULL because if it's in fact NULL,
it would have returned on the previous "if". This commit removes all the
trivial places where this pattern happens. Another patch will be generated for
the more complex cases.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50241 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agobitrot-- > work again (minus map features etc. tho)
raster [Mon, 12 Jul 2010 02:47:02 +0000 (02:47 +0000)]
bitrot-- > work again (minus map features etc. tho)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50192 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoa more correct version of the dso fix.
raster [Sun, 11 Jul 2010 23:56:40 +0000 (23:56 +0000)]
a more correct version of the dso fix.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50184 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agothe min size of the box is the sum of the items min size
watchwolf [Fri, 9 Jul 2010 11:17:35 +0000 (11:17 +0000)]
the min size of the box is the sum of the items min size

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50156 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoMove Evas (and associated headers) to their own dir (ie: the 'eet.h'
devilhorns [Fri, 9 Jul 2010 06:10:55 +0000 (06:10 +0000)]
Move Evas (and associated headers) to their own dir (ie: the 'eet.h'
move).

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50141 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoRemove NULL pointer dereference
lucas [Thu, 8 Jul 2010 03:21:33 +0000 (03:21 +0000)]
Remove NULL pointer dereference

Bug found by the "andand" semantic patch:

// The right argument of || or && is dereferencing something known to be NULL
//
// Confidence: High
// Copyright: (C) Gilles Muller, Julia Lawall, EMN, INRIA, DIKU.  GPLv2.
// URL: http://coccinelle.lip6.fr/rules/andand.html
// Options:

@ expression@
expression E;
identifier fld;
@@

- !E &&
+ !E ||
  <+...E->fld...+>

@ expression@
expression E;
identifier fld;
@@

- E ||
+ E &&
  <+...E->fld...+>

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50118 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAdd more control over word-cache size. Also really fix my leak on international...
nash [Mon, 5 Jul 2010 06:40:20 +0000 (06:40 +0000)]
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.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@50047 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33