Commit Graph

2116 Commits

Author SHA1 Message Date
Gustavo Sverzut Barbieri 9a3570bfb9 Create macros to help initialize class structures.
also defined evas_smart_new() as deprecated.



SVN revision: 39266
2009-02-27 15:30:32 +00:00
Vincent Torri 389a006871 does not return a value in function returning void
SVN revision: 39224
2009-02-25 23:39:59 +00:00
Vincent Torri 7dd1e9e055 remove more 'unused parameter' warnings
SVN revision: 39223
2009-02-25 23:39:19 +00:00
Vincent Torri 4d1961ac59 remove 'unused parameter' warning
SVN revision: 39222
2009-02-25 23:18:15 +00:00
Vincent Torri 725d8b4bfb use pm instead of PAL_MODE_RGB666 when allocating colors
SVN revision: 39188
2009-02-25 07:24:53 +00:00
Gustavo Sverzut Barbieri adab85b566 directfb: Oops, don't give bogus data to image_data.
This fixes changing image subareas with directfb engine and
eve/webkit-efl works fine.

Thanks to Gustavo Lima Chaves.



SVN revision: 39185
2009-02-24 22:46:45 +00:00
Vincent Torri f344743dae fix some warnings reported by llvm (see http://local.profusion.mobi:8081/~lfelipe/output-efl/)
* mainly unused parameters
 * in src/lib/imaging/evas_imaging.c, set font to NULL
 * in src/lib/canvas/evas_object_gradient.c, add unititialized member

there are a *lot* of reported warnings by llvm, i'll fix them later

there are also *lots* of unused parameters (compile evas with -W). I'll
fix them later too



SVN revision: 39172
2009-02-24 08:31:31 +00:00
Vincent Torri 0af29b19d6 sync when needed
SVN revision: 39171
2009-02-24 07:06:14 +00:00
Carsten Haitzler 842cadce24 update debug code.
SVN revision: 39154
2009-02-23 07:21:37 +00:00
Carsten Haitzler fca6a09640 fix font cutout clip bug.
SVN revision: 39153
2009-02-23 07:20:21 +00:00
Vincent Torri fe8b378c87 fix xrender xcb engine
SVN revision: 39135
2009-02-22 11:24:08 +00:00
Carsten Haitzler 4907a1f07e fix premul default value for tiff loader
SVN revision: 39134
2009-02-22 09:19:11 +00:00
Vincent Torri 373d55b48e remove trailing spaces
SVN revision: 39117
2009-02-21 08:19:58 +00:00
Vincent Torri a005e1000a make gl engine able to use cutouts - in some cases its faster, some
slower. it's a mixed bag. not sure what to make of it. it's #defined to be
disabled atm. (synchronize with gl_x11 code)


SVN revision: 39116
2009-02-21 08:18:53 +00:00
Carsten Haitzler 7a74942b41 1. make software font draw code actually use cutouts.
2. make gl engine able to use cutouts - in some cases its faster, some
slower. it's a mixed bag. not sure what to make of it. it's #defined to be
disabled atm.



SVN revision: 39114
2009-02-21 03:13:49 +00:00
Cedric BAIL 720a9efe71 * evas_object_image.c: Remove a warning and return 1 as a success.
SVN revision: 39060
2009-02-17 17:36:29 +00:00
Carsten Haitzler 9062c9050a and support obscured rects for clip-out if middle of bordered image set to
solid. speedup.



SVN revision: 39051
2009-02-17 04:53:03 +00:00
Vincent Torri 860fc287c2 free correctly each buffer in XCB engine
The xcb_image dependency should be removed and replaced
by direct calls of the request XPutImage


SVN revision: 39024
2009-02-15 11:14:12 +00:00
Carsten Haitzler bda789960a fix minor bug in fill mode.
SVN revision: 39020
2009-02-15 02:53:24 +00:00
rephorm a3fdd2ab4e don't return NaN for hue if r=g=b
SVN revision: 39019
2009-02-15 01:53:02 +00:00
Cedric BAIL 630e5f1558 * evas/lib/canvas/evas_async_events.c: Use memset instead of PACKED.
SVN revision: 39003
2009-02-12 17:05:17 +00:00
Carsten Haitzler cb94c8fadd in theory - (not tested yet) allow hitns to set middle to solid of
borderscaling.



SVN revision: 39000
2009-02-12 13:38:33 +00:00
Cedric BAIL 166c76146d * evas/m4/ac_attribute.m4,
* evas/src/lib/canvas/evas_async_events.c: Fix long standing warning from valgrind.



SVN revision: 38996
2009-02-11 17:56:03 +00:00
Cedric BAIL b70ae3c927 * evas/src/lib/include/evas_common.h,
* evas/src/lib/engines/common/evas_font.h,
	* evas/src/lib/engines/common/evas_font_draw.c,
	* evas/src/lib/engines/common/evas_font_load.c,
	* evas/src/lib/engines/common/evas_font_query.c: Add cache for font kerning.

This patch give something around 2% for all tests around text in expedite,
except for Textblock Intl where it give a 3 times boost.

Regarding text rendering speed, something is strange when used by evas_pipe.
All tests using Styles are around 40% faster without evas_pipe. 30% faster
for Text Change. But Text Basic 7% slower. So it should be possible to have
faster rendering when using evas_pipe for font rendering.


SVN revision: 38993
2009-02-10 15:53:17 +00:00
Gustavo Sverzut Barbieri ad1af73d40 Do not inform callbacks that did not changed the state of object.
For some unknown reason evas was informing EVAS_CALLBACK_* even if the
original call did not changed the internal object state, that is, new
value is already equal to current value.

This is specially costly since Edje, Box, Table and possible other
layout engines will call evas_object_resize(), move(), show(), hide()
even if the state has not changed, assuming evas will ignore the call
(as it does). The real overhead might come if there are listeners
attached to these events, that in turn might do lots of other stuff,
leading to a torrent of useless calls.

I marked it for removal, please test it and uncomment '#define
CALLBACK_NOOPS' to get the old behavior back. It does seems to work
with e17 and edje_editor. If problems appear, let's try to fix the
real problem instead of getting this code back, it's a performance
penalty.



SVN revision: 38955
2009-02-05 14:37:58 +00:00
Gustavo Sverzut Barbieri a6e8f2cd36 Do not recalculate table/box if size does not really changed.
SVN revision: 38950
2009-02-05 12:38:04 +00:00
Vincent Torri 3015ea63ac Missing modification of the variable DOXYGEN to
efl_doxygen. Spotted by Albin Tonnerre (Lutin).


SVN revision: 38893
2009-02-01 20:25:19 +00:00
Vincent Torri c65e27de30 fix logic in efl_doxygen.m4
SVN revision: 38876
2009-02-01 06:52:11 +00:00
Carsten Haitzler 2025e3db2b check for null inputs in imaging and dont segv if u get them
SVN revision: 38851
2009-01-29 23:01:24 +00:00
Vincent Torri 76853a3e6c make the direct3d engine working with d3dx9 header files
from Microsoft SDK (november 2008)

Patch by Roberto Huelga (modified + minor improvements)


SVN revision: 38850
2009-01-29 21:32:26 +00:00
Gustavo Sverzut Barbieri 66b3a0a0f1 load_size option now accept -1xH or Wx-1
If one want to load image at a given height or width and the other
dimension should be large enough to make it possible, give -1 as the
other coordinate and this will happen.



SVN revision: 38845
2009-01-29 16:45:14 +00:00
Carsten Haitzler 7b370535a0 extra fragment shader prog to 0 call. remove. useless.
SVN revision: 38820
2009-01-27 23:57:21 +00:00
Gustavo Sverzut Barbieri 23b98358b0 sorry, let's keep name coherent with others.
SVN revision: 38750
2009-01-23 22:23:03 +00:00
Gustavo Sverzut Barbieri d58031f5fc evas preload: do not lock mutex aready locked.
SVN revision: 38749
2009-01-23 22:21:04 +00:00
Gustavo Sverzut Barbieri 018af5b44c Fix image cache shutdown.
we should just remove entries pending preload from the cache being
shutdown, not all of them.

this is untested as it is hard to force this situation, but should be
more correct than the previous.



SVN revision: 38747
2009-01-23 21:08:35 +00:00
Gustavo Sverzut Barbieri 14a88b52d4 evas preload: keep the preload thread alive.
before, when no more images were to be preloaded asynchronously, the
thread exited, but were not collected. This leads to a huge leak if
the process is doing aggressive use of image preloading (ie: photo
wall).

collecting dead threads in a proper way (read: without race
conditions) is a bit harder than keeping just one thread alive,
forever. As we do that for evas_pipe (the renderer), let's do the same
with preload and save code.



SVN revision: 38746
2009-01-23 20:36:04 +00:00
Gustavo Sverzut Barbieri b814a5e2be buffer: reorder destroy-recreate sequence to avoid cache to be destroyed.
users of buffer engine (ie: e_thumb_main.c) were broken since when
they resize the canvas they would implicitly call engine->setup()
again, which would destroy output and create it again. However the
cache could be destroyed and images using it would be bogus.

This does not happen if the process have other cache users, but
e_thumb is just one canvas live at time.

By reordering, we have the cache reference to go to 2 and then back to
1, not destroying it.



SVN revision: 38739
2009-01-23 15:28:43 +00:00
Vincent Torri c141b1c636 __stdcall must also be used in the definition of the callbacks
SVN revision: 38705
2009-01-23 06:24:12 +00:00
Gustavo Sverzut Barbieri 763999fa8b Remove all images pending preload before cache shuts down.
SVN revision: 38703
2009-01-23 00:09:10 +00:00
Gustavo Sverzut Barbieri 83783665f5 Let's try to shutdown cache and fix delete problem.
SVN revision: 38702
2009-01-23 00:08:11 +00:00
Carsten Haitzler 185d9ae9b5 allow asm to turn off via env vars
SVN revision: 38693
2009-01-22 03:21:04 +00:00
Jorge Luis Zapata Muga f26e6dddc0 Missing #else for non win32
SVN revision: 38681
2009-01-21 09:46:02 +00:00
Vincent Torri fe52686976 Avoid the stack to be screwed up in the callbacks on Windows.
Fix the seg fault in the polygon test in expedite on Windows.


SVN revision: 38679
2009-01-21 07:44:20 +00:00
Cedric BAIL 5621e47f1c Correctly cancel each image object and not all at once.
SVN revision: 38658
2009-01-20 14:56:37 +00:00
Vincent Torri a1d61c71c2 add error message in the win ce gdi engine
SVN revision: 38646
2009-01-19 17:53:30 +00:00
Cedric BAIL 011bc06ecc * evas/src/lib/cache/evas_cache_image.c,
* evas/src/lib/include/evas_common.h: Now you should receive a async call for each image object that does async preload.


SVN revision: 38643
2009-01-19 14:06:09 +00:00
Vincent Torri 836510e42c update ac_attribute.m4
SVN revision: 38580
2009-01-14 08:36:29 +00:00
handyande 6c94ab45be Look for locks being available
SVN revision: 38571
2009-01-13 16:31:31 +00:00
Carsten Haitzler fb92a519bf fix the copying license to
1. get rid of grammar mistake
2. refer to COPYING-PLAIn correctly as the filename
3. be more explicit on "shipping source" due to ambiguity (this makes it what
it was intended to be and that is GPL compatible).

this does not modify the LGPL libs... or GPL apps etc. - only those using the
original COPYING from e. author and dates at the top remain the same.



SVN revision: 38569
2009-01-13 13:00:45 +00:00
Daniel Kolesa bbd81b24f5 Updated debian/rules for ecore and evas because of new 'make doc' support.
SVN revision: 38548
2009-01-11 10:37:01 +00:00