platform/upstream/efl.git
8 years agoevas: move all GL safe define to a common header and use it.
Cedric BAIL [Wed, 30 Sep 2015 22:12:13 +0000 (15:12 -0700)]
evas: move all GL safe define to a common header and use it.

8 years agoevas: use void * instead of struct wl_* to avoid compilation issue on system without...
Cedric BAIL [Wed, 30 Sep 2015 22:00:25 +0000 (15:00 -0700)]
evas: use void * instead of struct wl_* to avoid compilation issue on system without Wayland extention.

8 years agoedje: fix a memory leak while iterating used color class.
Cedric BAIL [Wed, 30 Sep 2015 21:59:24 +0000 (14:59 -0700)]
edje: fix a memory leak while iterating used color class.

8 years agoecore-audio: defer deletion of pulseaudio timer until after event processing
Mike Blumenkrantz [Wed, 30 Sep 2015 20:23:55 +0000 (16:23 -0400)]
ecore-audio: defer deletion of pulseaudio timer until after event processing

==27523== Invalid write of size 8
==27523==    at 0x9E855F5: _ecore_time_wrapper (ecore_audio_pulse_ml.c:132)
==27523==    by 0x647E5CF: _ecore_call_task_cb (ecore_private.h:336)
==27523==    by 0x647FB8B: _ecore_timer_expired_call (ecore_timer.c:733)
==27523==    by 0x647F9EE: _ecore_timer_expired_timers_call (ecore_timer.c:686)
==27523==    by 0x647B4CE: _ecore_main_loop_iterate_internal (ecore_main.c:1814)
==27523==    by 0x647998E: ecore_main_loop_begin (ecore_main.c:983)
==27523==    by 0x4E4F676: elm_run (elm_main.c:1099)
==27523==    by 0x12801B: elm_main (test.c:1010)
==27523==    by 0x1280C4: main (test.c:1021)
==27523==  Address 0x20537208 is 8 bytes inside a block of size 56 free'd
==27523==    at 0x4A07D6A: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==27523==    by 0x9E858ED: _ecore_pa_time_free (ecore_audio_pulse_ml.c:204)
==27523==    by 0x108DB350: free_events (socket-client.c:109)
==27523==    by 0x108DBA53: do_call (socket-client.c:157)
==27523==    by 0x9E855F0: _ecore_time_wrapper (ecore_audio_pulse_ml.c:131)
==27523==    by 0x647E5CF: _ecore_call_task_cb (ecore_private.h:336)
==27523==    by 0x647FB8B: _ecore_timer_expired_call (ecore_timer.c:733)
==27523==    by 0x647F9EE: _ecore_timer_expired_timers_call (ecore_timer.c:686)
==27523==    by 0x647B4CE: _ecore_main_loop_iterate_internal (ecore_main.c:1814)
==27523==    by 0x647998E: ecore_main_loop_begin (ecore_main.c:983)
==27523==    by 0x4E4F676: elm_run (elm_main.c:1099)
==27523==    by 0x12801B: elm_main (test.c:1010)
==27523==    by 0x1280C4: main (test.c:1021)

@fix

8 years agoEcore win32: Fix compilation.
Tom Hacohen [Wed, 30 Sep 2015 12:22:53 +0000 (13:22 +0100)]
Ecore win32: Fix compilation.

Broke in commit 015040d13f1340529cf31ee73d6b25987c23a670.
Please compile check before pushing.

8 years agoecore_win32: fix the mouse out behavior.
ChunEon Park [Wed, 30 Sep 2015 11:31:30 +0000 (20:31 +0900)]
ecore_win32: fix the mouse out behavior.

Current win32 let the mouse out regardless of mouse down status.
This is not quitely same with the x system so widget behaviors were not properly working.
Make the widget behaviors about mouse-out same to x window system
to keep the same behaviors on all window system always.

@fix

8 years agoecore_win32: code refactoring.
ChunEon Park [Wed, 30 Sep 2015 11:28:45 +0000 (20:28 +0900)]
ecore_win32: code refactoring.

replace to ECORE_CALLBACK_PASS_ON from 1 for readability.

8 years agoEo: Clean up windows code a bit more.
Tom Hacohen [Wed, 30 Sep 2015 07:37:31 +0000 (08:37 +0100)]
Eo: Clean up windows code a bit more.

Merge more parts of it with the non-windows code.

8 years agopo: Add Vietnamese translation
Thiep Ha [Wed, 30 Sep 2015 02:57:16 +0000 (11:57 +0900)]
po: Add Vietnamese translation

Summary: Add translation for Vietnamese.

Reviewers: seoz, stefan_schmidt, Hermet

Subscribers: cedric, seoz

Differential Revision: https://phab.enlightenment.org/D3117

8 years agoupower: free version string splits
Mike Blumenkrantz [Tue, 29 Sep 2015 19:24:29 +0000 (15:24 -0400)]
upower: free version string splits

@fix

8 years agoeolian generator: refactoring of file reads
Daniel Kolesa [Tue, 29 Sep 2015 13:11:52 +0000 (14:11 +0100)]
eolian generator: refactoring of file reads

8 years agoeolian generator: no need to replace newlines on win32 (lexer can deal with it)
Daniel Kolesa [Tue, 29 Sep 2015 12:54:11 +0000 (13:54 +0100)]
eolian generator: no need to replace newlines on win32 (lexer can deal with it)

8 years agoecore_buffer: fix typos in documentation
Amitesh Singh [Tue, 29 Sep 2015 03:56:40 +0000 (09:26 +0530)]
ecore_buffer: fix typos in documentation

Note by TAsn: I accidentally reverted this commit, bringing it back.

8 years agoEo: add a regression test for broken callback comparison.
Tom Hacohen [Tue, 29 Sep 2015 08:14:32 +0000 (09:14 +0100)]
Eo: add a regression test for broken callback comparison.

This bug was fixed in d889da6b12e6123073edb54d766c9af1fc6db822, but it was too
late at night to start hacking on extracting a regression test and adding it to
the suite, so adding it now.

This test makes sure that we only fallback to string comparison with legacy
events.

8 years agoecore_buffer: fix typos in documentation
Amitesh Singh [Tue, 29 Sep 2015 03:56:40 +0000 (09:26 +0530)]
ecore_buffer: fix typos in documentation

8 years agoevas: fix typos in documentation
Amitesh Singh [Tue, 29 Sep 2015 03:44:28 +0000 (09:14 +0530)]
evas: fix typos in documentation

8 years agoEo legacy events: Fix broken callback comparison
Tom Hacohen [Mon, 28 Sep 2015 23:45:34 +0000 (00:45 +0100)]
Eo legacy events: Fix broken callback comparison

Commit 37f84b7e966372384e2dfe5d191a6f907a17962e introduced a few changes
to the callback matching mechanism that made it so sometimes callbacks
would be triggered for the wrong events. The problem was there because
of the support for legacy events that forces to do string comparison
instead of the usual pointer comparison. We should only do string
comparison when we are certain one of the callbacks is a legacy
generated one.

Regression tests will follow tomorrow. Way too late here for that.

Thanks to cedric for reporting.

8 years agoEo: reduce memory usage across applications.
Tom Hacohen [Mon, 28 Sep 2015 16:18:43 +0000 (17:18 +0100)]
Eo: reduce memory usage across applications.

As described by Carsten in his email to edev ML titled:
"[E-devel] eo stability - i think we need to postpone that"
with the switch to Eo2 we significantly increased our usage of RW memory
pages, and thus significantly increased our memory usage when running
multiple applications.

The problem was that during the migration to Eo2 the op id cache and the
op description arrays were merged, causing the op description arrays to
no longer be RO. This patch enables users of Eo (mainly Eolian) to
declare those arrays as const (RO) again, saving that memory.

There might be performance implications with this patch. I had to remove
the op desc array sorting, and I used a hash table for the lookup. I
think the op desc sorting doesn't really affect performance because that
array is seldom accessed and is usually pretty short. The hash table
is not a problem either, because it's  behind the scenes, so it can be
changed to a more efficient data structure if the hash table is not good
enough. The hash table itself is also rarely accessed, so it's mostly
about memory.

Please keep an eye for any bugs, performance or excessive memory usage.
I believe this should be better on all fronts.

This commit *BREAKS ABI*.

@fix

8 years agoeolian tests: strip trailing newlines for ref file compare
Daniel Kolesa [Mon, 28 Sep 2015 17:50:07 +0000 (18:50 +0100)]
eolian tests: strip trailing newlines for ref file compare

8 years agoecore_con: fix typo in documentation
Amitesh Singh [Mon, 28 Sep 2015 16:37:26 +0000 (22:07 +0530)]
ecore_con: fix typo in documentation

8 years agoeldbus: fix typos in documentation
Amitesh Singh [Mon, 28 Sep 2015 16:29:34 +0000 (21:59 +0530)]
eldbus: fix typos in documentation

8 years agoeio: fix typo in documentation
Amitesh Singh [Mon, 28 Sep 2015 16:27:35 +0000 (21:57 +0530)]
eio: fix typo in documentation

8 years agoemotion: fix typo in documentation
Amitesh Singh [Mon, 28 Sep 2015 16:24:26 +0000 (21:54 +0530)]
emotion: fix typo in documentation

8 years agoeet: fix typo in documentation
Amitesh Singh [Mon, 28 Sep 2015 16:20:51 +0000 (21:50 +0530)]
eet: fix typo in documentation

8 years agoEolian generator: remove sentinel generation
Daniel Kolesa [Mon, 28 Sep 2015 14:59:16 +0000 (15:59 +0100)]
Eolian generator: remove sentinel generation

8 years agoEo: Fix examples and benchmarks according to recent Eo changes.
Tom Hacohen [Mon, 28 Sep 2015 15:05:08 +0000 (16:05 +0100)]
Eo: Fix examples and benchmarks according to recent Eo changes.

8 years agoEo: Remove EO_SENTINEL.
Tom Hacohen [Mon, 28 Sep 2015 14:48:17 +0000 (15:48 +0100)]
Eo: Remove EO_SENTINEL.

This was never really needed because we always had the count.
Removing this now because we are already breaking API and ABI.

8 years agoEo: Clean up windows code.
Tom Hacohen [Mon, 28 Sep 2015 14:26:51 +0000 (15:26 +0100)]
Eo: Clean up windows code.

We were keeping a struct member that wasn't really needed on windows.
Since we already broke ABI, we can afford to clean this up.

8 years agoEo: Fix eo function name getter on windows.
Tom Hacohen [Mon, 28 Sep 2015 14:24:44 +0000 (15:24 +0100)]
Eo: Fix eo function name getter on windows.

8 years agoEo: rename EO_HOT_EVENT_DESCRIPTION to EO_EVENT_DESCRIPTION_HOT.
Tom Hacohen [Mon, 28 Sep 2015 14:11:12 +0000 (15:11 +0100)]
Eo: rename EO_HOT_EVENT_DESCRIPTION to EO_EVENT_DESCRIPTION_HOT.

The old naming is inconsistent with the rest of the EFL. This fixes that.
Since we are already breaking ABI (and possibly API), we should fix this too.

8 years agoEo: Drop doc field from ops and events.
Tom Hacohen [Mon, 28 Sep 2015 13:15:15 +0000 (14:15 +0100)]
Eo: Drop doc field from ops and events.

This hasn't been used for a while. Since we are going to break Eo a bit anyway
it's a good opportunity to drop this.

This may cause a slight performance issues with legacy events, such as
smart callbacks. This shouldn't really be a problem as we've migrated away from
them. If it does, we need to migrate the remaining parts. Only relevant
for callbacks that are added before the classes are created, which
shouldn't be possible except for smart, only for old evas callbacks.

8 years agoecore: fix typos in documentation
Amitesh Singh [Mon, 28 Sep 2015 10:19:11 +0000 (15:49 +0530)]
ecore: fix typos in documentation

8 years agoedje_edit: fix typo in error message
Amitesh Singh [Mon, 28 Sep 2015 10:15:44 +0000 (15:45 +0530)]
edje_edit: fix typo in error message

8 years agoedje: fix typos in documentation
Amitesh Singh [Mon, 28 Sep 2015 10:12:51 +0000 (15:42 +0530)]
edje: fix typos in documentation

8 years agoevas - protect against invalid obj id in legacy wrapper func
Carsten Haitzler (Rasterman) [Mon, 28 Sep 2015 06:19:32 +0000 (15:19 +0900)]
evas - protect against invalid obj id in legacy wrapper func

@fix

8 years agoevas - lock render updates as this happesn to be accesed from threads
Carsten Haitzler (Rasterman) [Sun, 27 Sep 2015 17:56:28 +0000 (02:56 +0900)]
evas - lock render updates as this happesn to be accesed from threads

8 years agoevas - software x11 - lock shmpool as now shm pool entities are threaded
Carsten Haitzler (Rasterman) [Sun, 27 Sep 2015 17:55:13 +0000 (02:55 +0900)]
evas - software x11 - lock shmpool as now shm pool entities are threaded

recent changes moved shm buffer pushig to a thread and thus shm pool
has to be locked too

8 years agoEo: fix double callback deletion
Daniel Zaoui [Sat, 26 Sep 2015 19:37:03 +0000 (22:37 +0300)]
Eo: fix double callback deletion

Scenario:
- Same signal/function/data registered twice on e.g mouse_down
- On mouse_down, register mouse_move and mouse_up
- On mouse_up, unregister mouse_move

Result: mouse_move still invoked after mouse_up

Reason:
- When the mouse_move callback deletion is required, the cb is
flagged as deleted but is not freed as walking_list blocks.
- When the second (and same) has to be deleted, it will try to delete
the first again because the delete_me flag is not checked.

This patch fixes it by checking the delete_me flag when determining the
candidate.

@fix

8 years agoecore_evas-x11: unset withdrawn flag when showing the ecore evas
Mike Blumenkrantz [Sat, 26 Sep 2015 02:21:25 +0000 (22:21 -0400)]
ecore_evas-x11: unset withdrawn flag when showing the ecore evas

while the window map event seemed like a reasonable place to unset
the withdrawn state at the time, studies and further tests have proven
that the direct show callback is even more reasonable and effective

ref T2745

8 years agoecore_evas-x11: unset withdrawn state when window is mapped
Mike Blumenkrantz [Sat, 26 Sep 2015 01:19:12 +0000 (21:19 -0400)]
ecore_evas-x11: unset withdrawn state when window is mapped

according to ICCCM 4.1.4:
Newly created top-level windows are in the Withdrawn state.
Once the window has been provided with suitable properties,
the client is free to change its state...
...
Only the client can effect a transition into or out of the Withdrawn state

given that no external force can (according to spec) transition a
window out of the withdrawn state, this must be done at a reasonable
point. mapping the window seems like a reasonable point to me.

fix T2745
ref 5954289c6ce1cd55ff212428291604b981438439

@fix

8 years agoEdje entry: Make cursors to null after free
Subodh Kumar [Fri, 25 Sep 2015 08:49:18 +0000 (09:49 +0100)]
Edje entry: Make cursors to null after free

Summary:
Edje entry: Make cursors to null after free

To prevent any illegal access of cursors
can lead to crash

@fix

Test Plan: NA

Reviewers: tasn

Reviewed By: tasn

Subscribers: shilpasingh, cedric

Differential Revision: https://phab.enlightenment.org/D3093

8 years agoedje_adit: fix typos in header
Andrii Kroitor [Fri, 25 Sep 2015 07:33:04 +0000 (10:33 +0300)]
edje_adit: fix typos in header

Summary: @fix

Reviewers: cedric, raster, Hermet, reutskiy.v.v, FurryMyad

Reviewed By: FurryMyad

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3108

8 years agoevas gl - optimize updates
Carsten Haitzler (Rasterman) [Fri, 25 Sep 2015 05:38:21 +0000 (14:38 +0900)]
evas gl - optimize updates

@feature

this makes the gl engine by default not do bounding box, but instead
try and smartly merge nearby update regions. this means multiple
render passes IF your drivers support buffer age, but it seems to
actually help. in my test case on nvidia drivers which support buffer
age, i saw compositor cpu overhead drop by about 30%

8 years agoevas image object - dont update just if image is dirty
Carsten Haitzler (Rasterman) [Fri, 25 Sep 2015 05:31:28 +0000 (14:31 +0900)]
evas image object - dont update just if image is dirty

marking images as dirty is only meant to have the pixle get callback
called IF rendered. you ADD update regions to get it to be called.
this is how it has always meant to work, but evas image objects where
adding updates just if dirty. this ends up with e as a compositor
redrawing ENTIRE eindows if even a single blinking cursor is blinking.
oh so bad.

@fix

8 years agofix coverity complaint (not real bug) - CID 1324882
Carsten Haitzler (Rasterman) [Fri, 25 Sep 2015 02:17:54 +0000 (11:17 +0900)]
fix coverity complaint (not real bug) - CID 1324882

coverity complained on the n <=- 0 return. it will never be <= 0 if
rects2 is non-null. this just should make coverity less noisy.

8 years agoEvas smart: Add obj type safety check to callback_del.
Mrunal Sovani [Thu, 24 Sep 2015 13:57:10 +0000 (14:57 +0100)]
Evas smart: Add obj type safety check to callback_del.

Summary:
Evas_Smart_Data retrieved from eo_data_scope_get might be NULL
in case the input Evas_Object is not valid Evas_Object.
The smart data gets dereferenced and can cause a crash if its NULL
Hence return in case smart data is NULL.

@fix

Signed-off-by: Mrunal Sovani <mrunal.s@samsung.com>
Reviewers: raster, Hermet, tasn

Reviewed By: tasn

Subscribers: singh.amitesh, cedric, sachin.dev

Differential Revision: https://phab.enlightenment.org/D3106

8 years agoeolian: enable doc dependency parsing code
Daniel Kolesa [Thu, 24 Sep 2015 13:12:07 +0000 (14:12 +0100)]
eolian: enable doc dependency parsing code

8 years agoeolian: no need to double-sanitize paths, only do it when needed
Daniel Kolesa [Thu, 24 Sep 2015 13:09:03 +0000 (14:09 +0100)]
eolian: no need to double-sanitize paths, only do it when needed

8 years agoeolian: use fully sanitized path names everywhere
Daniel Kolesa [Thu, 24 Sep 2015 13:03:49 +0000 (14:03 +0100)]
eolian: use fully sanitized path names everywhere

8 years agoevas - make new exact regions round up to 16x16 to keep count sane
Carsten Haitzler (Rasterman) [Thu, 24 Sep 2015 11:40:38 +0000 (20:40 +0900)]
evas - make new exact regions round up to 16x16 to keep count sane

make region count sane by rounding to 16x16

8 years agoevas_canvas3d:Broken source file for generation 3D shaders
Oleksandr Shcherbina [Thu, 24 Sep 2015 11:28:53 +0000 (20:28 +0900)]
evas_canvas3d:Broken source file for generation 3D shaders

Summary:
Bug reproduce if delete evas_gl_3d_shaders.x and try re-build.
Source file include.shd for generation shader code consist m4 macro definitions.
After this revision https://phab.enlightenment.org/D3056 order of the quatation
marks in function pcf was broken.
@fix

Reviewers: cedric, Hermet

Reviewed By: Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3085

8 years agoecore_x_keygrab: fix memory leak
Ji-Youn Park [Thu, 24 Sep 2015 07:32:03 +0000 (16:02 +0830)]
ecore_x_keygrab: fix memory leak

8 years agoevas cutouts - optimize to use less cpu
Carsten Haitzler (Rasterman) [Thu, 24 Sep 2015 05:06:40 +0000 (14:06 +0900)]
evas cutouts - optimize to use less cpu

this optimizes draw ctxt cutouts by skipping small ones and
remembering the last cutout added so it isn't double-added as well as
extending the minimum cutout array to 512 and going up in blocks of
512 instead of 128. also optimize the clipping code a bit more.

8 years agoevas tiler update handler - move to region code to be accurate and fast
Carsten Haitzler (Rasterman) [Wed, 23 Sep 2015 13:22:27 +0000 (22:22 +0900)]
evas tiler update handler - move to region code to be accurate and fast

this move evas tiler that does update handling to use fully correct
regions using region.[xh]. this also removed old unused regionbuf code
and a bunch of commented out code no longer needed. much simpler now
and easier to maintain.

8 years agoevas new region code - copy region size along with region math
Carsten Haitzler (Rasterman) [Wed, 23 Sep 2015 13:21:59 +0000 (22:21 +0900)]
evas new region code - copy region size along with region math

8 years agoeina: add example for eina_tmpstr.
Shilpa Singh [Wed, 23 Sep 2015 21:27:43 +0000 (14:27 -0700)]
eina: add example for eina_tmpstr.

Summary:
Example for eina_tmpstr added.

Example tests for eina_tmpstr_add_length, eina_tmpstr_len, eina_tmpstr_del and eina_tmpstr_strftime APIs

Signed-Off By: Shilpa Singh <shilpa.singh@samsung.com>

Reviewers: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3087

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_x: remove useless assignment.
Srivardhan Hebbar [Wed, 23 Sep 2015 21:22:34 +0000 (14:22 -0700)]
ecore_x: remove useless assignment.

Summary:
The assignment of NULL will have no effect on the caller. So removed that statment.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>
Reviewers: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3095

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_con: replacing strncat with strncpy.
Srivardhan Hebbar [Wed, 23 Sep 2015 21:04:23 +0000 (14:04 -0700)]
ecore_con: replacing strncat with strncpy.

Summary:
strcat will look for the null-terminator, interpret that as the end of the string, and append the new text there, overwriting the null-terminator in the process, and writing a new null-terminator at the end of the concatenation. buf is uninitialized, so it might start with NULL, or it might not have NULL anywhere within it. So this might produce undefined behaviour. So replaced with strncpy.
Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>
Reviewers: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3094

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_exe: fix memory leak on realloc.
Srivardhan Hebbar [Wed, 23 Sep 2015 21:03:27 +0000 (14:03 -0700)]
ecore_exe: fix memory leak on realloc.

Summary: Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3091

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_example: fix file name in the example's comment.
Srivardhan Hebbar [Wed, 23 Sep 2015 19:43:09 +0000 (12:43 -0700)]
ecore_example: fix file name in the example's comment.

Summary: Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: cedric, stefan_schmidt

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3089

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_con: preventing possible NULL pointer dereference.
Srivardhan Hebbar [Wed, 23 Sep 2015 19:42:18 +0000 (12:42 -0700)]
ecore_con: preventing possible NULL pointer dereference.

Summary:
Checking if client is NULL before freeing is not of much use. If it is NULL, it would have crashed before when it was dereferenced in printf. So checking NULL before dereferencing.
Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>
Reviewers: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3088

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoedje: fix internal colorclass field
Andrii Kroitor [Wed, 23 Sep 2015 19:33:49 +0000 (12:33 -0700)]
edje: fix internal colorclass field

Summary:
Its value is never modified directly and should not be modifiled by mistake
in future.

@fix

Reviewers: Hermet, raster, reutskiy.v.v, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3104

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoeolian: preliminary doc dependency detection for external files
Daniel Kolesa [Wed, 23 Sep 2015 16:17:50 +0000 (17:17 +0100)]
eolian: preliminary doc dependency detection for external files

This doesn't quite work yet as path sanitization needs to be done for it to
work correctly. For now this code path is disabled and will be enabled once
all paths are correctly sanitized.

8 years agoecore_buffer: abort if wl_display_dispatch returns negative value
Boram Park [Wed, 23 Sep 2015 13:23:21 +0000 (09:23 -0400)]
ecore_buffer: abort if wl_display_dispatch returns negative value

Summary:
If the connection between server and client has problems, wl_display_dispatch
an return negative value. i.e. when enlightenment has been killed accidently.
In this case, app can enter into infinite loop.

Signed-off-by: Boram Park <boram1288.park@samsung.com>
Reviewers: stefan_schmidt, zmike, gwanglim, raster, devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3078

8 years agoecore_wl: abort if wl_display_dispatch returns negative value
Boram Park [Wed, 23 Sep 2015 13:22:29 +0000 (09:22 -0400)]
ecore_wl: abort if wl_display_dispatch returns negative value

Summary:
If the connection between server and client has problems, wl_display_dispatch
an return negative value. i.e. when enlightenment has been killed accidently.
In this case, app can enter into infinite loop.

Signed-off-by: Boram Park <boram1288.park@samsung.com>
Reviewers: stefan_schmidt, zmike, gwanglim, raster, devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3077

8 years agoecore_evas_extn: remove old buffer in evas render post function.
Ji-Youn Park [Wed, 23 Sep 2015 06:34:02 +0000 (15:04 +0830)]
ecore_evas_extn: remove old buffer in evas render post function.

Before, ipc_server_data(fd handler callback) is not runned between
evas_render_pre callback and evas_render_post callback.
but after async mode, hd handler can be called between render_pre and render_post.
we should remove buffer which can be used render thread, after render finished

8 years agoedje_edit: remove a redundant API declaration.
Jaehwan Kim [Wed, 23 Sep 2015 06:22:44 +0000 (15:22 +0900)]
edje_edit: remove a redundant API declaration.

edje_edit_state_font_get has twice declaration in same header file.

8 years agoevas gl engines - remove TIMDBG code that is unused entirely
Carsten Haitzler (Rasterman) [Wed, 23 Sep 2015 05:03:33 +0000 (14:03 +0900)]
evas gl engines - remove TIMDBG code that is unused entirely

8 years agoeldbus: add dbus_pending NULL check
Thiep Ha [Wed, 23 Sep 2015 00:19:59 +0000 (09:19 +0900)]
eldbus: add dbus_pending NULL check

Summary:
When we call dbus_connection_send_with_reply, the dbus_pending
can be NULL. In this case, the next call dbus_pending_call_set_notify
will cause application crash.
We should check if dbus_pending is NULL before calling dbus API.

@fix

Reviewers: cedric

Subscribers: englebass, cedric, seoz

Differential Revision: https://phab.enlightenment.org/D3081

8 years agoedje: return immediately when deleting a color class if no users exist
Mike Blumenkrantz [Tue, 22 Sep 2015 17:20:06 +0000 (13:20 -0400)]
edje: return immediately when deleting a color class if no users exist

8 years agoEctor software gradient: Fix cast from integer to pointer of wrong type.
Tom Hacohen [Tue, 22 Sep 2015 14:45:04 +0000 (15:45 +0100)]
Ector software gradient: Fix cast from integer to pointer of wrong type.

When casting pointer<->int, always use uintptr_t, not just int.

@fix

8 years agoEdje_entry: emit "cursor,changed,manual" for Home/End/PgUp/PgDown.
Mykyta Biliavskyi [Tue, 22 Sep 2015 14:12:47 +0000 (15:12 +0100)]
Edje_entry: emit "cursor,changed,manual" for Home/End/PgUp/PgDown.

Summary:
The keys Home/End/PgUp/PgDown are changes the entry cursor
position in the same way as arrow keys. For unified behavior
callback "cursor,changed,manual", added emitting signal for
those keys events.

Reviewers: tasn, cedric, herdsman, thiepha

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3055

8 years agoevas sw generic - comment NULL methods so we know what they should be
Carsten Haitzler (Rasterman) [Tue, 22 Sep 2015 09:48:17 +0000 (18:48 +0900)]
evas sw generic - comment NULL methods so we know what they should be

8 years agoedje: edje_edit - add getters/setters for a container item spans
Vyacheslav Reutskiy [Mon, 21 Sep 2015 13:48:07 +0000 (16:48 +0300)]
edje: edje_edit - add getters/setters for a container item spans

This functions designed that make the edje edit API's more
homogeneous. The all edje attribute setters and getters
treated only ony attribute, besides container API's

8 years agoedje: edje_edit - add getters/setters for a container item position
Vyacheslav Reutskiy [Mon, 21 Sep 2015 13:12:56 +0000 (16:12 +0300)]
edje: edje_edit - add getters/setters for a container item position

This functions designed that make the edje edit API's more
homogeneous. The all edje attribute setters and getters
treated only ony attribute, besides container API's

8 years agoedje: edje_edit - add getters/setters for container align
Vyacheslav Reutskiy [Mon, 21 Sep 2015 13:07:36 +0000 (16:07 +0300)]
edje: edje_edit - add getters/setters for container align

This functions designed that make the edje edit API's more
homogeneous. The all edje attribute setters and getters
treated only ony attribute, besides container API's.

8 years agoedje: edje_edit - add getters/setters for container padding
Vyacheslav Reutskiy [Mon, 21 Sep 2015 12:47:27 +0000 (15:47 +0300)]
edje: edje_edit - add getters/setters for container padding

This functions designed that make the edje edit API's more
homogeneous. The all edje attribute setters and getters
treated only ony attribute, besides container API's.

8 years agoedje: edje_edit - add getters/setters for min container size
Vyacheslav Reutskiy [Mon, 21 Sep 2015 07:25:24 +0000 (10:25 +0300)]
edje: edje_edit - add getters/setters for min container size

This functions designed that make the edje edit API's more
homogeneous. The all edje attribute setters and getters
treated only ony attribute, besides container API's.

TODO:
 * separate edje_edit_state_container_padding_get/set
 * separate edje_edit_state_container_align_set/set
 * separate edje_edit_part_item_position_get/set
 * separate edje_edit_part_item_span_get/set

8 years agoeio: add kevent backend.
Cedric BAIL [Mon, 21 Sep 2015 22:13:34 +0000 (00:13 +0200)]
eio: add kevent backend.

Summary: Implement basic kqueue/kevent backend for eio. When it comes to tracking directory changes, this backend falls back to the polling one.

Test Plan: Ran Enlightenment for several days and some other EFL apps without any issue.

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

Projects: #e_on_freebsd, #efl

Differential Revision: https://phab.enlightenment.org/D2983

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoecore_x: fixing memory leak on realloc.
Srivardhan Hebbar [Mon, 21 Sep 2015 22:06:02 +0000 (00:06 +0200)]
ecore_x: fixing memory leak on realloc.

Summary:
If realloc fails, it returns NULL. Then whatever the memory the ignore_list was pointing to would be leaked. So freeing it now.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>
Reviewers: stefan_schmidt, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3012

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoeldbus: fix broken fallback interface.
Lukasz Stanislawski [Mon, 21 Sep 2015 22:04:35 +0000 (00:04 +0200)]
eldbus: fix broken fallback interface.

Summary:
Previous implementation assumed that fallback interface path should be changed
on every method call. This is generally not needed since real request
path can be obtained directly from dbus message passed as method call
paremeter.

This patch reverts this behaviour and additionally fix broken Property and Introspect
interface handling of fallback interface.

Reviewers: raster, lucasdemarchi, cedric

Subscribers: cedric, seoz

Differential Revision: https://phab.enlightenment.org/D3016

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoeina_tmpstr: add eina_tmpstr_strftime
Shilpa Singh [Mon, 21 Sep 2015 21:48:16 +0000 (23:48 +0200)]
eina_tmpstr: add eina_tmpstr_strftime

Summary:

@feature

Test Plan:
eina_tmpstr_strftime API can be used to create a temporary string
which is updated with strftime output

eina_tmpstr_steal can be used to get actual string set in eina_tmpstr

Reviewers: cedric

Subscribers: rajeshps, cedric, govi

Differential Revision: https://phab.enlightenment.org/D3048

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoedje_edit: remove save from group_del and group_copy
Andrii Kroitor [Mon, 21 Sep 2015 21:46:27 +0000 (23:46 +0200)]
edje_edit: remove save from group_del and group_copy

Summary:
edje_edit_save_all includes source code generation that is way more expensive
than save itself. User should be able to save manually with or without sources

Reviewers: cedric, Hermet, seoz, reutskiy.v.v

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3051

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoemile: fix can not check ifd offset of jpeg in MM(little endian) format
jiin.moon [Mon, 21 Sep 2015 21:44:49 +0000 (23:44 +0200)]
emile: fix can not check ifd offset of jpeg in MM(little endian) format

IFD offset is 4 byte.
But just one byte is checked for it in previous patch.

Reviewers: Hermet, jypark, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3053

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoevas_canvas3d: sets for shadow rendering
Oleksandr Shcherbina [Mon, 21 Sep 2015 21:41:25 +0000 (23:41 +0200)]
evas_canvas3d: sets for shadow rendering

Summary:
Add possibility change quality and offsets for shadow.
Add mesh API's to sets size, step and bias constant.
Add scene API to sets depth values.

Reviewers: Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3056

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoemotion: lock pending events and pending objects
Thomas Guillem [Mon, 21 Sep 2015 21:24:18 +0000 (23:24 +0200)]
emotion: lock pending events and pending objects

Summary:
_emotion_pending_ecore_begin and _emotion_pending_ecore_end are not called from
the same thread. Indeed, _emotion_pending_ecore_begin is called from gstreamer
callbacks, and _emotion_pending_ecore_end is called from the mainloop.

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3061

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoevas: remove unused variable in evas_tangent_space_get.
perepelits.m [Mon, 21 Sep 2015 21:19:57 +0000 (23:19 +0200)]
evas: remove unused variable in evas_tangent_space_get.

Summary:
Firstly it was the main point of in CID1323089 from Coverity, but this variable is unused. So I've deleted it.

CID1323089

Reviewers: raster, Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3067

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoemotion: add libvlc module
Thomas Guillem [Mon, 21 Sep 2015 21:19:17 +0000 (23:19 +0200)]
emotion: add libvlc module

Summary:
Everything is implemented except visualization, mouse events and some
EMOTION_EVENT. Video can output RGBA, YUY2, YV12 or I420.

About the video sink: this emotion module use libvlc callbacks:
libvlc_video_set_format_callbacks and libvlc_video_set_callbacks. It may be
temporary. Indeed, an other solution is to add an Evas module inside vlc. But
this vlc module would need to link with emotion in order to use
_emotion_frame_new and _emotion_frame_resize private functions. I didn't
succeed to output a frame without these private functions: see
https://github.com/tguillem/vlc/commit/15daff4d3fdcd3ca7b485c1f8fabb8c1e1c4138c

List of /* FIXME */:

 - Visualization not implemented since there is no API (for now) in libvlc.

 - Mouse events not implemented since there is no API (for now) in libvlc.

 - Some EMOTION_EVENT are not handled.

 - SIGSEGV in evas_gl_common_texture_nv12_update with
   EVAS_COLORSPACE_YCBCR420NV12601_PL colorspace.

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3071

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoedje: remove unused variable and simplify function prototype.
Cedric BAIL [Mon, 21 Sep 2015 21:04:19 +0000 (23:04 +0200)]
edje: remove unused variable and simplify function prototype.

8 years agoedje_cache: remove duplicated call of _edje_file_coll_open
WooHyun Jung [Mon, 21 Sep 2015 20:53:35 +0000 (22:53 +0200)]
edje_cache: remove duplicated call of _edje_file_coll_open

Summary:
_edje_file_coll_open will be executed after _edje_file_open is finished.
This duplicatated call will increase the reference counter and give failure
of _edje_cache_coll_unref.

@fix

Reviewers: cedric, raster, Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3075

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoector: make it possible to have an unique id per Ector_Renderer.
Cedric BAIL [Thu, 17 Sep 2015 05:55:52 +0000 (07:55 +0200)]
ector: make it possible to have an unique id per Ector_Renderer.

This is going to be used by an Eina_Hash to deduplicate the number of Ector_Renderer.

8 years agoector: fix cairo backend to properly multiply gradient color.
Cedric BAIL [Tue, 15 Sep 2015 05:36:00 +0000 (07:36 +0200)]
ector: fix cairo backend to properly multiply gradient color.

@fix

8 years agoevas: node that are used for a fill should not have a parent or they are going to...
Cedric BAIL [Tue, 15 Sep 2015 05:34:35 +0000 (07:34 +0200)]
evas: node that are used for a fill should not have a parent or they are going to be drawn.

@fix example for Efl VG.

8 years agoevas: create ector surface per engine instance.
Subhransu Mohanty [Tue, 25 Aug 2015 06:32:35 +0000 (15:32 +0900)]
evas: create ector surface per engine instance.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoector: cleanup default backend drawer.
Cedric BAIL [Sat, 12 Sep 2015 05:31:49 +0000 (07:31 +0200)]
ector: cleanup default backend drawer.

8 years agoector: convert to freetype co-ordinate before storing path data in software backend.
Subhransu Mohanty [Fri, 28 Aug 2015 01:17:11 +0000 (10:17 +0900)]
ector: convert to freetype co-ordinate before storing path data in software backend.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoevas: clip the clip rect to surface boundary in ector draw.
Subhransu Mohanty [Thu, 27 Aug 2015 01:48:45 +0000 (10:48 +0900)]
evas: clip the clip rect to surface boundary in ector draw.

Change-Id: If747a055eb935a7369eaf8d16d1577200a23b54c
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoevas/gl_generic: set draw context in ector_renderer_draw 14/50414/2
Dongyeon Kim [Mon, 24 Aug 2015 06:28:55 +0000 (15:28 +0900)]
evas/gl_generic: set draw context in ector_renderer_draw

Change-Id: Ifeedd48bc87d5c8ac353b8bee199604b482b4da0
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoeolian: split tokens/keywords for cleaner indexing
Daniel Kolesa [Mon, 21 Sep 2015 14:26:41 +0000 (15:26 +0100)]
eolian: split tokens/keywords for cleaner indexing

8 years agoecore_x: fix the memory leak.
ChunEon Park [Mon, 21 Sep 2015 12:00:16 +0000 (21:00 +0900)]
ecore_x: fix the memory leak.

@fix