Commit Graph

37 Commits

Author SHA1 Message Date
Paulo C. A. Cavalcanti Jr 04e660c5c7 evas: Introduce pixel_alpha_get()
The _pixel_alpha_get() function used in evas_object_image_is_inside won't
work with engines other than software - since it relies on engine data
being *always* RGBA_Image * - which is wrong for OpenGL backend that uses
Evas_GL_Image * for "engine_data" pointer.
2013-02-16 11:14:40 +01:00
Cedric BAIL 2943dcbc66 efl/evas: let the cow eat more.
memfile are not used that often like other direct pixels manipulation code.
Merging them into the same structure make sense and reduce the memory cost
for normal image object. Save between 8 to 16 bytes per image object.


SVN revision: 83843
2013-02-12 07:09:17 +00:00
Mike McCormack 089bfed33f efl: Fix a warning
Signed-off-by: Mike McCormack <mike@atratus.org>

SVN revision: 83498
2013-01-31 03:30:59 +00:00
Christopher Michael 324e84e307 Add UNUSED for parameter that is not used.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83474
2013-01-30 10:30:54 +00:00
Tom Hacohen 70156285b0 Eo dbg: Use eina_value as the debug info type.
SVN revision: 83443
2013-01-29 16:36:01 +00:00
Aharon Hillel 028f059d32 Clouseau-Eo integration: Added debug info functions.
From now, classes implementing the Eo function with id
EO_BASE_SUB_ID_DBG_INFO_GET will be able to show in Clouseau their own
specific information.
Information contents is controlled by the class itself and no more
by Clouseau. Basic types and lists are supported..

Signed-off-by: Aharon Hillel <a.hillel@samsung.com>

SVN revision: 83410
2013-01-29 06:36:23 +00:00
Cedric BAIL 1f1e0cd332 efl/evas: roll in Eina_Cow for Evas_Object_Image cur/prev.
This gave us back around 500KB at peak memory consumption in expedite.
More test to come.


SVN revision: 83376
2013-01-28 00:28:53 +00:00
Cedric BAIL 00f8823b95 efl/evas: use inheritance instead of strcmp and work around code running between destructor and free.
SVN revision: 83367
2013-01-27 08:34:22 +00:00
Cedric BAIL 8589836860 efl/evas: reduce commit to evas_object_image.
SVN revision: 83365
2013-01-27 06:31:11 +00:00
Boris Faure 11b98b32e2 evas: make e start again…
SVN revision: 83336
2013-01-25 22:21:37 +00:00
Cedric BAIL c538d8bde3 efl/evas: prevent leak and over write.
SVN revision: 83331
2013-01-25 15:19:32 +00:00
Cedric BAIL 6c7edfd38e efl/evas: roll in more cow, using a new macro per Eina_Cow.
SVN revision: 83325
2013-01-25 12:15:38 +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
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
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 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 3e7e37630f efl: group more map stuff in the same sub structure.
SVN revision: 83034
2013-01-21 09:36:19 +00:00
Cedric BAIL 380aea9e91 efl: cleanup Evas_Object_Protected_Data.
SVN revision: 83028
2013-01-21 03:51:58 +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
Ulisses Furquim 34cc6a1b15 evas/async_render: fix refcount handling of scaled image entries
SVN revision: 82961
2013-01-17 22:14:05 +00:00
Cedric BAIL 4c828392da efl: roll in first use of Eina_Cow for Evas_Object.proxy.
Expedite biggest test memory win 100KB, average 10KB.
No slow down in proxy test (+/-3%). Speed up in most other
case (average speed up is +5%), likely due to much more
cache hit.

Elementary test show a win between 100KB to 600KB depending
on the test you are considering.

Now, you can see how I intend to use Eina_Cow and the expected
win we can have from it. I don't intend to do more for the
rest of the week so you have time to comment.


SVN revision: 82924
2013-01-17 07:21:06 +00:00
Ulisses Furquim d8b2bce148 evas/async_render: fix scalecache integration
Note: scalecache is really crazy stuff, we should rewrite it or get rid of it.



SVN revision: 82912
2013-01-16 22:32:39 +00:00
Ulisses Furquim d45a54a0aa evas/async_render: do not use async event to unref image maps
SVN revision: 82663
2013-01-11 19:56:17 +00:00
Leandro Pereira ed79c2182e evas/async_render: do not use async event to unref images
Patch by: Leandro Pereira <leandro@profusion.mobi>



SVN revision: 82661
2013-01-11 19:54:12 +00:00
ChunEon Park 5cf84bb84a evas - use Eina_Bool
SVN revision: 82035
2013-01-03 05:38:03 +00:00
ChunEon Park bb39010a0a evas - removed unnecessary lines.
in the render main function, it will always reset changed field whenever it calls the post function.



SVN revision: 81974
2013-01-02 11:56:20 +00:00
ChunEon Park 4079b164b7 evas/image - return as possible as soon.
SVN revision: 81794
2012-12-28 11:41:29 +00:00
Leandro Pereira 6516727164 evas/canvas: Make sure rendering finishes before image_data_set() and image_native_set()
SVN revision: 81563
2012-12-21 17:30:44 +00:00
Gustavo Sverzut Barbieri 3f5fa6170c efl/evas_object_image_is_inside: fixed implementation.
This function was basically never working correctly. Everything was
fixed by simulating the evas_object_image_render() workflow, but
instead of actually draw we just check the pixel transparency.

Bugs fixed:

 * fails when image is scaled up (could segv) or down (incorrect values);
 * fails when image is moved to negative x,y;
 * fails when border was being used.

Now everything is fixed and seems to work properly, except I'm not
handling the map and get_pixels() cases, these are marked with ERR()
so we can fix them if someone needs.




SVN revision: 81410
2012-12-19 22:41:12 +00:00
Leandro Pereira cb10c7d019 evas: Modify software_generic and gl_x11 to with with threaded renderer
SVN revision: 81284
2012-12-18 16:28:55 +00:00
Carsten Haitzler dd00dba75e small change - dont let update rect list for image object become a
runaway endless list if evas doenst come around and render (pick it
up) any time soon - limit to 512 update rects.



SVN revision: 81039
2012-12-16 02:01:11 +00:00
Cedric BAIL ebd83134a4 efl: check that the object is not deleted or NULL before accessing it.
SVN revision: 80744
2012-12-12 09:45:49 +00:00
Gustavo Sverzut Barbieri 545057d0b1 efl/evas/filters: say goodbye.
This task wasn't completed and it was all disabled in code, then
remove it so it doesn't add cruft to be looked at.



SVN revision: 80240
2012-12-05 13:03:51 +00:00
Gustavo Sverzut Barbieri 625f6edd09 efl/evas: there is no more EVAS_FRAME_QUEUING anymore.
SVN revision: 80237
2012-12-05 12:41:47 +00:00
Paulo Alcantara dcd25a2d9c evas/image: Fix uninitialised data passed to Cserve2
If information like size, scale down, dpi or region is set to any object,
or even if reload of that object is required, evas_object_image_load() is
called and Evas needs to pass scaling information through load_opts as
evas_object_image_file_set() does to Cserve2 as well.

Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi>

Patch by: Paulo Alcantara <pcacjr@profusion.mobi>



SVN revision: 80176
2012-12-04 15:39:51 +00:00
Paulo Alcantara f8f79f8599 evas/cserve2: Add scalecache support
Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi>

Patch by: Paulo Alcantara <pcacjr@profusion.mobi>



SVN revision: 79754
2012-11-27 18:23:25 +00:00
Vincent Torri c15e9c6575 merge: and now Evas
I've tested make -j 3 install and it works nicely

I've tested expedite with software and opengl xlib,
and it works. Not tested other engines, so please
report any problems (engines or other) on the ML.

TODO: examples and tests, I'll add them later

ISSUE: Eina_Unicode size check. It indirectly depends on
       eina_config.h, which is created at the end of the
       configure script. So its size is always 0. I don't
       know how that size is used, so I can't do a lot,
       for now.


SVN revision: 78895
2012-11-04 11:51:42 +00:00