platform/upstream/efl.git
11 years agoAdd new wayland_egl engine that does buffer age, double/triple
Chris Michael [Fri, 31 May 2013 07:39:15 +0000 (08:39 +0100)]
Add new wayland_egl engine that does buffer age, double/triple
buffering, etc, and uses evas gl_common (so glview/simple tests in elm work).

Signed-off-by: Chris Michael <cp.michael@samsung.com>
11 years agoAdd evas_wl_main file.
Chris Michael [Fri, 31 May 2013 08:37:48 +0000 (09:37 +0100)]
Add evas_wl_main file.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
11 years agoAdd start of new wayland_egl engine code.
Chris Michael [Thu, 30 May 2013 05:53:50 +0000 (06:53 +0100)]
Add start of new wayland_egl engine code.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
11 years agoAdd evas_engine header file
Chris Michael [Wed, 29 May 2013 13:03:21 +0000 (14:03 +0100)]
Add evas_engine header file

Signed-off-by: Chris Michael <cp.michael@samsung.com>
11 years agoAdd new Evas_Engine_Wayland_Egl header.
Chris Michael [Wed, 29 May 2013 12:52:20 +0000 (13:52 +0100)]
Add new Evas_Engine_Wayland_Egl header.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
11 years agoRemove old wayland_egl engine code in prep for rewrite to use gl_common.
Chris Michael [Wed, 29 May 2013 12:43:10 +0000 (13:43 +0100)]
Remove old wayland_egl engine code in prep for rewrite to use gl_common.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
11 years agoedje - support edc source_visible
ChunEon Park [Fri, 31 May 2013 08:35:30 +0000 (17:35 +0900)]
edje - support edc source_visible

11 years agoedje - indent fix.
ChunEon Park [Fri, 31 May 2013 07:53:04 +0000 (16:53 +0900)]
edje - indent fix.

11 years agoedje/edje_cc - fixed typo
ChunEon Park [Fri, 31 May 2013 07:04:33 +0000 (16:04 +0900)]
edje/edje_cc - fixed typo

11 years agoedje - updated vim syntax
ChunEon Park [Fri, 31 May 2013 06:55:57 +0000 (15:55 +0900)]
edje - updated vim syntax

11 years agofeed Changelog for --enable-image-loader-xyz
Jérémy Zurcher [Thu, 30 May 2013 22:09:59 +0000 (00:09 +0200)]
feed Changelog for --enable-image-loader-xyz

11 years agoMakefile: compilation succed without png support
Jérémy Zurcher [Thu, 30 May 2013 21:47:35 +0000 (23:47 +0200)]
Makefile: compilation succed without png support

use --enable-image-loader-png=no
related to T64 and D133

11 years agoimage loaders m4: configure fail if not found and option is "yes" or "static"
Jérémy Zurcher [Thu, 30 May 2013 21:45:11 +0000 (23:45 +0200)]
image loaders m4: configure fail if not found and option is "yes" or "static"

fix T64
related to D133

11 years agoimage loaders m4: add ARG_ENABLE_EVAS_IMAGE_LOADER to rule them all
Jérémy Zurcher [Thu, 30 May 2013 21:31:32 +0000 (23:31 +0200)]
image loaders m4: add ARG_ENABLE_EVAS_IMAGE_LOADER to rule them all

possibles values: yes | static | auto | no

11 years agoimprove eina_str_convert_len docs
Mike Blumenkrantz [Thu, 30 May 2013 06:41:55 +0000 (07:41 +0100)]
improve eina_str_convert_len docs

11 years agoevas/render - this is insane to me since nowhere it release the render_pre_done FALSE...
ChunEon Park [Thu, 30 May 2013 05:50:47 +0000 (14:50 +0900)]
evas/render - this is insane to me since nowhere it release the render_pre_done FALSE pairly.

This causes the textblock layouting problem.

It should be checked when does it really render_pre() called.

If someone knows the reason of this, please ping me.

11 years agoevas/textblock - revert the textblock pre_render_done.
ChunEon Park [Thu, 30 May 2013 05:43:41 +0000 (14:43 +0900)]
evas/textblock - revert the textblock pre_render_done.
Fundamentally, this is not a point of the problem.

somewhere pre_render caller is inccorrect without releasing the flag.

11 years agoadd support for text/x-moz-url DND operations
Mike Blumenkrantz [Wed, 29 May 2013 11:46:51 +0000 (12:46 +0100)]
add support for text/x-moz-url DND operations

11 years agoadd eina_str_convert_len() for converting from encodings which contain '\0' characters
Mike Blumenkrantz [Wed, 29 May 2013 11:42:37 +0000 (12:42 +0100)]
add eina_str_convert_len() for converting from encodings which contain '\0' characters

eina_str_convert() is GUARANTEED to break when doing any such encoding (eg. UTF16->UTF8). I don't know who added the original function, but this is very bad, and we should almost certainly deprecate eina_str_convert() so people are not surprised when they are unable to convert strings as expected.

11 years agofix evas partial swapotkeep the full re-render in the rects if it switches to full...
Carsten Haitzler (Rasterman) [Wed, 29 May 2013 12:37:13 +0000 (21:37 +0900)]
fix evas partial swapotkeep the full re-render in the rects if it switches to full mode.

11 years agoFix potential memleak reported by klockwork.
Chris Michael [Wed, 29 May 2013 12:24:49 +0000 (13:24 +0100)]
Fix potential memleak reported by klockwork.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
11 years agoFix possible memory leak reported by klockwork.
Chris Michael [Wed, 29 May 2013 12:11:25 +0000 (13:11 +0100)]
Fix possible memory leak reported by klockwork.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
11 years agofix evas gl engine partial swap to do full swap in full mode.
Carsten Haitzler (Rasterman) [Wed, 29 May 2013 08:30:42 +0000 (17:30 +0900)]
fix evas gl engine partial swap to do full swap in full mode.

11 years agoFix typo in Evas headers
Jihoon Kim [Wed, 29 May 2013 01:27:10 +0000 (10:27 +0900)]
Fix typo in Evas headers

11 years agoNEWS and ChangeLog for "Stop leaking evas objects in Lua."
David Walter Seikel [Tue, 28 May 2013 23:31:22 +0000 (09:31 +1000)]
NEWS and ChangeLog for "Stop leaking evas objects in Lua."

We are doing latest on top now in ChangeLog?

11 years agoedc.vim: Add 'file' as keyword
Eduardo Lima (Etrunko) [Tue, 28 May 2013 22:11:15 +0000 (19:11 -0300)]
edc.vim: Add 'file' as keyword

It is a valid keyword used in a 'data' block

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
11 years agoedje_cc: create data hash if it doesn't exist
Eduardo Lima (Etrunko) [Tue, 28 May 2013 19:07:31 +0000 (16:07 -0300)]
edje_cc: create data hash if it doesn't exist

The check was being done only in 'data.item' handler

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
11 years agoevas/textblock - fix the textblock to render pre again if it needs to be relayouting
ChunEon Park [Tue, 28 May 2013 14:07:24 +0000 (23:07 +0900)]
evas/textblock - fix the textblock to render pre again if it needs to be relayouting

11 years agoevas/textblock - fix indent
ChunEon Park [Tue, 28 May 2013 14:00:15 +0000 (23:00 +0900)]
evas/textblock - fix indent

11 years agoevas/textgrid: Fix memory leak.
Stefan Schmidt [Tue, 28 May 2013 12:38:01 +0000 (13:38 +0100)]
evas/textgrid: Fix memory leak.

Free allocated color before we return in the failure case.

11 years agoeet_image: Free bigend_data in all error cases.
Stefan Schmidt [Tue, 28 May 2013 12:31:47 +0000 (13:31 +0100)]
eet_image: Free bigend_data in all error cases.

We have been leaking bigend_data if we hit any of the error cases.

11 years agoExample for eldbus_address_connection_get() functions
Eduardo Lima (Etrunko) [Mon, 27 May 2013 21:14:44 +0000 (18:14 -0300)]
Example for eldbus_address_connection_get() functions

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
11 years agoeldbus: Welcome two new APIs and one connection type
Eduardo Lima (Etrunko) [Thu, 23 May 2013 20:08:16 +0000 (17:08 -0300)]
eldbus: Welcome two new APIs and one connection type

eldbus_address_connection_get() and eldbus_private_address_connection_get()
are similar to the respective _connection_get() counterparts, but enables
users to connect to buses other than system or session.

The new type introduced for those connections is ELDBUS_CONNECTION_TYPE_ADDRESS
and they require an additional address parameter, which will be passed to
dbus_connection_open().

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
11 years agoeldbus: New internal function _eldbus_connection_free()
Eduardo Lima (Etrunko) [Thu, 23 May 2013 19:36:29 +0000 (16:36 -0300)]
eldbus: New internal function _eldbus_connection_free()

This is actually a split on the _eldbus_connection_unref() function, that
will be called either when the refcount reaches 0 or to force the deletion
of an Eldus_Connection.

The second use case will be contemplated in a following patch.

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
11 years agoeldbus: Reset value of fd_handler after deletion
Eduardo Lima (Etrunko) [Mon, 27 May 2013 21:17:54 +0000 (18:17 -0300)]
eldbus: Reset value of fd_handler after deletion

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
11 years agoDeprecate old dnd functions (useless, improperly named, etc)
Chris Michael [Tue, 28 May 2013 10:44:53 +0000 (11:44 +0100)]
Deprecate old dnd functions (useless, improperly named, etc)

Add shiny new Drag-N-Drop code ;)

Signed-off-by: Chris Michael <cp.michael@samsung.com>
11 years agoAdd ecore_wl_input_get function
Chris Michael [Tue, 28 May 2013 10:44:10 +0000 (11:44 +0100)]
Add ecore_wl_input_get function
Remove global dnd object (not necessary)

Signed-off-by: Chris Michael <cp.michael@samsung.com>
11 years agoDon't create a shell surface for DND window types.
Chris Michael [Tue, 28 May 2013 10:43:03 +0000 (11:43 +0100)]
Don't create a shell surface for DND window types.
Set surface_user_data in attach function to be the buffer we are
attaching (NB: Expected by some compositors like weston).

Signed-off-by: Chris Michael <cp.michael@samsung.com>
11 years agoAdd dnd_offer and dnd_end event types.
Chris Michael [Tue, 28 May 2013 10:42:37 +0000 (11:42 +0100)]
Add dnd_offer and dnd_end event types.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
11 years agoDeprecate/remove some internal functions that were just not needed.
Chris Michael [Tue, 28 May 2013 10:41:46 +0000 (11:41 +0100)]
Deprecate/remove some internal functions that were just not needed.
Add a wl_data_offer to Ecore_Wl_Dnd_Source

Signed-off-by: Chris Michael <cp.michael@samsung.com>
11 years agoDeprecate some old dnd functions that were named poorly or just did
Chris Michael [Tue, 28 May 2013 10:40:30 +0000 (11:40 +0100)]
Deprecate some old dnd functions that were named poorly or just did
not function.
Add Dnd Offer and Dnd End events.
Add a new window type (dnd).
Add new functions for dnd

Signed-off-by: Chris Michael <cp.michael@samsung.com>
11 years agoMove window function(s) declaration(s) to be with the rest of the
Chris Michael [Tue, 21 May 2013 10:51:31 +0000 (11:51 +0100)]
Move window function(s) declaration(s) to be with the rest of the
window functions.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
11 years agoDefine Ecore_Wl_Input_Group and Ecore_Wl_Dnd_Group for doxy
Chris Michael [Tue, 21 May 2013 10:50:15 +0000 (11:50 +0100)]
Define Ecore_Wl_Input_Group and Ecore_Wl_Dnd_Group for doxy

Signed-off-by: Chris Michael <cp.michael@samsung.com>
11 years agoAdd missing 'void' for function declaration.
Chris Michael [Tue, 21 May 2013 10:43:37 +0000 (11:43 +0100)]
Add missing 'void' for function declaration.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
11 years agodeprecate badly named ecore_wl_dnd_drag_start function.
Chris Michael [Tue, 21 May 2013 10:43:00 +0000 (11:43 +0100)]
deprecate badly named ecore_wl_dnd_drag_start function.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
11 years agoEcore: fix warnings
Daniel Zaoui [Sun, 26 May 2013 11:26:40 +0000 (14:26 +0300)]
Ecore: fix warnings

11 years agoAdd ECORE_IMF_INPUT_PANEL_LAYOUT_DATETIME, EDJE_INPUT_PANEL_LAYOUT_DATETIME layout
Jihoon Kim [Mon, 27 May 2013 07:14:52 +0000 (16:14 +0900)]
Add ECORE_IMF_INPUT_PANEL_LAYOUT_DATETIME, EDJE_INPUT_PANEL_LAYOUT_DATETIME layout

11 years agoAt this stage of engine shutdown, the eina log domain has been removed
Chris Michael [Fri, 24 May 2013 20:36:05 +0000 (21:36 +0100)]
At this stage of engine shutdown, the eina log domain has been removed
and is not valid, so don't use ERR to print a message.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
11 years agominor formatting fixes.
Chris Michael [Fri, 24 May 2013 20:32:58 +0000 (21:32 +0100)]
minor formatting fixes.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
11 years agoDon't allocate space for a mode name unless the nameLength is greater
Chris Michael [Fri, 24 May 2013 17:25:03 +0000 (18:25 +0100)]
Don't allocate space for a mode name unless the nameLength is greater
than 0.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
11 years agoecore_con: Server start time was not initialized correctly
Daniel Willmann [Fri, 24 May 2013 15:06:51 +0000 (16:06 +0100)]
ecore_con: Server start time was not initialized correctly

ecore_con_event_server_add() is never called (at least not in the
standard TCP connection case, so initialize svr->start_time in
ecore_con_server_add(). This shouldn't regress any other behaviour as
this is done at the very beginning and any later change to start_time
will still happen.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
11 years agoForwardport NEWS/Changelog of Guillaume's/Cravix's fixes
Daniel Willmann [Fri, 24 May 2013 15:02:43 +0000 (16:02 +0100)]
Forwardport NEWS/Changelog of Guillaume's/Cravix's fixes

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
11 years agocl->start_time isnt initialized, so ecore_con_client_uptime_get() just doesnt work...
Guillaume Friloux [Fri, 24 May 2013 12:06:08 +0000 (14:06 +0200)]
cl->start_time isnt initialized, so ecore_con_client_uptime_get() just doesnt work. This patch fixes it. Bug found by asdfuser.

11 years agoI missed a timer_reset for the case we did set a server timeout and no client timeout...
Guillaume Friloux [Fri, 24 May 2013 11:53:07 +0000 (13:53 +0200)]
I missed a timer_reset for the case we did set a server timeout and no client timeout. Thanks again Cravix for the awesome reports.

11 years agotests/ecore_con: Sadly IPv4 is still more prevalent than IPv6
Daniel Willmann [Fri, 24 May 2013 13:42:11 +0000 (14:42 +0100)]
tests/ecore_con: Sadly IPv4 is still more prevalent than IPv6

Switch to IPv4 loopback - especially since our build slaves don't have
IPv6 support...

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
11 years agoEvas_Common_Header.h: fixed documentation.
Daniel Juyung Seo [Fri, 24 May 2013 11:22:07 +0000 (20:22 +0900)]
Evas_Common_Header.h: fixed documentation.

11 years agoecore_con: Reenable ecore_con tests - they seem fine (but don't use port 8080)
Daniel Willmann [Fri, 24 May 2013 10:47:47 +0000 (11:47 +0100)]
ecore_con: Reenable ecore_con tests - they seem fine (but don't use port 8080)

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
11 years agoFixes another bug found by Cravix (IRC) where even if data is going over the socket...
Guillaume Friloux [Fri, 24 May 2013 09:51:09 +0000 (11:51 +0200)]
Fixes another bug found by Cravix (IRC) where even if data is going over the socket, we still timeout the connection if ecore_con_client_timeout_set and ecore_con_server_timeout_set are used! This is even a worst bug than the previous one. This patch should also be applied and tested on 1.8. Thx Cravix!

11 years agoFix a bug introduced on 2011-12-10 05:42:32 (GMT) and nobody ever noticed because...
Guillaume Friloux [Fri, 24 May 2013 08:20:33 +0000 (10:20 +0200)]
Fix a bug introduced on 2011-12-10 05:42:32 (GMT) and nobody ever noticed because there isnt enough people that cares about ecore_con (and the lower level libs in general). Big thanks to Cravix (IRC) for finding this issue!

11 years agoevas - removed inherit mode in display mode.
ChunEon Park [Fri, 24 May 2013 09:03:49 +0000 (18:03 +0900)]
evas - removed inherit mode in display mode.

it's not necessary at this moment and i don't think it's useful neither.

if you need, then please add it at the moment.

11 years agoeina_list.h: fixed documentation source formatting while reading the code.
Daniel Juyung Seo [Thu, 23 May 2013 11:26:44 +0000 (20:26 +0900)]
eina_list.h: fixed documentation source formatting while reading the code.

11 years agoecore_pipe.c: fixed fd handler increasing issue.
Daniel Juyung Seo [Wed, 22 May 2013 11:40:56 +0000 (20:40 +0900)]
ecore_pipe.c: fixed fd handler increasing issue.

Call _ecore_pipe_unhandle() when you return from _ecore_pipe_read() or the fd will never be closed.
This fixed increasing numbers of fd handler issue when you call ecore_pipe_add/del repeatedly.
In that case, reusing ecore_pipe is recommended though.

11 years agomove ecore-x fd handler creation to after ecore-x init has finished so we can ignore...
Mike Blumenkrantz [Wed, 22 May 2013 09:14:43 +0000 (10:14 +0100)]
move ecore-x fd handler creation to after ecore-x init has finished so we can ignore more x events during startup

11 years agoedje/textblock - keep the styles if the new font by the text class is applied.
ChunEon Park [Wed, 22 May 2013 09:04:34 +0000 (18:04 +0900)]
edje/textblock - keep the styles if the new font by the text class is applied.

text is already did. for the consistency textblock should be kept the same way.

11 years agoedje - oops remove not intended lines
ChunEon Park [Wed, 22 May 2013 07:53:31 +0000 (16:53 +0900)]
edje - oops remove not intended lines

11 years agoedje/text - trivial change (typo, indent)
ChunEon Park [Wed, 22 May 2013 07:49:43 +0000 (16:49 +0900)]
edje/text - trivial change (typo, indent)

11 years agoTypo--
David Walter Seikel [Wed, 22 May 2013 02:56:28 +0000 (12:56 +1000)]
Typo--

11 years agoFunction prototype not needed.
David Walter Seikel [Wed, 22 May 2013 02:56:15 +0000 (12:56 +1000)]
Function prototype not needed.

11 years agoStop leaking evas objects in Lua.
David Walter Seikel [Wed, 22 May 2013 02:55:41 +0000 (12:55 +1000)]
Stop leaking evas objects in Lua.

Bug and test case reported by Leif Middelschulte.

11 years agoRevert "Evas eo compat: Freeze object events when deleting."
Tom Hacohen [Tue, 21 May 2013 15:31:39 +0000 (16:31 +0100)]
Revert "Evas eo compat: Freeze object events when deleting."

This reverts commit 3c53b824d861ef91662fbe523e4457b6a6d3c8b7.

This is a bad idea for now, as we need to mark some more events as hot
(including compat generated ones) before doing it.

11 years agoEvas eo compat: Freeze object events when deleting.
Tom Hacohen [Tue, 21 May 2013 14:07:34 +0000 (15:07 +0100)]
Evas eo compat: Freeze object events when deleting.

In the past events wouldn't be called for deleted objects, retain that
behaviour.

11 years agoEo: Made del event an hot event (we always want to get it).
Tom Hacohen [Tue, 21 May 2013 14:06:05 +0000 (15:06 +0100)]
Eo: Made del event an hot event (we always want to get it).

11 years agoFix memleak in ecore_x_randr_crtc_settings_set.
Chris Michael [Tue, 21 May 2013 13:29:37 +0000 (14:29 +0100)]
Fix memleak in ecore_x_randr_crtc_settings_set.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
11 years agoevas_object_textblock.c: fixed a typo in the documentation.
Daniel Juyung Seo [Tue, 21 May 2013 10:21:33 +0000 (19:21 +0900)]
evas_object_textblock.c: fixed a typo in the documentation.

11 years agoSet the surface user data to be the current buffer.
Chris Michael [Tue, 21 May 2013 09:51:15 +0000 (10:51 +0100)]
Set the surface user data to be the current buffer.

NB: This is needed because some compositors (Weston) are expecting
wl_surface_get_user_data to return a buffer.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
11 years agoUse ecore_wl_window_surface_find to get the Ecore_Wl_Window.
Chris Michael [Tue, 21 May 2013 09:49:40 +0000 (10:49 +0100)]
Use ecore_wl_window_surface_find to get the Ecore_Wl_Window.

NB: This is needed because some compositors like Weston are expecting
the wl_surface user_data to be a buffer, not some arbitrary data.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
11 years agoAdd function to get a Ecore_Wl_Window from a wl_surface.
Chris Michael [Tue, 21 May 2013 09:46:04 +0000 (10:46 +0100)]
Add function to get a Ecore_Wl_Window from a wl_surface.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
11 years agoevas: always set degre to zero before using it.
Cedric Bail [Mon, 20 May 2013 10:23:36 +0000 (19:23 +0900)]
evas: always set degre to zero before using it.

11 years agoecore_evas/x: Fixed that cursor object was not disappear
Ryuan Choi [Tue, 21 May 2013 00:38:19 +0000 (09:38 +0900)]
ecore_evas/x: Fixed that cursor object was not disappear

When moved mouse among two objects having cursor set,
EVAS_CALLBACK_MOUSE_OUT and EVAS_CALLBACK_MOUSE_IN are fired.

I observed that evas_object_del in callback of EVAS_CALLBACK_MOUSE_OUT
calls EVAS_CALLBACK_MOUSE_IN
so that newly added cursor object was detached.

11 years agoevas/gl: Use GL_FRAMEBUFFER_BINDING, which is available on both.
Rafael Antognolli [Mon, 20 May 2013 17:19:45 +0000 (14:19 -0300)]
evas/gl: Use GL_FRAMEBUFFER_BINDING, which is available on both.

Instead of a define from GL_DRAW_FRAMEBUFFER_BINDING to the above one,
just use it directly since it's available on gles and full gl.

11 years agoWith antognolli's framespace changes, we no longer need to subtract
Chris Michael [Mon, 20 May 2013 17:18:09 +0000 (18:18 +0100)]
With antognolli's framespace changes, we no longer need to subtract
framespace from the output/canvas to get proper x/y coordinates.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
11 years agofix eldbus generator memleak when failing to fetch args
Mike Blumenkrantz [Mon, 20 May 2013 10:12:33 +0000 (11:12 +0100)]
fix eldbus generator memleak when failing to fetch args

11 years agoecore: animator can get called with the same value due to rounding and range limit.
Cedric Bail [Mon, 20 May 2013 09:59:43 +0000 (18:59 +0900)]
ecore: animator can get called with the same value due to rounding and range limit.

11 years agoevas: make canvas event to hot to be frozen.
Cedric Bail [Mon, 20 May 2013 09:17:01 +0000 (18:17 +0900)]
evas: make canvas event to hot to be frozen.

11 years agoeo: some event should not be frozen.
Cedric Bail [Mon, 20 May 2013 09:16:39 +0000 (18:16 +0900)]
eo: some event should not be frozen.

11 years agoremove about 16m mem for mesa for extra evgl context
Carsten Haitzler (Rasterman) [Mon, 20 May 2013 09:09:50 +0000 (18:09 +0900)]
remove about 16m mem for mesa for extra evgl context

only creating the extra evasgl context on demand when/if needed and
thus save 16m of memory allocations corresponding to the extra context

11 years agoFix antognolli build break when --with-opengl=es.
Chris Michael [Sun, 19 May 2013 06:13:03 +0000 (07:13 +0100)]
Fix antognolli build break when --with-opengl=es.

Basically, EGL does not define a GL_DRAW_FRAMEBUFFER_BINDING so we
test for that and if not found then define it to be
GL_FRAMEBUFFER_BINDING

Signed-off-by: Chris Michael <devilhorns@comcast.net>
11 years agoedje/vim - syntax updated
ChunEon Park [Sat, 18 May 2013 18:21:03 +0000 (03:21 +0900)]
edje/vim - syntax updated

11 years agoRevert this, there is no build break apparently. Give cookie back to
Chris Michael [Sat, 18 May 2013 16:48:13 +0000 (17:48 +0100)]
Revert this, there is no build break apparently. Give cookie back to
antognolli

Revert "include evas_gl_common.h"

This reverts commit 81cee894e13257c6cedfdddbcab3e453cc5cd01a.

11 years agoinclude evas_gl_common.h
Chris Michael [Sat, 18 May 2013 14:53:55 +0000 (15:53 +0100)]
include evas_gl_common.h

(Bad antognolli, No cookie !!)

NB: Fixes build break !!! If we are going to use defines from glext.h,
let's be sure to have the necessary header included Yes ?? ;)

Signed-off-by: Chris Michael <devilhorns@comcast.net>
11 years agodisable all the waiting on gl - squeeze some more performance out of gl.
Carsten Haitzler (Rasterman) [Sat, 18 May 2013 01:04:37 +0000 (10:04 +0900)]
disable all the waiting on gl - squeeze some more performance out of gl.

11 years agoevas/gl: Restore framebuffer after texture creation.
Rafael Antognolli [Fri, 17 May 2013 23:28:07 +0000 (20:28 -0300)]
evas/gl: Restore framebuffer after texture creation.

If we don't do this, the framebuffer object used on shader_array_flush()
will be wrong.

NOTE: shader_array_flush() should take care of setting the fbo
correctly.

11 years agoedje: Fix edje box crash
José Roberto de Souza [Fri, 17 May 2013 21:44:24 +0000 (18:44 -0300)]
edje: Fix edje box crash

When a signal change a state of a edje box to a state that was already active
and we add/del a item of edje box a crash happen.

Example:
test.edc:

collections {
group {
name: "box_text";
parts {
part {
name: "elm.box.buttons";
type: BOX;
description {
state: "default" 0.0;
min: 0 100;
max: 9999 100;
align: 0 0;
box {
layout: "horizontal";
min: 1 1;
}
visible: 0;
}
description {
state: "show" 0.0;
inherit: "default" 0.0;
visible: 1;
}
}
}
programs {
program {
signal: "show,buttons";
source: "gui";
action: STATE_SET "show" 0.0;
transition: ACCELERATE 1;
target: "elm.box.buttons";
}
program {
signal: "hide,buttons";
source: "gui";
action: STATE_SET "default" 0.0;
transition: ACCELERATE 1;
target: "elm.box.buttons";
}
}
}
}

test.c:

//Compile with:
//gcc -g test.c -o test `pkg-config --cflags --libs elementary edje ecore`

static int count = 0;

static Eina_Bool _fill(void *data)
{
int i;
Evas_Object *layout = data;
Evas_Object *edje = elm_layout_edje_get(layout);

edje_object_part_box_remove_all(edje, "elm.box.buttons", EINA_TRUE);
elm_layout_signal_emit(layout, "show,buttons", "gui");

printf("_fill()\n");

for (i = 0; i < 5; i++, count++)
{
Evas_Object *btn;
char buf[50];

btn = elm_button_add(layout);
snprintf(buf, sizeof(buf), "button %d", count);
elm_object_text_set(btn, buf);
edje_object_part_box_append(edje, "elm.box.buttons", btn);
evas_object_show(btn);
}

return EINA_TRUE;
}

EAPI_MAIN int
elm_main(int argc, char **argv)
{
Evas_Object *win, *bg, *layout;

win = elm_win_add(NULL, "test", ELM_WIN_BASIC);
elm_win_title_set(win, "Test");
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
    elm_win_autodel_set(win, EINA_TRUE);

bg = elm_bg_add(win);
elm_bg_color_set(bg, 255, 255, 255);
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, bg);
evas_object_show(bg);

layout = elm_layout_add(win);
elm_layout_file_set(layout, "test.edj", "box_text");
evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_show(layout);

_fill(layout);
ecore_timer_add(5, _fill, layout);

evas_object_resize(win, 800, 320);
evas_object_show(win);

elm_run();
    elm_shutdown();

    return 0;
}
ELM_MAIN()

(gdb) bt
0x00000000 in ?? ()
0xb7add287 in _edje_box_layout_calculate_coords ()
   from /usr/lib/libedje.so.1
0xb7add5cd in _edje_box_layout () from /usr/lib/libedje.so.1
0xb7c98ff7 in _evas_object_box_smart_calculate ()
   from /usr/lib/libevas.so.1
0xb7c97a36 in evas_object_smart_calculate () from /usr/lib/libevas.so.1
0xb7ae1b12 in _edje_part_recalc_single () from /usr/lib/libedje.so.1
0xb7ae3380 in _edje_part_recalc () from /usr/lib/libedje.so.1
0xb7ae59ff in _edje_recalc_do () from /usr/lib/libedje.so.1
0xb7b3603a in _edje_smart_calculate () from /usr/lib/libedje.so.1
0xb7c97be2 in evas_call_smarts_calculate () from /usr/lib/libevas.so.1
0xb7cc7d88 in evas_render_updates_internal () from /usr/lib/libevas.so.1
0xb7ba7c97 in _ecore_evas_x_render () from /usr/lib/libecore_evas.so.1
0xb7ba27c6 in _ecore_evas_idle_enter () from /usr/lib/libecore_evas.so.1
0xb7c27212 in _ecore_idle_enterer_call () from /usr/lib/libecore.so.1
0xb7c28d3d in _ecore_main_loop_iterate_internal ()
   from /usr/lib/libecore.so.1
0xb7c2941f in ecore_main_loop_begin () from /usr/lib/libecore.so.1
0xb7e8def8 in elm_run () from /usr/lib/libelementary.so.1
0xb7f6f8ee in appcore_efl_main () from /usr/lib/libappcore-efl.so.1
0xb7644bb5 in app_efl_main () from /usr/lib/libcapi-appfw-application.so.0
0x08074c5a in main (argc=1, argv=0xbffffb64) at src/main_tizen.c:155

==2036== Jump to the invalid address stated on the next line
==2036==    at 0x0: ???
==2036==    by 0x44C35CC: _edje_box_layout (in /usr/lib/libedje.so.1.7.99)
==2036==    by 0x42E8FF6: _evas_object_box_smart_calculate (in /usr/lib/libevas.so.1.7.99)
==2036==    by 0x42E7A35: evas_object_smart_calculate (in /usr/lib/libevas.so.1.7.99)
==2036==    by 0x44C7B11: _edje_part_recalc_single (in /usr/lib/libedje.so.1.7.99)
==2036==    by 0x44C937F: _edje_part_recalc (in /usr/lib/libedje.so.1.7.99)
==2036==    by 0x44CB9FE: _edje_recalc_do (in /usr/lib/libedje.so.1.7.99)
==2036==    by 0x451C039: _edje_smart_calculate (in /usr/lib/libedje.so.1.7.99)
==2036==    by 0x42E7BE1: evas_call_smarts_calculate (in /usr/lib/libevas.so.1.7.99)
==2036==    by 0x4317D87: evas_render_updates_internal (in /usr/lib/libevas.so.1.7.99)
==2036==    by 0x4465C96: _ecore_evas_x_render (in /usr/lib/libecore_evas.so.1.7.99)
==2036==    by 0x44607C5: _ecore_evas_idle_enter (in /usr/lib/libecore_evas.so.1.7.99)
==2036==  Address 0x0 is not stack'd, malloc'd or (recently) free'd

We called anim->start aftwards just to be sure to stick to something if
all fail.

11 years agotests/ecore_animators: Don't rely on consistent timing
Daniel Willmann [Fri, 17 May 2013 17:16:09 +0000 (18:16 +0100)]
tests/ecore_animators: Don't rely on consistent timing

This may break under heavy load so we shouldn't rely on it. Instead make
sure that time only moves forward.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
11 years agoecore_animator: Ensure correct start/end values are returned.
Daniel Willmann [Thu, 16 May 2013 17:09:14 +0000 (18:09 +0100)]
ecore_animator: Ensure correct start/end values are returned.

Make sure pos_map(0) == 0 and pos_map(1) == 1

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
11 years agotests/ecore: Add test for ecore_animator
Daniel Willmann [Thu, 16 May 2013 17:07:56 +0000 (18:07 +0100)]
tests/ecore: Add test for ecore_animator

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
11 years agoeina_fp: Fix eina_f32p32_mul rounding issues
Daniel Willmann [Fri, 17 May 2013 13:43:19 +0000 (14:43 +0100)]
eina_fp: Fix eina_f32p32_mul rounding issues

Previous multiplication just truncated the fraction part to 16 bits. If
we round properly we can actually increase accuracy a bit.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
11 years agoeina_test_fp: Test multiplication and division as well
Daniel Willmann [Fri, 17 May 2013 15:46:23 +0000 (16:46 +0100)]
eina_test_fp: Test multiplication and division as well

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
11 years agoeo ptr ind: fix comments
Jérémy Zurcher [Fri, 17 May 2013 09:39:01 +0000 (11:39 +0200)]
eo ptr ind: fix comments

11 years agoeo ptr ind: empty tables are freed except 1 kept as spare
Jérémy Zurcher [Fri, 17 May 2013 08:35:16 +0000 (10:35 +0200)]
eo ptr ind: empty tables are freed except 1 kept as spare

- this reduces unused memory usage
- the spare table avoids the free/alloc corner case