Commit Graph

56 Commits

Author SHA1 Message Date
Cedric BAIL 6de3f7e778 * evas: fix static build of GL SDL engine.
SVN revision: 54589
2010-11-16 13:09:14 +00:00
Carsten Haitzler c5661c4471 and that tga entry too
SVN revision: 53890
2010-10-26 08:29:39 +00:00
Carsten Haitzler ef332fcf44 forgot tga loader in static list
SVN revision: 53889
2010-10-26 08:28:12 +00:00
Carsten Haitzler 381728fb86 forgot to allow bmp loader to be static.
SVN revision: 53885
2010-10-26 02:55:56 +00:00
Carsten Haitzler 2e395b8605 fix shutdown - clear up has entrie handles.
SVN revision: 53667
2010-10-20 13:59:23 +00:00
Eduardo de Barros Lima f61a1cb5cb Evas: Don't #define _GNU_SOURCE
Instead use AC_GNU_SOURCE macro in configure.ac and #include <config.h> properly


SVN revision: 53159
2010-10-07 19:52:47 +00:00
Gustavo Sverzut Barbieri 19f0eebd27 cleanup: simple clean of "comparison between signed and unsigned errors"
not much to see here, please review but these are simple changes.



SVN revision: 52426
2010-09-18 23:07:31 +00:00
Lucas De Marchi 5a8a8c9014 Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
Christopher Michael f1c4520420 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 :)



SVN revision: 50714
2010-07-31 06:15:00 +00:00
Alexander Kerner 0ec2a33a22 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.



SVN revision: 50560
2010-07-28 00:16:06 +00:00
Carsten Haitzler 6e93fa88d3 unloading of loader module -> bad for sync preload it seems.
SVN revision: 49088
2010-05-21 07:31:03 +00:00
Vincent Torri 20d5a675db * undef close() and open() in evas_module also for mingw
* init Evil in eina as it uses fcntl() with the winsock2 library
 * fix compilation of evas_cache_image.c with mingw
 * formatting


SVN revision: 45724
2010-01-30 00:09:29 +00:00
Vincent Torri c392f30e71 make evas_module.c and evas_path.c compile with vc++
SVN revision: 42641
2009-09-23 07:12:11 +00:00
Gustavo Sverzut Barbieri 7ca620ce73 unbreak static savers, cedric pay attention to seds!
SVN revision: 41529
2009-07-28 23:48:27 +00:00
Vincent Torri ebc20c2236 API BREAK: fix Eina API so that it is more consistent with the other EFL
what is modified:

eina_counter_add -> eina_counter_new
eina_counter_delete -> eina_counter_free
eina_lalloc_delete -> eina_lalloc_free
eina_mempool_new -> eina_mempool_add
eina_mempool_delete -> eina_mempool_del
eina_mempool_alloc -> eina_mempool_malloc
eina_tiler_del -> eina_tiler_free

It remains some questions: have the following API a good name:

eina_module_list_delete
eina_list_free
eina_rbtree_delete

(see ticket #286)

If you find any problem, please report in that thread


SVN revision: 41187
2009-06-24 16:56:49 +00:00
Gustavo Sverzut Barbieri b5f6c61c94 free array as well.
SVN revision: 41124
2009-06-20 07:36:30 +00:00
Lars Munch b4c12e8efe Rename public to definition as public is a reserved word in c++
SVN revision: 41077
2009-06-17 13:10:00 +00:00
Gustavo Sverzut Barbieri 6760437fdd do not add duplicate search paths to module loader.
usually libevas.so/../evas/modules is the same as libdir/evas/modules,
so avoid adding it twice.


SVN revision: 41059
2009-06-16 15:02:57 +00:00
Cedric BAIL 575b0579cd * evas: Move to Eina module and make it possible to build a libevas with
everything in it.

	Note: This patch break the module API, so make sure you recompile and install
	every thing.


SVN revision: 41055
2009-06-16 13:01:36 +00:00
Carsten Haitzler bb0e068fa1 use mutex instead of spinlock. older pthreads dont have spinlocks. also this
uses the same mutex macros used by the mutex on font objects, so it makes it
a bit simpler. old code is commented out for reference.



SVN revision: 39458
2009-03-13 09:32:42 +00:00
Carsten Haitzler 9028efcbdc fix other #ifdefs too
SVN revision: 38345
2008-12-29 11:37:44 +00:00
Carsten Haitzler 8b4a02c601 use correct #ifdef
SVN revision: 38314
2008-12-23 23:54:51 +00:00
Gustavo Sverzut Barbieri 48d7998c6e attempt to fix image preload thread bugs 1: module refcount.
image preload will use modules from threads, there is a possibility to
crash due wrong reference counting.

actually much more can fail, we need to check modules don't keep that
needs exclusive access in globals or per-Evas_Module, but that's
another issue.

TODO: replace spinlocks with atomic operations.



SVN revision: 38309
2008-12-23 21:20:43 +00:00
Vincent Torri d250e5501b Big patch to make Evas work (more or less) with Windows CE:
* when fopen used, open in binary mode
 * use Evil when fopen is used
 * clean a bit some Makefile.am and add Evil dependency where needed
 * in evas_path.c, remove useless old Windows CE code. It's managed by Evil, now
 * in Evas_Data.h, move Eina.h before EAPI is defined for Evas.
 * define _WIN32_WCE when the host is windows cee


SVN revision: 37476
2008-11-05 17:21:04 +00:00
Cedric BAIL 465b76a017 Remove Evas_List from Evas.
SVN revision: 36942
2008-10-21 16:31:05 +00:00
doursse 37607b5e8e config.h is already included in evas_common.h
SVN revision: 34599
2008-05-18 22:28:10 +00:00
doursse 219831980f * Remove Windows code in evas_module.c and use evilness instead
* Allow Windows Mobile to correctly load dll's
 * Use correct scheme for EAPI on Windows and include config.h when necessary
 * add -mwin32 to compiler flags when compiling with cegcc


SVN revision: 34024
2008-03-14 16:49:49 +00:00
Mike Frysinger ada82df743 __USE_GNU is an internal define not meant for people to use and _BSD_SOURCE is implied by _GNU_SOURCE
SVN revision: 33619
2008-01-26 06:01:00 +00:00
doursse a7c193bac3 Add EVAS_MODULES_DIR in the list of paths to search
for the modules. The order and locations are:

1. ~/.evas/modules/
2. $(EVAS_MODULE_DIR)/evas/modules/
3. dladdr/evas/modules/
4. PREFIX/evas/modules/


SVN revision: 32098
2007-10-17 09:29:18 +00:00
doursse fd9e6e06bf WIN32 is not always defined on Windows platform, while _WIN32 is. Remove trailing spaces and replace c++ comments by C ones
SVN revision: 31302
2007-08-13 12:13:03 +00:00
kiwi a001af9e23 fix some warnings, mostly missing "void" when a function has no parameters
SVN revision: 30474
2007-06-27 10:57:54 +00:00
doursse 2bbb2619f9 add the DirectDraw engine. Evas is now available on Windows (tm)
SVN revision: 30089
2007-05-27 06:43:23 +00:00
tilman 936b791547 a bunch of constness fixes
SVN revision: 29871
2007-05-06 11:29:37 +00:00
Carsten Haitzler ecb6a65a69 1. abort on invalid stringshared del's - bad stuff and should be trapped.
2. disable module cleaning for now.


SVN revision: 29842
2007-05-04 08:18:07 +00:00
Carsten Haitzler 6e452edfd4 patches applied as per emails :)
SVN revision: 28302
2007-02-10 17:23:09 +00:00
ningerso 5bcce9f86b Patch from Glen Larsen to fix dlopen failure handling in module loader.
SVN revision: 28213
2007-02-03 09:33:26 +00:00
Carsten Haitzler 3f4b2a65bf tune the unloads to be conservative but effective.
SVN revision: 25955
2006-09-18 09:47:34 +00:00
Carsten Haitzler 3115a52684 and i implemented module UNLOADING. given enough cycles of non-use of a
module and no references, it will get.... UNLOADED :)


SVN revision: 25954
2006-09-18 09:40:29 +00:00
sebastid e55f7b27b2 Functions used by modules must be EAPI
SVN revision: 25526
2006-09-06 07:33:40 +00:00
ningerso d85048c93f Did some cache miss profiling with a large number of transient text objects
and found that reordering the evas list containing the font path list was
actually hurting cache performance. Frequent cache misses occurred in
evas_mempool_free in it's main loop. So removing the list node and re adding it
actually decreased cache performance in some cases. This would also cause memory
allocation bouncing if mempools were not used.

Added evas_list_promote_list to move a list node to the beginning of a list.
Changed reordering lists to use evas_list_promote_list.


SVN revision: 24387
2006-08-04 10:00:50 +00:00
sebastid a17c875ddc Add const.
Remove unused variables.


SVN revision: 23027
2006-05-31 18:33:46 +00:00
doursse fd14218f04 fix a leak in xcb eng sfw (it remains one, but I don't see where it comes from). Update the xrender one. Don't use them yet (but who uses them ??), because it relies on fix of xcb that are in my hd
SVN revision: 22323
2006-04-23 15:38:23 +00:00
Carsten Haitzler 46c7d3b025 1. new engine inheritance scheme - its recursive if u want it to be, and so
far buffer, software_x11 and fb engines use it. need to make allother
software enignes use it next then the gl, cairo, xrender engines, then dfb.
it cuts out a LOT of duplicate code. makes writign a new engine or engine
variant much simpler


SVN revision: 20908
2006-03-02 08:06:10 +00:00
Carsten Haitzler 60edee650d fix egetnv of $HOME null return
SVN revision: 20158
2006-02-01 06:19:38 +00:00
Carsten Haitzler 76f7428de7 fix dfb engine - correctness changes for hash
SVN revision: 19845
2006-01-16 03:37:34 +00:00
doursse 4a56b2ee6e and now the savers...
SVN revision: 19826
2006-01-15 10:35:02 +00:00
Carsten Haitzler 8119a84cca free module paths on shutdown
SVN revision: 19825
2006-01-15 10:24:37 +00:00
Carsten Haitzler d983846eb3 fix buf free and some extras...
SVN revision: 19824
2006-01-15 10:04:39 +00:00
Carsten Haitzler 155364de9c ok - now support a first try guess based on extension - if that fails, or the
extension is unknown to match a format, try all image loader modules until
one succeeds - if all of these fail, give up.


SVN revision: 19812
2006-01-15 05:04:32 +00:00
doursse afecb8d7ca don't load the same module several times
SVN revision: 19810
2006-01-14 23:36:52 +00:00