Commit Graph

6072 Commits

Author SHA1 Message Date
Carsten Haitzler bcabb2be60 and when deleting a hash item - if hash data != NULL delete EXACTLY that
entry (if there are duplicates... this will avoid removing the wrong one)



SVN revision: 36092
2008-09-19 09:36:48 +00:00
Carsten Haitzler c4624ffa93 add event_win's to all events that didnt have them before - needed.
SVN revision: 36091
2008-09-19 09:29:27 +00:00
Vincent Torri f50feadeae * add benchmark and file documentation
* reorganize a bit more. it's not finished
 * fix spellingg and formatting 
 * gnuplot file names generated by our bechmarks tests have an
   absolute time description and not H:M:S description, as this
   breaks the check out of the repo on Windows.


SVN revision: 36090
2008-09-19 05:22:43 +00:00
Cedric BAIL 286a19f5e2 Add a test app and switch from SOL_IP to IPPROTO_IP for FreeBSD.
SVN revision: 36087
2008-09-18 15:18:59 +00:00
Cedric BAIL 8bda22fced Add some type checking to Inlined List.
SVN revision: 36084
2008-09-18 14:22:48 +00:00
Cedric BAIL 80e138df1b Remove moved declaration.
SVN revision: 36082
2008-09-18 14:21:38 +00:00
Cedric BAIL 02a24e53dc Include meaningfull header.
SVN revision: 36081
2008-09-18 14:20:45 +00:00
Cedric BAIL fc08f85167 Make module path global to all bench.
SVN revision: 36080
2008-09-18 14:19:50 +00:00
Cedric BAIL ad793833c6 Set module path for all tests.
SVN revision: 36079
2008-09-18 14:17:48 +00:00
Cedric BAIL 4423005ab4 Avoid some dereferencing and provide inline for mempool alloc/free/realloc.
SVN revision: 36078
2008-09-18 14:16:47 +00:00
Cedric BAIL d4ae3fc7e1 Include the usefull header.
SVN revision: 36077
2008-09-18 14:14:30 +00:00
Cedric BAIL 210ff33edf Another forgotten initialization.
SVN revision: 36076
2008-09-18 14:12:33 +00:00
Cedric BAIL 0d9b2f3f8d Remove useless counter init/shutdown.
SVN revision: 36075
2008-09-18 12:24:07 +00:00
Cedric BAIL ce16573cb3 Add init/shutdown to benchmark and fix its users.
SVN revision: 36073
2008-09-18 10:04:46 +00:00
Cedric BAIL ac21afc37f Reduce code size.
SVN revision: 36072
2008-09-18 10:04:01 +00:00
Cedric BAIL 27040661af Use global EINA_ERROR_OUT_OF_MEMORY.
SVN revision: 36071
2008-09-18 10:03:34 +00:00
Cedric BAIL c17a9848a3 Forgotten initialization.
SVN revision: 36070
2008-09-18 10:02:40 +00:00
Cedric BAIL 9d54723060 Add forgotten declaration.
SVN revision: 36069
2008-09-18 10:01:45 +00:00
Carsten Haitzler 0a0d491cc3 disabel start/stop emits for programs - there is a good point that they are
largely useless.



SVN revision: 36064
2008-09-18 01:48:17 +00:00
Vincent Torri 54de28cc68 * add doc for counter and convert modules
* minor spelling, formatting and doxygen fixes


SVN revision: 36057
2008-09-17 18:55:54 +00:00
Gustavo Sverzut Barbieri 6956e1057b Since we use ecore, we must initilize it.
Problem: ecore reference count can drop to zero before
_ecore_evas_async_events_fd is deleted, ecore_shtudown() will finish
all fd handlers and then we would delete a now invalid pointer.



SVN revision: 36055
2008-09-17 17:19:20 +00:00
Cedric BAIL 96bfcc0395 Add another mempool test.
SVN revision: 36054
2008-09-17 16:33:16 +00:00
Cedric BAIL c9ad936b24 Add mempool check.
SVN revision: 36053
2008-09-17 15:23:09 +00:00
Cedric BAIL f3bab28c36 Fix module stuff to be able to run test in the build directory.
SVN revision: 36052
2008-09-17 15:21:16 +00:00
Cedric BAIL f7d92d57a4 Add statistics, gc support to mempool and a workaround path lookup for module.
SVN revision: 36051
2008-09-17 15:20:35 +00:00
Cedric BAIL 0dbb3917b7 We need to return something != NULL.
SVN revision: 36050
2008-09-17 15:19:07 +00:00
Cedric BAIL 730049220e Fix typo and initialization.
SVN revision: 36049
2008-09-17 15:18:35 +00:00
Cedric BAIL 84a2279a0a Remove dead directory.
SVN revision: 36048
2008-09-17 15:18:04 +00:00
Cedric BAIL 36fdd93f13 Add multicast support thanks to Matt Barclay <mbarclay@gmail.com>.
SVN revision: 36046
2008-09-17 15:08:48 +00:00
Cedric BAIL 3bf0d7ed5e Add protection for dump function also.
SVN revision: 36042
2008-09-17 08:59:47 +00:00
Cedric BAIL eeb52f487a Fix bug reported by Vincent Torri and add a test to trigger it.
SVN revision: 36041
2008-09-17 08:33:35 +00:00
Gustavo Sverzut Barbieri fb44db2211 Revert edje_smart_calculate_v4_r2, it breaks e17 shelf resize.
Not ready yet, reverting...



SVN revision: 36031
2008-09-17 01:50:16 +00:00
Gustavo Sverzut Barbieri 6c918f3d8a Do not assume fontconfig will find a font.
If you have no fonts in fontconfig, it returns NULL... believe me, it
does happen.



SVN revision: 36029
2008-09-16 22:59:59 +00:00
Gustavo Sverzut Barbieri b85bedb940 Fix indentation levels.
SVN revision: 36028
2008-09-16 21:11:38 +00:00
Gustavo Sverzut Barbieri aef095031b bin_SCRIPTS does not distribute the file, must add to EXTRA_DIST
This is stupid, so is autofoo.



SVN revision: 36027
2008-09-16 20:21:11 +00:00
Gustavo Sverzut Barbieri d044a0245a More svn:ignore
SVN revision: 36026
2008-09-16 19:44:20 +00:00
Gustavo Sverzut Barbieri e1e7256359 s/save/export/g
SVN revision: 36025
2008-09-16 19:20:21 +00:00
Davide Andreoli 3a441393b7 * Expose state visible flag
SVN revision: 36023
2008-09-16 19:01:37 +00:00
Gustavo Sverzut Barbieri d45ae6945c Add script to export GIMP images to EDC
SVN revision: 36020
2008-09-16 18:01:39 +00:00
Cedric BAIL bae88b46ff Include evas asynchronous feature.
SVN revision: 36019
2008-09-16 16:22:00 +00:00
Cedric BAIL bd2c5d6648 Add image preloading support.
This should work without performance impact for all engine.


SVN revision: 36018
2008-09-16 14:52:57 +00:00
Cedric BAIL d40ebdca1b Add real life test from E17 use.
SVN revision: 36017
2008-09-16 14:06:14 +00:00
Cedric BAIL 3f59016035 Add Ecore and Evas benchmark.
SVN revision: 36015
2008-09-16 13:50:34 +00:00
Gustavo Sverzut Barbieri f5e373abd7 Edje utilities: convert inkscape supported files to edc
SVN revision: 36008
2008-09-15 23:45:47 +00:00
Vincent Torri 7fd7cc717c * update the doc of stringshre
* fix minor warnings from doxygen


SVN revision: 36004
2008-09-15 19:58:36 +00:00
Vincent Torri 78c9527052 * add documentation. The tutorial needs to be written, though
* rename eina_arra_count() to eina_array_count_get() and
   eina_arra_get() to eina_array_data_get()


SVN revision: 36003
2008-09-15 19:17:15 +00:00
Cedric BAIL e3e2afca18 Don't compute string length when not really needed.
SVN revision: 36001
2008-09-15 13:38:42 +00:00
Cedric BAIL 1582d52c3c New stringshare implementation.
We use 256 buckets with a rbtree per bucket. The key of rbtree is the hash
on 12bits and each node of the rbtree have a list of string.

Thanks to Gustavo and Vincent for their help.


SVN revision: 36000
2008-09-15 12:54:54 +00:00
Cedric BAIL e54390798d Add more test for stringshare.
SVN revision: 35999
2008-09-15 12:44:06 +00:00
Cedric BAIL 9979edd82a Don't limite the range of the hash function. It's the dutty of the caller.
SVN revision: 35998
2008-09-15 12:35:27 +00:00
Cedric BAIL ab37298c12 Include benchmark against Evas and Ecore stringshare.
SVN revision: 35995
2008-09-15 09:59:41 +00:00
Vincent Torri a7f00b51bc * Makefile.am:
add autogen.sh in archive distribution

* configure.ac:
remove useless defines
first support of mingw32msvc compiler

* src/lib/Evil.h:
move some macro definitions

* src/lib/Makefile.am:
add evil_(fcntl/langinfo).(c/h) and install pwd.h

* src/lib/dlfcn/dlfcn.h:
remove useless ifdef

* src/lib/evil.c:
comment all code for now. It will be deleted later

* src/lib/evil_fcntl.c:
* src/lib/evil_fcntl.h:
* src/lib/evil_langinfo.c:
* src/lib/evil_langinfo.h:
move fcntl and langinfo related code to their own files

* src/lib/evil_mman.c:
remove useless inclusion

* src/lib/evil_pwd.c:
pw var is not needed with cegcc

* src/lib/evil_stdlib.c:
fix bugs, formatting

* src/lib/evil_unistd.c:
add missing declarations and fix header files

* src/lib/evil_unistd.h:
move pid_t typedef to Evil.h

* src/lib/evil_util.c:
additional include and fix a bug in output

* src/lib/pwd.h:
use EAPI from Evil.h, define struct passwd when not using cegcc

* src/lib/sys/mman.h:
use EAPI from Evil.h

* win32/common/fnmatch.c:
* win32/common/fnmatch.h:
* win32/common/fnmatch_list_of_states.c:
* win32/vs8/evil.sln:
fix and cleanup with vc++ compilation
Based on patch by Dmitriy Mazovka


SVN revision: 35993
2008-09-15 06:56:14 +00:00
Davide Andreoli bae73a2b60 * Add top level data editing functions
* Also change edje_cache.c to don\'t free the data list when creating the data_cache 

SVN revision: 35987
2008-09-14 22:30:15 +00:00
Vincent Torri 161ab7a975 Fix compilation with vc++. Based on patch by Dmitriy Mazovka
* src/lib/Evil.h:
move typedef's

* src/lib/evil.c:
remove declaration and include

* src/lib/evil_stdlib.c:
simplify mkstmp implementation
fix getenv

* src/lib/evil_unistd.c:
include correct headers for readlink and symlink


SVN revision: 35983
2008-09-14 07:07:39 +00:00
Vincent Torri 146b4a86c6 * big rework of evil: put most of functions in evil.c in their own files
* add unit test for memcpy. more will come later


SVN revision: 35979
2008-09-13 21:19:22 +00:00
Vincent Torri 892ea362f0 * fix compilation with c++ compilers
* remove trailing spaces


SVN revision: 35973
2008-09-13 07:45:47 +00:00
Vincent Torri 345bddedca add evas and ecore detection for benchmarking
SVN revision: 35969
2008-09-12 21:08:16 +00:00
Cedric BAIL 1fc6d866c2 Only set the struct one time (remove useless memset) and sync idler with animator.
SVN revision: 35966
2008-09-12 13:19:26 +00:00
Cedric BAIL 665ee944ee When you know what you do, it could make sense to remove all magic check
from Evas and win some speed boost. Use really carefully.

Still turn MAGIC_DEBUG on by default.


SVN revision: 35965
2008-09-12 13:14:08 +00:00
Cedric BAIL ac440b9533 Fix typo in the typo.
SVN revision: 35957
2008-09-11 14:49:47 +00:00
Cedric BAIL 41d40ee473 Put SDL engine priority lower as it should find a way to build a window when
every one else fail.



SVN revision: 35955
2008-09-11 14:48:34 +00:00
Cedric BAIL 3a15a282fc Add auto discovery for ecore_evas_sdl_16
SVN revision: 35954
2008-09-11 14:47:09 +00:00
Cedric BAIL be3676ef9a Fix typo.
SVN revision: 35951
2008-09-11 14:07:02 +00:00
Cedric BAIL d748ced8e1 Add ecore_evas_sdl16_new.
SVN revision: 35950
2008-09-11 13:26:40 +00:00
Cedric BAIL 1ab78edd6f Instruct the compiler to inline the most used function. This really impact speed
with big edje file.



SVN revision: 35948
2008-09-11 11:26:09 +00:00
Cedric BAIL 1e0d00d4bd Use the right function here.
SVN revision: 35947
2008-09-11 11:25:15 +00:00
Cedric BAIL 4762661711 Use bit manipulation instead of memory access, improve eet speed with big edje file.
SVN revision: 35946
2008-09-11 11:24:13 +00:00
Cedric BAIL 5811041053 This patch reduce the usage of memset by edje_match function.
I did test this patch since three month in my apps and in E, and I didn't
notice anything going wrong with it. If you experience strange bug with
matching please report them.



SVN revision: 35945
2008-09-11 11:20:42 +00:00
Cedric BAIL fd5de88682 Only update Evas_Object geometry when they are visible. This should prevent
them from being put in the evas_render_update phase.

I did extensively test this patch since a few month and didn't notice any
bug with it in my apps, nor in E. But please report anything that goes wrong
for you after this version.



SVN revision: 35944
2008-09-11 11:18:33 +00:00
Cedric BAIL 35fca3f9dd Replace big serie of if, with a cleaner switch.
SVN revision: 35943
2008-09-11 11:15:39 +00:00
Cedric BAIL 060f30aa6e Make EDJE_PROGRAM_CACHE configurable with autotools (with small fix for make it run again).
SVN revision: 35942
2008-09-11 11:14:39 +00:00
Carsten Haitzler aaa724d23c ok still doesnt work - FASTFREEZE shoudl work.. but dont.
SVN revision: 35925
2008-09-10 07:17:24 +00:00
Carsten Haitzler 0cf0cd8e15 ensure scaling multiplies are promoted to fp.
SVN revision: 35924
2008-09-10 06:40:54 +00:00
Carsten Haitzler 673efdedd5 fix scaling on edje_scale - works with smnall sizes now too. problem is
really i was chasing a freeze/thaw problem. something is up.



SVN revision: 35922
2008-09-10 06:39:57 +00:00
Carsten Haitzler c1d838efa7 promote scale to fp.
SVN revision: 35920
2008-09-10 05:43:25 +00:00
Gustavo Sverzut Barbieri 7292d49894 Add generic call to create Ecore_Evas from engine names.
One can get engine names with ecore_evas_engines_get() and present
them to its users (from --help, for example) and then give that name
to ecore_evas_new(), that accepts the name, geometry and extra options
as a string.

As I don't have all the engines here, I might have missed something
from those, tested here:

 - software_x11
 - xrender_x11
 - opengl_x11
 - directfb
 - buffer



SVN revision: 35919
2008-09-10 05:13:29 +00:00
Sebastian Dransfeld feb962a48c Remove seek guard, as it isn't updated during playing.
SVN revision: 35918
2008-09-10 05:08:00 +00:00
Sebastian Dransfeld b85e619342 Revert to not having seek_to_pos at all.
SVN revision: 35917
2008-09-10 05:05:23 +00:00
Sebastian Dransfeld ca775d8d81 EAPI
SVN revision: 35916
2008-09-10 05:00:32 +00:00
Sebastian Dransfeld 6d35cd3c98 Keep guard against seeking to the same position, but initialize to -1.
SVN revision: 35913
2008-09-10 04:29:52 +00:00
Sebastian Dransfeld cabff8277f Initialize seek variables to -1, so that seek to 0 will work.
SVN revision: 35912
2008-09-10 04:24:38 +00:00
Gustavo Sverzut Barbieri ddad2bf152 Fix usage of DirectFB FillSpans().
SVN revision: 35909
2008-09-10 00:47:33 +00:00
Gustavo Sverzut Barbieri 0a75de51f0 Revert edje calculate optimizations.
Edje is tricky, it's event processing is too weird and Cedric's
changes to make it work are not working as expected. Edje freezes
itself while processing signals, but in mouse down cb it forces
recalculate, which seems was previously ignored, but now they are not.

We should look at how to fix this and then re-apply this patch.



SVN revision: 35908
2008-09-09 23:41:42 +00:00
Gustavo Sverzut Barbieri c1c8a18b54 Brand new DirectFB engine.
ProFUSION funded the rework of DirectFB engine, it works quite well,
please report problems with it and be sure to try to uncomment the
following lines to see if it helps:

evas_engine.c: (uncomment if you notice problems)
    //#define DFB_USE_EVAS_IMAGE_DRAW 1
    //#define DFB_USE_EVAS_RECT_DRAW 1
    //#define DFB_USE_EVAS_POLYGON_DRAW 1
    //#define DFB_UPDATE_INDIVIDUAL_RECTS 1

polygon.c: (comment if you notice slowdowns, but may lead to visual problems)
    #define USE_SPAN_RECTS 1

You can also turn on debug by uncommenting in evas_engine.c:
    //#define DFB_DEBUG_IMAGE 1
    //#define DFB_DEBUG_FLAGS 1
    //#define DFB_DEBUG_ACCELERATION 1

Thanks to Denis Oliver Kropp (dok) for review and patches!



SVN revision: 35904
2008-09-09 20:27:58 +00:00
Carsten Haitzler d06c5e9efb and add a scale factor per object. right now text and textblock use it.
that's about it. a bit hacky - but works and frankly.. the idea is that u'd
set a scale factor once really and not change it per obj... most likely.




SVN revision: 35896
2008-09-09 14:14:26 +00:00
Carsten Haitzler 23e2c9e035 support an edje scaling factor. parts can selectively say "yes.. scale me!"
:)... this allows e etc. to adapt to massivelyt different dpi screens with
slickness that even svg can't get to... why? you scale just what NEEDS
scaling (text, button sizes, and other limiting elements). other bits like
borders, padding etc. can remain pixel-perfect and thus the look is amazing.
pixel-perfect drawing with scalable adapting.



SVN revision: 35895
2008-09-09 14:13:34 +00:00
Vincent Torri 780b865044 fix position_set()
SVN revision: 35891
2008-09-09 08:49:29 +00:00
Cedric BAIL c52f7b7b62 Make inline only usefull function.
Return information about potential error during eina_array_remove.



SVN revision: 35888
2008-09-08 12:19:15 +00:00
Cedric BAIL facaddde1f Ok, the patch didn't apply cleanly and some missed. Last lost change.
SVN revision: 35887
2008-09-08 11:53:59 +00:00
Cedric BAIL 1b45015b3d Another typo.
SVN revision: 35886
2008-09-08 11:41:19 +00:00
Cedric BAIL 3b7f1579f9 Patch, typo.
SVN revision: 35885
2008-09-08 11:31:36 +00:00
Cedric BAIL bbc107fc31 Another typo.
SVN revision: 35884
2008-09-08 11:17:04 +00:00
Cedric BAIL 114c50a297 Typo.
SVN revision: 35883
2008-09-08 11:11:51 +00:00
Cedric BAIL 46b7796946 Add signature support in eet.
You can use eet -s to sign a eet file and eet -c to check its signature. The
current code doesn't check any certificate trust path, only if the signature
match the certificate and that the certificate could be loaded. If that's not
the case, eet_open will fail. If the file is not signed, eet_open will just
continue to succeed.



SVN revision: 35882
2008-09-08 09:19:57 +00:00
Carsten Haitzler aa2fded0fc some notes on kerning bugs in ft2.
SVN revision: 35876
2008-09-08 02:08:43 +00:00
Vincent Torri b73180cd01 * add array doc
* eina_array_push() returns now a bool
 * fix compilation


SVN revision: 35871
2008-09-07 19:12:49 +00:00
Vincent Torri 557107790a * add accessor doc
* fix and add some links


SVN revision: 35865
2008-09-07 07:19:19 +00:00
Vincent Torri 0b6f01fec5 * add doc for iterators
* add table of content on the main page


SVN revision: 35864
2008-09-07 05:44:00 +00:00
Gustavo Sverzut Barbieri e861013485 Document the default behavior.
SVN revision: 35862
2008-09-07 02:11:46 +00:00
Gustavo Sverzut Barbieri 3f90a63416 Add Evas Clipped Smart Object.
This class covers the most common cases, usually its sub-classes will
have to implement resize and override one or two methods at most,
making the smart object usage less error prone and easier.

Default behavior is:
 - add: creates a hidden clipper with "infinite" size;
 - del: delete all children objects;
 - move: move all objects relative relatively;
 - resize: not defined;
 - show: if there are children objects, show clipper;
 - hide: hides clipper;
 - color_set: set the color of clipper;
 - clip_set: set clipper of clipper;
 - clip_unset: unset the clipper of clipper;

Documentation explains an easy way to inherit from this class and
still be able to use overridden methods.



SVN revision: 35861
2008-09-07 02:10:17 +00:00