Commit Graph

905 Commits

Author SHA1 Message Date
Christopher Michael 034721bcd8 Add check to make sure output buffer creation worked.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83250
2013-01-24 09:17:00 +00:00
Christopher Michael 8a7ba73169 Add code to create the output buffer of the render engine and set the
render_engine functions.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83249
2013-01-24 09:16:55 +00:00
Christopher Michael 0fdbf94c23 Add initial swapper code.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83248
2013-01-24 09:16:52 +00:00
Christopher Michael 7e13dc5459 Add initial header file for swapper.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83247
2013-01-24 09:16:49 +00:00
Christopher Michael 1d3cfce8a7 Remove include for evas_outbuf.h
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83246
2013-01-24 09:16:46 +00:00
Christopher Michael f76eb06874 Add initial swap buffer code.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83245
2013-01-24 09:16:42 +00:00
Christopher Michael 82e807115f Add initial swap buffer header file.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83244
2013-01-24 09:16:39 +00:00
Christopher Michael 9b9fdf840b Set tilebuffer tile size in engine setup.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83243
2013-01-24 09:16:36 +00:00
Christopher Michael fe75b1bf24 Try to create new tilebuffer in engine setup.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83242
2013-01-24 09:16:22 +00:00
Christopher Michael f0a6c5ca26 During engine setup, try to allocate a new Render_Engine structure.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83241
2013-01-24 09:16:19 +00:00
Christopher Michael 753aa3d487 Add base function for engine output setup.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83240
2013-01-24 09:16:15 +00:00
Christopher Michael b1cadea6c5 Add local function prototype for engine output setup.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83239
2013-01-24 09:16:12 +00:00
Christopher Michael b17b417b73 Add test for 'swapping' (ie: buffering).
NB: This env variable is going to change for the wayland engine(s).

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83238
2013-01-24 09:16:09 +00:00
Christopher Michael 5296f0c2cd Add some evas_common init functions if we have not previously
initialized this engine before.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83237
2013-01-24 09:16:06 +00:00
Christopher Michael 7cd113ea47 Test for valid engine output to see if we need to create it.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83236
2013-01-24 09:16:03 +00:00
Christopher Michael 1e41dcd37f Try to get the Evas public data from eo.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83235
2013-01-24 09:15:59 +00:00
Christopher Michael 98e58d34a1 Try to cast the passed in info to our engine info.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83234
2013-01-24 09:15:56 +00:00
Christopher Michael 57bb76834d Try to free the allocated engine info structure.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83233
2013-01-24 09:15:53 +00:00
Christopher Michael 80f8fcfeeb Return our allocated engine info structure.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83232
2013-01-24 09:15:49 +00:00
Christopher Michael f3d29d891b Fill in some default properties for our engine info.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83231
2013-01-24 09:15:15 +00:00
Christopher Michael c13e0e7b5f Try to allocate our engine info structure.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83230
2013-01-24 09:15:12 +00:00
Christopher Michael 3cdf6d6a50 Tell the Evas_Module about our functions and return success.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83229
2013-01-24 09:15:08 +00:00
Christopher Michael 77a205eac8 Define which functions this engine will override from the
software_generic functions.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83228
2013-01-24 09:15:05 +00:00
Christopher Michael aa1bd96e2d Copy the inherited functions into our local variable so we can
override some functions.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83227
2013-01-24 09:15:00 +00:00
Christopher Michael 1dbfd6c541 Try to inherit functions from the software_generic engine.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83226
2013-01-24 09:14:57 +00:00
Christopher Michael 145e8f8ced On module open, create our log domain
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83225
2013-01-24 09:14:54 +00:00
Christopher Michael 6340706c3f Unregister the module log domain on shutdown of the engine.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83224
2013-01-24 09:14:50 +00:00
Christopher Michael e91f12c8e9 Add skeleton code for evas module open/close, etc.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83223
2013-01-24 09:14:46 +00:00
Christopher Michael bc8f383098 Add skeleton code for evas engine functions.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83222
2013-01-24 09:14:31 +00:00
Christopher Michael 318eb79973 Add variable(s) for engine function overrides.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83221
2013-01-24 09:14:27 +00:00
Christopher Michael 440c4b72e0 Add prototypes for evas engine functions.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83220
2013-01-24 09:14:22 +00:00
Christopher Michael 12320fcb5e Add variable for log domain.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83219
2013-01-24 09:14:19 +00:00
Christopher Michael 0579a8b82c Add Render_Engine structure.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83218
2013-01-24 09:14:16 +00:00
Christopher Michael a76b0245b9 Add initial evas_engine C file.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83217
2013-01-24 09:14:13 +00:00
Christopher Michael fd10050f53 Add intial Outbuf structure.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83216
2013-01-24 09:14:10 +00:00
Christopher Michael 158fe19edb Add enum for render mode (double, triple, etc).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83215
2013-01-24 09:14:07 +00:00
Christopher Michael 7e85b84098 Add Outbuf Depth enum.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83214
2013-01-24 09:14:04 +00:00
Christopher Michael 9d1d8f4c63 Add initial evas_engine header file.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83213
2013-01-24 09:14:00 +00:00
Christopher Michael 1577c5913e Add initial Evas_Engine_Wayland_Shm header file and remove legacy
'dest' field from engine info structure.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83212
2013-01-24 09:13:57 +00:00
Christopher Michael 0b5e371bc7 Remove old wayland shm engine code.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83211
2013-01-24 09:13:54 +00:00
Sung Park 0c7425a0aa Add EVAS_GL_DIRECT_MEM_OPT to enable on-demand fallback memory
allocation policy for EvasGL direct rendering.

Also made some variable name changes and some other minor fixes.



SVN revision: 83199
2013-01-24 04:51:51 +00:00
Cedric BAIL 5d335bb50b efl/eina: it's really an error, thanks Ulisses.
SVN revision: 83198
2013-01-24 03:54:47 +00:00
Cedric BAIL efa613597d efl/eina: one more typo.
SVN revision: 83197
2013-01-24 03:04:05 +00:00
Cedric BAIL eff597ea1e eina: fix some warning.
SVN revision: 83196
2013-01-24 02:58:00 +00:00
Cedric BAIL b1d856bc8b efl/eina: detect when freeing pointer inside an allocated memory.
SVN revision: 83195
2013-01-24 02:44:14 +00:00
Cedric BAIL 3cfd345a91 efl/eina: simplify mempool logic.
SVN revision: 83194
2013-01-24 02:23:59 +00:00
Cedric BAIL f64ab2c8dd efl/evas: revert the revert, and indeed the bug was somewhere else.
SVN revision: 83193
2013-01-24 01:50:57 +00:00
Cedric BAIL be0f7fcaa0 efl/evas: don't over write when not needed.
SVN revision: 83192
2013-01-24 01:43:03 +00:00
Cedric BAIL 05b4d1b3cd efl/eina: improve Eina_Cow.
- Add valgrind macro arround Eina_Cow internal data.
- Add a #define for Eina_Magic on Eina_Cow returned pointer.
- Fix a bug done during free on a mempool data (Need to improve
mempool to catch this one more easily next time).


SVN revision: 83191
2013-01-24 01:42:20 +00:00
Cedric BAIL d282e075ef efl/eina: don't over align when the structure is already aligned.
SVN revision: 83189
2013-01-24 01:38:12 +00:00
Cedric BAIL 65344d7a7f efl/eina: let us know where that wrong Eina_Magic was in memory.
SVN revision: 83188
2013-01-24 01:37:20 +00:00
Christopher Michael 8ce1afd62f leak--
If we do not have a private palette here, we free the buffer and
return NULL, However we never free'd the xob that was allocated
previously.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83163
2013-01-23 11:12:52 +00:00
Christopher Michael 8aead73fe5 Free the previously allocated rectangle is we do not need it.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83162
2013-01-23 11:07:59 +00:00
Christopher Michael c4b536e500 Do not allocate Outbuf_Region if we do not need it (leak--).
- If the output buffer has a 'onebuf' and we are going to return
that, then we do not need to allocate an Outbuf_Region.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83161
2013-01-23 11:07:55 +00:00
Christopher Michael b07683009a leak--. If we are returning NULL on buffer_new, then free any allocated xob
structure.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83158
2013-01-23 10:55:04 +00:00
Carsten Haitzler 07c3ce0bbe ummm this really fubars stuff up cedric.. revert. put it back when u
have figured things out. :)



SVN revision: 83143
2013-01-23 10:07:31 +00:00
Stefan Schmidt f57257b3ec efl/ecore(xcb: Port leak fix from xlib to xcb backend
SVN revision: 83136
2013-01-23 09:51:53 +00:00
Stefan Schmidt 4cc93b9f2c efl/ecore_x: Fix leak of data.
If we fail we still have the malloced data. Free it in this case. Bot
commit for devilhors.

SVN revision: 83135
2013-01-23 09:51:47 +00:00
Stefan Schmidt b9d18d770b efl: Switch from deprecated eina_unicode_utf8_get_next to eina_unicode_utf8_next_get
SVN revision: 83130
2013-01-23 09:09:57 +00:00
ChunEon Park fd23523a02 ecore - ECORE_CALLBACK_DONE is right contextually.
SVN revision: 83125
2013-01-23 07:41:00 +00:00
Carsten Haitzler 64c4f34bc0 sorry - have to revert this as this brings the efl tree build to a
grinding halt - it wasn't great before.. but now it's totally broken. :(
e.g.:

/bin/bash ../libtool  --tag=CC   --mode=link ccache gcc -std=gnu99
-O2 -g -pipe -march=native -fvisibility=hidden -ffast-math -W -Wall
-Wextra -Wno-shadow -Wno-unused-but-set-parameter   -o bin/eet/eet
bin/eet/bin_eet_eet-eet_main.o -fvisibility=hidden -fdata-sections
-ffunction-sections -Wl,--gc-sections -fno-strict-aliasing
-Wl,--as-needed -Wl,--no-copy-dt-needed-entries    lib/eet/libeet.la

libtool: link: ccache gcc -std=gnu99 -O2 -g -pipe -march=native
-fvisibility=hidden -ffast-math -W -Wall -Wextra -Wno-shadow
-Wno-unused-but-set-parameter -o bin/eet/.libs/eet
bin/eet/bin_eet_eet-eet_main.o -fvisibility=hidden -fdata-sections
-ffunction-sections -Wl,--gc-sections -fno-strict-aliasing
-Wl,--as-needed -Wl,--no-copy-dt-needed-entries  lib/eet/.libs/libeet.so
/usr/bin/ld: bin/eet/bin_eet_eet-eet_main.o: undefined reference to
symbol 'eina_iterator_next'
/usr/bin/ld: note: 'eina_iterator_next' is defined in DSO
/usr/local/lib/libeina.so.1 so try adding it to the linker command line
/usr/local/lib/libeina.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status



SVN revision: 83112
2013-01-22 23:48:04 +00:00
Carsten Haitzler 5e8f9c0689 oops - minor "never wil happen" leak - free rect.
SVN revision: 83110
2013-01-22 23:31:43 +00:00
Gustavo Sverzut Barbieri f7106d372a fix cserve2 module dependencies.
they use evas, not the same libraries as evas.


SVN revision: 83106
2013-01-22 22:18:21 +00:00
Daniel Willmann fecf68a886 efl: Unbreak evas gif-loader animation support
Always returning -1 for the frame duration does not have the desired
effect. Fix the logic checking whether eina_file_open has succeeded.

Animated GIFs play way too fast without this.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>

SVN revision: 83100
2013-01-22 19:00:08 +00:00
José Roberto de Souza ba63fa7ed2 efl/edbus: Fix edbus_name_owner_changed() when bus name is not on bus
If we pass the last argument as TRUE, that means user want to know the actual
bus id of the bus name and if the bus name is not registered it never notify
the user.

This bug was insert when fixing another one, because of that there more code
here to fix the previous bug too.

Patch by: José Roberto de Souza <zezsouza@gmail.com>



SVN revision: 83082
2013-01-22 13:34:34 +00:00
José Roberto de Souza 623a73d1ed efl/edbus: Init ecore on test suites
Patch by: José Roberto de Souza <zezsouza@gmail.com>



SVN revision: 83081
2013-01-22 13:34:25 +00:00
Cedric BAIL 36bdaab9c2 efl: another easy to kill, almost 5% in memory save per Evas_Object_Image.
SVN revision: 83073
2013-01-22 10:59:14 +00:00
Cedric BAIL c0e62fb818 efl: remove a forgotten deprecated call.
SVN revision: 83069
2013-01-22 10:47:47 +00:00
Cedric BAIL 4d8dffc411 efl: remove useless code.
SVN revision: 83065
2013-01-22 09:58:36 +00:00
Mike Blumenkrantz 10a10310e8 rebase dns.c against upstream
SVN revision: 83058
2013-01-22 08:01:13 +00:00
Sung Park d606adf10d Applied on-demand memory allocation policy for Evas GL Surface
for direct rendering optimization.  For direct rendering in EvasGL,
it falls back to FBO rendering if the conditions are not met.  Before,
the fallback resources were created in the beginning but now they are
created and destroyed on need base.



SVN revision: 83057
2013-01-22 07:00:12 +00:00
Cedric BAIL 3070dfac2d efl: move Evas_Object map data to there own Eina_Cow pointer.
NOTE: Overall speedup of 7%. No benchmark on memory consumption yet
as they are still running ask me directly to get the number later
today.


SVN revision: 83052
2013-01-22 03:56:00 +00:00
Cedric BAIL 94b31ce5da efl: simplify logic of eina_cow.
SVN revision: 83051
2013-01-22 03:52:55 +00:00
Cedric BAIL a102b14686 efl: not sure of that one, but remove use of eina_safety_check in inline function.
SVN revision: 83050
2013-01-22 02:14:57 +00:00
Cedric BAIL d32ee023e3 efl: missing deprecated user.
SVN revision: 83049
2013-01-22 02:14:07 +00:00
Cedric BAIL 336e0c5e38 efl: deprecate eina_unicode_utf8_get_next, add eina_unicode_utf8_next_get.
SVN revision: 83048
2013-01-22 02:00:55 +00:00
Rafael Antognolli 43894851a7 efl/ecore_evas/wayland: Report the requested window width x height.
Before this commit, when using any of the wayland backends, if the user
requested an ecore_evas window of width x height, the reported size of
the window would include the frames width and height.

Now the requested size is stored on the ecore_evas and reported when
ecore_evas_geometry_get() is used, although the ecore_evas is still
created with additional space for the frame area.

This is one of the reasons causing bug #1673.

SVN revision: 83042
2013-01-21 16:05:12 +00:00
Rafael Antognolli 167c19ca29 efl/evas/examples: Remove framespace offset from example.
The example should not account for the framespace, since this is handled
inside ecore_evas already.

This change partially fix #1673.

SVN revision: 83041
2013-01-21 16:05:08 +00:00
Cedric BAIL 066543089d efl: inline eina_unicode_utf8_get_next.
SVN revision: 83035
2013-01-21 09:37:14 +00:00
Cedric BAIL 3e7e37630f efl: group more map stuff in the same sub structure.
SVN revision: 83034
2013-01-21 09:36:19 +00:00
Jihoon Kim 56c020fbba edje_entry: fix warning by clang
SVN revision: 83033
2013-01-21 07:12:39 +00:00
Carsten Haitzler 87fdbd56e0 fix ximage get error sync problem.
SVN revision: 83029
2013-01-21 04:31:39 +00:00
Cedric BAIL 380aea9e91 efl: cleanup Evas_Object_Protected_Data.
SVN revision: 83028
2013-01-21 03:51:58 +00:00
Carsten Haitzler 01739d4cc1 oops - forgot to force 24bpp to 32bpp in drm swapper.
SVN revision: 83027
2013-01-21 03:37:46 +00:00
Cedric BAIL 5ae84c97ce efl: use new eina_cow macro to clean stuff a little.
SVN revision: 83026
2013-01-21 03:12:39 +00:00
Cedric BAIL 5bd8b33906 efl: add eina_cow helper macro.
SVN revision: 83025
2013-01-21 03:11:29 +00:00
Gustavo Sverzut Barbieri df701d8ca2 some clang warning cleanups i forgot to commit
SVN revision: 83024
2013-01-21 00:22:35 +00:00
Gustavo Sverzut Barbieri 0f528092f8 fix bug spotted by clang
SVN revision: 83017
2013-01-20 14:25:34 +00:00
Gustavo Sverzut Barbieri 8d2b64ed3b fix bug spotted by clang
SVN revision: 83016
2013-01-20 14:25:11 +00:00
Gustavo Sverzut Barbieri 1486f40f9b fix bug spotted by clang.
SVN revision: 83015
2013-01-20 14:24:39 +00:00
Cedric BAIL 41b70693b7 efl: fix leak in eina_cow.
Patch by Paulo Alcantara <pcacjr@zytor.com>.


SVN revision: 83014
2013-01-20 11:02:48 +00:00
Aharon Hillel dad5336272 eet: eet_connection.c fixed memory allocation Changed the usage of alloca() to malloc() to support big-mem-alloc This was required to support Clouseau
Signed-off-by: Aharon Hillel <a.hillel@samsung.com>

SVN revision: 83010
2013-01-20 08:43:29 +00:00
Gustavo Sverzut Barbieri ee3575e8c8 fix missing linkage with -lrt for shm_open users.
strange that nobody except hdante noticed this before, but it was
missing linkage with -lrt in libemotion (due generic being static) and
ecore_evas/extn.



SVN revision: 83007
2013-01-19 14:59:39 +00:00
Jihoon Kim 787ee80d0a ecore_imf: fix typo in ecore_imf_example.c
SVN revision: 83002
2013-01-19 06:18:31 +00:00
Gustavo Sverzut Barbieri 15af942bf7 make clean should also delete gcda files from lcov
SVN revision: 82998
2013-01-18 19:50:00 +00:00
Gustavo Sverzut Barbieri c6358ff322 fix evas_cserve2 utils linkage and includes.
they are basic eina apps, not evas (use EINA_CFLAGS), they just use
evas_cs2.h for types and enums.

they also must link with eina.



SVN revision: 82995
2013-01-18 19:30:44 +00:00
Tom Hacohen 21a6a84667 Eo: Changed NDEBUG to EO_DEBUG.
This was stupid from the start, but now it casuse even more issues.
We'll have to just add a configure option to it when the time comes.

SVN revision: 82989
2013-01-18 16:57:57 +00:00
Tom Hacohen 7b9e24bef4 Eo tests: Run all the eo testing suites.
SVN revision: 82988
2013-01-18 16:13:34 +00:00
Tom Hacohen 37efa5efd7 Eo tests: Fix function overrides test to not test some things when NDEBUG is used.
SVN revision: 82987
2013-01-18 16:13:30 +00:00
Stefan Schmidt 506a7bc1fe efl/imf test: Remove unused modules varibale.
If you copy and paste functions make sure you adjust for all variables you use. :)

SVN revision: 82984
2013-01-18 15:45:49 +00:00