Commit Graph

22026 Commits

Author SHA1 Message Date
Rafael Antognolli b9836fbc07 Revert "ecore_audio: Add alsa support"
This reverts commit 4db03f700c.
2013-05-03 17:44:07 -03:00
Rafael Antognolli 70e882cefb Revert "ecore_audio: Remove old structs that we don't need anymore"
This reverts commit 96d9869684.
2013-05-03 17:44:01 -03:00
Rafael Antognolli d8b0c6e1da ecore/evas events: Use evas_event_input_multi_move to report events.
Same as using evas_event_input_mouse_move.
2013-05-03 17:19:14 -03:00
Rafael Antognolli f490c4e5aa evas/events: Add evas_event_input_multi_move().
Same as evas_event_input_mouse_move, but for multi_move.
2013-05-03 17:19:13 -03:00
Rafael Antognolli 4b9a80a063 ecore/evas events: Use evas_event_input_mouse_move to report events.
Ecore_Evas_Input should use this function to report mouse move events.
The previous used function should be used to refeed events, or to
artificially feed mouse move events to the canvas. Basically every other
feed_mouse_move use case that is not an event from the input system.
2013-05-03 16:45:33 -03:00
Rafael Antognolli f09e493bc2 evas/events: Add evas_event_input_mouse_move().
This function should be used internally by the input system
(Ecore_Evas_Input) to feed Evas with move events. The x,y event info is
relative to the base of the window/surface, instead of the 0,0 of the
canvas.

This case only happens for now under Wayland, where the 0,0 of the
canvas is translated due to the window decorations that are drawn by the
client.
2013-05-03 16:45:33 -03:00
Jérémy Zurcher f769128dca eo ptr ind: pack memory, use in mmap fifo as recycle trash
- pack active flag and generation nbr in an _Eo_Id_Entry struct
  - replace Eina_Trash with a fifo which lives in mmaped memory owned by eo_id.
  - fifo uses indexes instead of pointers to spare memory
  - never used entries are served first, then those in the fifo
    are reused, thus we ensure that a freed entry won't soon be reused.
2013-05-03 21:28:32 +02:00
Jérémy Zurcher 88cf0cf460 eo suite: add ptr indirection coverage test 2013-05-03 21:13:03 +02:00
Daniel Willmann 96d9869684 ecore_audio: Remove old structs that we don't need anymore
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-05-03 17:04:11 +01:00
Daniel Willmann 4db03f700c ecore_audio: Add alsa support
This is not well tested and thus disabled by default

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-05-03 17:04:11 +01:00
Carsten Haitzler 73a088141e oops merge me 2013-05-03 23:28:30 +09:00
Carsten Haitzler e0a78afef0 oh copying way too much data into vbo's... we copied alloc size not
num size.. and alloc size is much bigger as it makes room for 1024
quads per alloc increase (6*1024 vertexes etc.). literally this drops
e17's cpu usage while compositing stuff by 40%...at least in my test
case.
2013-05-03 23:25:15 +09:00
Carsten Haitzler 1a81f0a8c2 force scissor to always be on indicating partial gl update region so
gpu can.. do more sensible things.
2013-05-03 19:31:28 +09:00
Daniel Zaoui 08d81394aa Eo: fix for castings. 2013-05-02 15:31:57 +03:00
Rafael Antognolli d5fe89b32d ecore_evas/wayland: Add missing frame width and height.
It must be used when calling the window new function too.
2013-05-02 07:32:14 -03:00
Rafael Antognolli 6fc19b8dc2 ecore_evas/wayland: Only set a default framespace if we have a frame.
If Ecore_Evas is requested to draw its own frame, then set the
framespace too. Otherwise, keep it at 0,0 + 0x0, which means not
framespace offset at all (and the window will have exactly the
requested size).
2013-05-02 07:32:14 -03:00
Carsten Haitzler e8228afff6 dont get swapmode (and thus map buffer) unless we have at least SOME
update rects for this frame.
2013-05-02 19:31:47 +09:00
Carsten Haitzler c8def7a756 SCREW YOU GIT!... here is my fix for jack daniels leak! 2013-05-02 16:48:43 +09:00
Carsten Haitzler f8c9a8d167 revert the revert... damn you git!
Revert "Revert "Efl: replace eo_data_get for objects data referencing.""

This reverts commit b64a2994b3.
2013-05-02 16:47:16 +09:00
Carsten Haitzler b64a2994b3 Revert "Efl: replace eo_data_get for objects data referencing."
This reverts commit 654a3f5f94.
2013-05-02 14:17:19 +09:00
Daniel Zaoui af401b4083 Eo: fix for unitialized value 2013-05-01 21:45:57 +03:00
Daniel Willmann 37c400eb6b ecore_audio: Document the remaining in-/outputs
Also remove the Classes section from the Ecore_Audio_Group, we don't
need it as the pages are linked automatically

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-05-01 18:20:12 +01:00
Daniel Willmann f8c7f96e05 ecore_audio: Add documentation for ecore_audio_obj_out
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-05-01 17:45:15 +01:00
Daniel Willmann a101ad2867 ecore_audio: Add documentation for ecore_audio_obj_in
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-05-01 17:41:54 +01:00
Daniel Willmann c249dc8cee ecore_audio: Update documentation and document ecore_audio_obj
Remove old unused function declarations

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-05-01 17:36:19 +01:00
Chris Michael 5dde3b3bfd Add 'mode' and 'lost_back' fields to render_engine.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-01 11:42:05 +01:00
Chris Michael d7ab7b5c95 Add enum for swap mode.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-01 11:42:05 +01:00
Chris Michael 1f229105f4 Fix check for Outbuf alpha.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-01 11:42:05 +01:00
Chris Michael 67c2a38144 Ensure destination_alpha is set in Outbuf when we (re)configure.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-01 11:42:05 +01:00
Chris Michael c7192a56f4 Add evas_outbuf_reconfigure function.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-01 11:42:05 +01:00
Chris Michael ac4f1191ea Change rotation to unsigned int.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-01 11:42:05 +01:00
Chris Michael 843e5df1e5 Add evas_outbuf_reconfigure function prototype
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-01 11:42:05 +01:00
Chris Michael e6d993f774 Free any rendering rectangles when we free the render_engine.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-01 11:42:05 +01:00
Daniel Zaoui 654a3f5f94 Efl: replace eo_data_get for objects data referencing. 2013-05-01 10:37:08 +03:00
Daniel Zaoui f6a37f88d2 Eo: Add reference functions for objects data
We want to introduce a new mechanism concerning the data of the Eo
objects.
The goal is to improve the memory management by defragmenting the memory
banks used by the Eo objects. The first phase has been done by raster
and consists in allocating the objects into a separate memory region
that the one used by malloc. So now, we know where our objects are
located.
Now, moving objects means moving data of objects. The issue we have here
is that a lot of data pointers are stored into data of other objects,
e.g Evas Object data into lists for rendering...
We need a way to reference the data and eo_data_get doesn't provide us
that. So we need to improve the API for data extraction by requesting
from the developer if the data will be stored or not. Five functions are
supplied:
- eo_data_scope_get: no referencing, the data pointer is no more used after
exiting the function.
- eo_data_ref: reference the data of the object. It means that while the
data is referenced, the object cannot be moved.
- eo_data_xref: reference the data of the object but for debug purpose,
we associate the objects that references. Same behavior as eo_data_ref
for non-debug.
- eo_data_unref: unreference the data of an object.
- eo_data_xunref: unreference the data of an object previously
referenced by another object.

I deprecated the eo_data_get function. Most of the time,
eo_data_scope_get needs to be used.

In the next patches, I changed the eo_data_get to the corresponding
functions, according to the usage of the data pointer.

The next step is to find all the places in the code where the data is
stored but not yet referenced. This will be done by:
- requesting from every object to unreference all data to other objects.
- moving all the objects from one region to another
- requesting from every object to rerefenrence the data.
- debugging by hunting the segmentation faults and other weird
creatures.
2013-05-01 10:37:08 +03:00
Chris Michael dee2262214 Remove hack for changed state.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-01 08:10:54 +01:00
Chris Michael 1c442867c4 Remove duplicated wdata variable.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-01 07:56:25 +01:00
Chris Michael 127bee584d Revert "Fix some formatting."
This reverts commit 809144780e.

Conflicts:

	src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_shm.c

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-01 07:46:36 +01:00
Chris Michael 6f6a0951f2 Revert "Check for valid engine resize function before calling it."
This reverts commit 6e0075aa04.

This broke rotation (and some other things).
2013-05-01 07:32:54 +01:00
Chris Michael 9372a1e217 Revert "Reduce duplicated code and comment out region_add sections that are"
This reverts commit 279c5ac28e.

This broke rotation (and some other things).
2013-05-01 07:32:10 +01:00
Rafael Antognolli 1f58a59a61 ecore_evas/wayland: Remove hack for changed state.
Since we don't have a changed state callback on Wayland, just call the
changed_state callback of Ecore_Evas from the configure callback.
There's no need to add the Ecore_Job that will send the event later.

This makes the code cleaner, simpler, and will call the callback when
the configure event is received, which is a good place to check for the
changes.
2013-04-30 16:31:43 -03:00
Rafael Antognolli a9b500370a ecore/wayalnd: Add some getters to ecore_wl_window. 2013-04-30 16:31:35 -03:00
Daniel Juyung Seo f2d550f986 edc.vim: updated more label and constants for multisense. 2013-04-30 23:35:23 +09:00
Carsten Haitzler ab0fdf5916 it is possible with wchart_t to have it signed.. so unicode can be <
0... dont crash.
2013-04-30 23:11:01 +09:00
Chris Michael 809144780e Fix some formatting.
Reduce duplicated code in ecore_evas_wl_resize and just call the
_common_resize function
Fix segfault on elm app closing

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-30 14:55:55 +01:00
Chris Michael b9fa3b3089 We don't need evas_sync on resize here.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-30 14:55:54 +01:00
Chris Michael 6e0075aa04 Check for valid engine resize function before calling it.
In the window_configure callback, reduce duplicated/not needed code.
Account for rotation when getting new size during common_rotation_set.
Reduce duplicated code in ecore_evas_wl_resize function and just call
the _common_resize function (as that already has most of this code).

Fix issue of Segfault on elm app closing:
  - During hide we need to call evas_sync to make sure the async
    render has flushed out everything that is pending.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-30 14:55:54 +01:00
Chris Michael 279c5ac28e Reduce duplicated code and comment out region_add sections that are
not needed.
During buffer_attach, just call window_damage function which already
handles surface_damage & commit.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-30 14:55:54 +01:00
Chris Michael 53f9d6ce8c Check for a valid buffer before we free it (this fixes resize issues
when async_render).

NB: If buffer is still valid, that means compositor is not finished
with it yet, so don't release it.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-30 14:55:54 +01:00
Chris Michael 036454746b Fix update_region to use bpl from the buffer
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-04-30 14:55:54 +01:00