platform/upstream/efl.git
7 years agoelm_image: Add smart cbs for async open
Jean-Philippe Andre [Thu, 22 Sep 2016 06:24:40 +0000 (15:24 +0900)]
elm_image: Add smart cbs for async open

This adds a few callbacks to inform applications about
async open and preload:
- load,open
- load,ready
- load,error
- load,cancel

This patch adds a new EAPI as well: elm_image_async_open_set.
This is the only way to use async file open with the legacy APIs
and should be easily matched with whatever EO API we end up using
(be it based on promises or events).

Alter the test cases for make check as they were using the
unstable EO API which I just removed.

Thanks @arosis for the original patch. And sorry for the huge
delay in merging this.

See also: https://phab.enlightenment.org/D4215

@feature

7 years agoelm: _propagate_event should react only when the obj is focused obj
WooHyun Jung [Fri, 23 Sep 2016 01:08:01 +0000 (10:08 +0900)]
elm: _propagate_event should react only when the obj is focused obj

In efl_ui_win, _evas_event_key_cb gives efl_event_callback_call,
though the focused object is not the window itself.
Becuase of this, _propagate_event was called twice for event single
key down.
So, now, _propagate_event returns itself whenever focused object is
not the win but it's called from efl_ui_win's event call.
The problem can be checked with following stpes.

1. elementary_test -> focus
2. Input any directions (ex: Down)
3. Focus movement happens twice for every single input.

7 years agoeina-cxx: Implement aligned_union for GCC 4.9
Felipe Magno de Almeida [Thu, 22 Sep 2016 22:27:56 +0000 (19:27 -0300)]
eina-cxx: Implement aligned_union for GCC 4.9

7 years agodrm: Fix typoe
Derek Foreman [Thu, 22 Sep 2016 19:52:14 +0000 (14:52 -0500)]
drm: Fix typoe

DRM_MODE_ATOMIC_ALLOW_MODSET should have been _MODESET

7 years agoMerge branch 'devs/devilhorns/atomic'
Chris Michael [Thu, 22 Sep 2016 18:26:05 +0000 (14:26 -0400)]
Merge branch 'devs/devilhorns/atomic'

This merge adds initial support for Atomic Modesetting and Nuclear
Pageflipping. These features require a new kernel (>= 4.8) and have
only been testing on Intel i915 drivers. There are runtime checks in
the code to only enable these features when supported so this should
not break anything for "normal users". For those lucky enough to be
able to use these features, please enjoy the buttery smoothness ;)

@feature

7 years agoecore-drm2: Merge initial modesetting with atomic flip code
Derek Foreman [Thu, 22 Sep 2016 18:20:13 +0000 (13:20 -0500)]
ecore-drm2: Merge initial modesetting with atomic flip code

7 years agoecore-drm2: Use just DRM_MODE_ATOMIC_ALLOW_MODESET for initial setting
Chris Michael [Thu, 22 Sep 2016 18:18:58 +0000 (14:18 -0400)]
ecore-drm2: Use just DRM_MODE_ATOMIC_ALLOW_MODESET for initial setting
of mode

This fixes an issue where gl_drm engine would end up flickering
everytime a frame was being set.

Thanks derek ;)

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Add support for Atomic Pageflips
Chris Michael [Thu, 22 Sep 2016 17:30:49 +0000 (13:30 -0400)]
ecore-drm2: Add support for Atomic Pageflips

This patch modifies our ecore_drm2_fb_flip code to use Atomic/Nuclear
pageflips.

NB: Works perfectly under software drm engine .. some flickering with the
gl_drm engine that needs investigating.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Add code to support setting DPMS levels via Atomic
Chris Michael [Thu, 22 Sep 2016 16:35:23 +0000 (12:35 -0400)]
ecore-drm2: Add code to support setting DPMS levels via Atomic

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Add code to use Atomic for Edid if available
Chris Michael [Thu, 22 Sep 2016 16:28:07 +0000 (12:28 -0400)]
ecore-drm2: Add code to use Atomic for Edid if available

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Add code to setup Plane Atomic state for Outputs
Chris Michael [Thu, 22 Sep 2016 16:13:18 +0000 (12:13 -0400)]
ecore-drm2: Add code to setup Plane Atomic state for Outputs

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Add code to setup Connector Atomic state for Outputs
Chris Michael [Thu, 22 Sep 2016 16:01:38 +0000 (12:01 -0400)]
ecore-drm2: Add code to setup Connector Atomic state for Outputs

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Add code to setup Crtc Atomic state for Outputs
Chris Michael [Thu, 22 Sep 2016 16:00:53 +0000 (12:00 -0400)]
ecore-drm2: Add code to setup Crtc Atomic state for Outputs

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Add code to free Atomic state on shutdown
Chris Michael [Thu, 22 Sep 2016 15:42:57 +0000 (11:42 -0400)]
ecore-drm2: Add code to free Atomic state on shutdown

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Add code to fill Plane Atomic state
Chris Michael [Thu, 22 Sep 2016 15:07:17 +0000 (11:07 -0400)]
ecore-drm2: Add code to fill Plane Atomic state

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Add code to fill Connector Atomic state
Chris Michael [Thu, 22 Sep 2016 15:02:49 +0000 (11:02 -0400)]
ecore-drm2: Add code to fill Connector Atomic state

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Add code to fill Atomic Crtc State
Chris Michael [Thu, 22 Sep 2016 14:58:27 +0000 (10:58 -0400)]
ecore-drm2: Add code to fill Atomic Crtc State

This patch adds code to enable Atomic Modesetting support (via ioctl)
and to fill in Atomic Crtc state during startup.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Add code to check if Atomic Modesettting is usable
Chris Michael [Thu, 22 Sep 2016 14:34:03 +0000 (10:34 -0400)]
ecore-drm2: Add code to check if Atomic Modesettting is usable

This code will detect the drm driver name and check that the kernel
itself is new enough to use Atomic Modesetting. This is needed as some
drivers (i915) do not handle Atomic Modesetting propertly without a
new enough kernel.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Add private structures to support Atomic Modesetting
Chris Michael [Thu, 22 Sep 2016 13:35:44 +0000 (09:35 -0400)]
ecore-drm2: Add private structures to support Atomic Modesetting

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelementary: Remove unused but set variable in test_image
Chris Michael [Thu, 22 Sep 2016 17:50:09 +0000 (13:50 -0400)]
elementary: Remove unused but set variable in test_image

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelm: remove dulicate ELM_POPUP_ACTION_BUTTON_MAX definition
Shuhrat Dehkanov [Thu, 22 Sep 2016 13:57:28 +0000 (22:57 +0900)]
elm: remove dulicate ELM_POPUP_ACTION_BUTTON_MAX definition

Summary: ELM_POPUP_ACTION_BUTTON_MAX is already defined in the included header file, elm_widget_popup.h.

Reviewers: cedric, jpeg, minkyu, Hermet

Reviewed By: Hermet

Subscribers: seoz, jehun.lim

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

7 years agoUpdate gitignore.
Tom Hacohen [Thu, 22 Sep 2016 13:07:44 +0000 (14:07 +0100)]
Update gitignore.

7 years agoEo: introducing libeo_dbg.so.
Tom Hacohen [Thu, 22 Sep 2016 12:16:18 +0000 (13:16 +0100)]
Eo: introducing libeo_dbg.so.

This has been in the making for a very long time. Thanks to Marcel for
reminding me to do it.

What is it?
This is a tool to help application developers debug their apps with
everything Eo. Eo is strict, but not as strict as it can be. Many strict
tests and debug are very expensive to implement, and we have so many
hot-paths that even basic "ifs" to check if debugging is enabled  will
add significant overhead to normal running applications. This is why I
created this library. All the expensive tests and bookkeeping should be
wrapped around with "#ifdef EO_DEBUG". With this change, libeo.so is
compiled twice, once normally, and once with this define set (as
libeo_dbg.so). This means that normal eo code will not be affected, but
if you decide to debug your application, all you need to do is:

LD_PRELOAD=/path/to/libeo_dbg.so ./app

Or use the convenient wrapper:
eo_debug ./app

Which will load the debug heavy version.

What's currently there: at the moment, EO_DEBUG enables xref and
data_xref and stricter tests when fetching object data.
In the future, I also plan introducing "zombie objects", which
essentially mean that objects are never really deleted, so you can query
them long after they are gone to get more information on what they were.
So if for example you have an object id that you want to query after the
object has been deleted, you can.

I also plan on having a way to disable/enable certain debug mode
features via env vars, and maybe make the test suite link against this
one instead of the normal one, and possibly add more internal hooks for
the test suite to better inspect internal state?

P.S: The amount of errors spewed out when running it on elementary_test
makes me wish I wrote this earlier. :(

@feature

7 years agomodules: emotion: fix event name after EFL Canvas Video convert
Stefan Schmidt [Thu, 22 Sep 2016 09:44:59 +0000 (11:44 +0200)]
modules: emotion: fix event name after EFL Canvas Video convert

In commit 7b90e1147442d6a8023422400bffd77e2815fe0b the event name changed but
this module was not updated. Luckily we are building it on Jenkins or it would
have gone unnoticed for a long time.

7 years agoexamples: emotion: fix event naming after convert to EFL Canvas Object
Stefan Schmidt [Thu, 22 Sep 2016 09:43:34 +0000 (11:43 +0200)]
examples: emotion: fix event naming after convert to EFL Canvas Object

In commit 7b90e1147442d6a8023422400bffd77e2815fe0b the event names changed
but examples have not been updated.

7 years agoelm_image: Move back download events to legacy only
Jean-Philippe Andre [Thu, 22 Sep 2016 03:36:27 +0000 (12:36 +0900)]
elm_image: Move back download events to legacy only

The events for (async) image download will be redefined by
@cedric later. So, remove them from eo now and only keep their
legacy implementation.

Also, improve elm_test example and add docs.

7 years agophotocam: add missing EOLIAN prefix
Amitesh Singh [Thu, 22 Sep 2016 05:04:54 +0000 (10:34 +0530)]
photocam: add missing EOLIAN prefix

7 years agoscrollable_interface: fixed gravity_set() API.
Hosang Kim [Wed, 21 Sep 2016 11:44:53 +0000 (20:44 +0900)]
scrollable_interface: fixed gravity_set() API.

Summary: elm_scroller_gravity_set()  API is not working.

Test Plan: elementary_test -> scroller3

Reviewers: jaehwan, SanghyeonLee, Hermet, jypark, raster, cedric

Subscribers: cedric, jpeg

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

7 years agoRevert "edje/edje_cc: use strncpy() instead of strcpy()."
Carsten Haitzler (Rasterman) [Wed, 21 Sep 2016 23:31:04 +0000 (08:31 +0900)]
Revert "edje/edje_cc: use strncpy() instead of strcpy()."

This reverts commit ab1a72f5e7df6fe0adef54bdcddd9867a2ebe3a6.

just dismiss in coverity if the code is not actually wrong

7 years agoRevert "edje edje_embryo: use strncpy()."
Carsten Haitzler (Rasterman) [Wed, 21 Sep 2016 23:31:00 +0000 (08:31 +0900)]
Revert "edje edje_embryo: use strncpy()."

This reverts commit 06bd8dcf330fe31891475c92aa340d4886f47e2b.

just dismiss in coverity if the code is not actually wrong

7 years agoRevert "edje edje_cc_out: use strncpy()."
Carsten Haitzler (Rasterman) [Wed, 21 Sep 2016 23:30:37 +0000 (08:30 +0900)]
Revert "edje edje_cc_out: use strncpy()."

This reverts commit 6de3b2c5d36993cf3dbe94e8fbefd04043f91740.

just dismiss in coverity if the code is not actually wrong

7 years agoecore,ecore_con: simplify destructor by linking future life cycle with object.
Cedric BAIL [Wed, 21 Sep 2016 23:19:26 +0000 (16:19 -0700)]
ecore,ecore_con: simplify destructor by linking future life cycle with object.

7 years agoUpdating slovenian translation
maxerba [Wed, 21 Sep 2016 19:40:50 +0000 (21:40 +0200)]
Updating slovenian translation

7 years agoemotion: convert Emotion_Object into Efl.Canvas.Video
Yeshwanth Reddivari [Wed, 21 Sep 2016 17:37:59 +0000 (10:37 -0700)]
emotion: convert Emotion_Object into Efl.Canvas.Video

Reviewers: singh.amitesh, raster, jpeg, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoemile: fix typos.
Cedric BAIL [Wed, 21 Sep 2016 17:34:05 +0000 (10:34 -0700)]
emile: fix typos.

7 years agoeet: fix gnutls support with newer version.
Cedric BAIL [Wed, 21 Sep 2016 17:33:44 +0000 (10:33 -0700)]
eet: fix gnutls support with newer version.

7 years agotests: elm_win: fix compiler warning about signed vs. unsigned comparison
Stefan Schmidt [Wed, 21 Sep 2016 08:56:36 +0000 (10:56 +0200)]
tests: elm_win: fix compiler warning about signed vs. unsigned comparison

The variable i only goes from 0 to 4 here but it gets compared against a normal
int so we make sure i also is a normal int.

7 years agoelm: progressbar: hide unit if unit_format_func is invalid
Stefan Schmidt [Wed, 21 Sep 2016 08:41:58 +0000 (10:41 +0200)]
elm: progressbar: hide unit if unit_format_func is invalid

In commit 03882d558824f657f5c5a54fcd2d632eafeafd87 this was introduced but in
the end the visible signal was send in all cases. This looks like an oversight
to me. Fixed.

7 years agoevas: model_save: remove unused label after error handling change
Stefan Schmidt [Wed, 21 Sep 2016 08:29:18 +0000 (10:29 +0200)]
evas: model_save: remove unused label after error handling change

In commit 8272d1492796657978c5591971768d37d4e15a7e the error handling was
moved upwards and the need for the goto label removed. Catching up here and
removing the label as well.

7 years agoevas: remove unnecessary check for clip coords.
Sungtaek Hong [Wed, 21 Sep 2016 08:40:53 +0000 (17:40 +0900)]
evas: remove unnecessary check for clip coords.

Summary: (dst_clip_w <= 0 || dst_clip_h <= 0) is already checked.

Reviewers: jpeg, cedric, Hermet

Reviewed By: Hermet

Subscribers: conr2d

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

7 years agoelm_config: add null check before usage
Thiep Ha [Wed, 21 Sep 2016 07:54:09 +0000 (16:54 +0900)]
elm_config: add null check before usage

7 years agoelm_atspi: remove redundant null checking
Thiep Ha [Wed, 21 Sep 2016 07:49:12 +0000 (16:49 +0900)]
elm_atspi: remove redundant null checking

The type is always _ADDED or _REMOVED, therefore atspi_desc
is always "add" or "remove"; no need to have null checking for it.

7 years agoevas software_engine: ++safety code.
Hermet Park [Wed, 21 Sep 2016 07:24:42 +0000 (16:24 +0900)]
evas software_engine: ++safety code.

7 years agoedje edje_cc_out: use strncpy().
Hermet Park [Wed, 21 Sep 2016 06:19:19 +0000 (15:19 +0900)]
edje edje_cc_out: use strncpy().

This change is not much meaningful but avoids an annoying coverity detection.

7 years agoedje edje_embryo: use strncpy().
Hermet Park [Wed, 21 Sep 2016 06:03:11 +0000 (15:03 +0900)]
edje edje_embryo: use strncpy().

This change is not meaningful but avoids an annoying coverity detection.

7 years agoedje/edje_cc: use strncpy() instead of strcpy().
Hermet Park [Wed, 21 Sep 2016 04:30:44 +0000 (13:30 +0900)]
edje/edje_cc: use strncpy() instead of strcpy().

strncpy() is better for security.
Also, this change avoids annoying coverity detection.

7 years agoevas engine: correct null check
Hermet Park [Wed, 21 Sep 2016 04:16:36 +0000 (13:16 +0900)]
evas engine: correct null check

check null first, before access it.

7 years agoRevert "evas engine: return as soon as possible if the surface or context is not...
Hermet Park [Wed, 21 Sep 2016 04:06:18 +0000 (13:06 +0900)]
Revert "evas engine: return as soon as possible if the surface or context is not valid."

This reverts commit 2f158ebe65cc3d007c1eae0e25590f092931ee25.

misunderstood ^ operator.
pinged by jpeg.

previous code was correct.

7 years agoevas engine: return as soon as possible if the surface or context is not valid.
Hermet Park [Wed, 21 Sep 2016 03:24:49 +0000 (12:24 +0900)]
evas engine: return as soon as possible if the surface or context is not valid.

And later, the surface and context are accessed.
So both of arguments should be valid necessarily.

7 years agoeo-cxx: Add progress to future and promise
Felipe Magno de Almeida [Wed, 21 Sep 2016 02:30:13 +0000 (23:30 -0300)]
eo-cxx: Add progress to future and promise

7 years agoedje_edit : add null check and close eet
JunsuChoi [Tue, 20 Sep 2016 14:34:17 +0000 (23:34 +0900)]
edje_edit : add null check and close eet

Signed-off-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
7 years agoedje_decc: modified fclose location
JunsuChoi [Tue, 20 Sep 2016 14:23:29 +0000 (23:23 +0900)]
edje_decc: modified fclose location

modified fclose location. because of file pointer can become NULL.

Signed-off-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
7 years agoecore_con,elput: fix warnings
Bruno Dilly [Tue, 20 Sep 2016 23:13:25 +0000 (16:13 -0700)]
ecore_con,elput: fix warnings

Summary:
elput: fix warning for unused write result
         ecore_con: fix warning for unused asprintf result

Reviewers: iscaro, devilhorns, cedric

Reviewed By: cedric

Subscribers: cedric, seoz, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoelm_progressbar: show status when unit_format_func is set
Sungtaek Hong [Tue, 20 Sep 2016 23:07:18 +0000 (16:07 -0700)]
elm_progressbar: show status when unit_format_func is set

Summary:
 - elm,state,units,visible signal is emitted only when
   unit is set, but not when unit_format_func is set.
 - Since default unit has been set, this signal is emitted
   but signal will not be emitted after unit is set to NULL.

Test Plan:
 1. Create a progressbar.
 2. elm_progressbar_unit_format_set(obj, NULL);
 3. set unit_format_func by elm_progressbar_unit_format_function_set()
    and observe elm.text.status part visible.

Reviewers: Hermet, jpeg, cedric

Reviewed By: cedric

Subscribers: D-TAU, eunue, conr2d, cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoatspi: fix parent-child relationship for elm_list and elm_toolbar
Piotr Ganicz [Tue, 20 Sep 2016 21:46:11 +0000 (14:46 -0700)]
atspi: fix parent-child relationship for elm_list and elm_toolbar

Summary:
This patch provides proper parent-child relationship for elm_list and elm_toolbar
while atsapi_mode is set for icon and end element.

This patch is moved from:
    bf188e59431ad9c4ca877b2632884d3d430de6b1

Change-Id: Iae855aacf29bef3808a0b5ec159f46cbf0f4539d

Reviewers: stanluk, cedric

Reviewed By: cedric

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoatspi: fix state macros
Piotr Ganicz [Tue, 20 Sep 2016 21:44:53 +0000 (14:44 -0700)]
atspi: fix state macros

Summary:
This patch changes the value of 1 to 1ULL in STATE_TYPE macros
to signal the compiler that the value must be considered
as a unsigned long long, it has to be done cause state_set variable
can be longer than 32 bits.

This patch is moved. Orginal commit hash:
    a559e473c21c8da7c4e5a87b9c8583ce519cc35e

Change-Id: Ida89f3be185736f61543d37010d0f5cb8d80a751

Reviewers: cedric, stanluk

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoeet: fix memory leak
jiin.moon [Tue, 20 Sep 2016 21:22:33 +0000 (14:22 -0700)]
eet: fix memory leak

Summary:
If ef is null, have to return before _set_material_to_eet_file_from_mesh api.
New momory will be allocated in the api.

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoeet: set alpha_texture for ETC1+Alpha
Sungtaek Hong [Tue, 20 Sep 2016 21:20:48 +0000 (14:20 -0700)]
eet: set alpha_texture for ETC1+Alpha

Summary:
alpha_texture need to be set EINA_TRUE to support ETC1+Alpha

@fix

Test Plan:
Create an EDC file with png image with Alpha.
           compress image with ETC1 and ETC2.
           Observe Alpha is properly applied in both case.

Reviewers: jpeg, Hermet, cedric

Reviewed By: cedric

Subscribers: conr2d

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoEvas: Don't access members of a null struct. Fixes T4616
Stephen Houston [Tue, 20 Sep 2016 21:02:33 +0000 (16:02 -0500)]
Evas: Don't access members of a null struct. Fixes T4616

7 years agolibproxy: dlopen() and make it runtime optional.
Gustavo Sverzut Barbieri [Tue, 20 Sep 2016 18:00:17 +0000 (15:00 -0300)]
libproxy: dlopen() and make it runtime optional.

7 years agoecore_file: Fix improper way of comparing in ecore_file_path_dir_exists @fix
Artem Popov [Tue, 20 Sep 2016 16:52:23 +0000 (19:52 +0300)]
ecore_file: Fix improper way of comparing in ecore_file_path_dir_exists @fix

Summary: There is wrong comparing while using strcmp function. Should be inverted.

Reviewers: cedric, raster, NikaWhite

Reviewed By: NikaWhite

Subscribers: cedric, NikaWhite, jpeg

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

7 years agoeina_cpu, evas: Remove _eina_cpu_fast_core_get, don't set render thread affinity
Derek Foreman [Tue, 20 Sep 2016 16:33:33 +0000 (11:33 -0500)]
eina_cpu, evas: Remove _eina_cpu_fast_core_get, don't set render thread affinity

We've decided it would be best to just let the scheduler do its job.

7 years agoeina - eina file map populate fallback to use log int not int... for size
Carsten Haitzler (Rasterman) [Tue, 20 Sep 2016 12:57:47 +0000 (21:57 +0900)]
eina - eina file map populate fallback to use log int not int... for size

this makes the size match other sizes in eina_file. doesn't affect
linux but i think bsd's get hit.

7 years agotests: ecore: switch from fprintf to ck_asser_msg macro for custom error message
Stefan Schmidt [Tue, 20 Sep 2016 10:43:29 +0000 (12:43 +0200)]
tests: ecore: switch from fprintf to ck_asser_msg macro for custom error message

The ck_assert_msg macro can do this for us already in a failed case.

7 years agoeldbus: fix null value usage
Ji-Youn Park [Tue, 20 Sep 2016 09:40:32 +0000 (18:10 +0830)]
eldbus: fix null value usage

7 years agoEvas font: force freetype v35 ttf interpreter
Daniel Hirt [Sun, 18 Sep 2016 14:02:27 +0000 (17:02 +0300)]
Evas font: force freetype v35 ttf interpreter

Ref T4623

v40 bytecode interpreter is official as of freetype 2.7.
The results don't look so good at the moment. The text looks and glyph
positioning seem worse than they were with the previous v35 interpreter.

So, in the meantime we'll keep using v35, just so everything looks
normal again.

Although the v40 is relevant since around 2.6.3, I rather not do any
FREETYPE_MINOR checks in this patch, because distributions might ship
previous versions with the other (v38) interpreter enabled.

7 years agoecore_con_local: fix memory leak.
Ji-Youn Park [Tue, 20 Sep 2016 07:44:04 +0000 (16:14 +0830)]
ecore_con_local: fix memory leak.

after socket function call, close file descriptor.

7 years agoembryo : Prevent buffer overflow in embryo_cc_sc2
JEONGHYUN YUN [Tue, 20 Sep 2016 07:01:16 +0000 (15:31 +0830)]
embryo : Prevent buffer overflow in embryo_cc_sc2

Reviewers: jypark

Reviewed By: jypark

Subscribers: cedric, jpeg

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

7 years agoefreet xml parse - handle 0 sized xml specially to avoid crash
Carsten Haitzler (Rasterman) [Tue, 20 Sep 2016 05:01:59 +0000 (14:01 +0900)]
efreet xml parse - handle 0 sized xml specially to avoid crash

fixes T4493

7 years agoeina - redo a lot of the static inlines to have better instr cache usage
Carsten Haitzler (Rasterman) [Sun, 18 Sep 2016 23:58:56 +0000 (08:58 +0900)]
eina - redo a lot of the static inlines to have better instr cache usage

this moves a lot of logic that is rare away from the linear/flat asm
path of code so we et fewer l1 cache misses when executing chuncks of
our code. this also reduces the code size and takes some funcs like in
eina_inline_lock_posix.x and makes them real functions to reduce code
size thus better l1 cache usage - only for new/free of locks.
spinlocks, semaphores etc. as these will have no advantage being
inlined but simply bloat out code size instead.

overall this actually reduces efl lib binary sizes 0.4%, so that's a
good sign.

this passes make check and i think i got it right... let me know if i
didn't. i'm also not sure i should just keep the static inlines and
not make the formerly static inline funcs full EAPI ones now... good q.

7 years agoedje_edit: add null checking
Jaehwan Kim [Tue, 20 Sep 2016 04:46:29 +0000 (13:46 +0900)]
edje_edit: add null checking

7 years agoecore: fix the parameter of strerror
Jaehwan Kim [Tue, 20 Sep 2016 04:45:36 +0000 (13:45 +0900)]
ecore: fix the parameter of strerror

7 years agoelm fileselector: add null checking before strlen
WooHyun Jung [Tue, 20 Sep 2016 04:40:37 +0000 (13:40 +0900)]
elm fileselector: add null checking before strlen

7 years agoeldbus: null checking before using the pointer
WooHyun Jung [Tue, 20 Sep 2016 02:18:52 +0000 (11:18 +0900)]
eldbus: null checking before using the pointer

7 years agoecore: fix warning in timer test.
Cedric BAIL [Mon, 19 Sep 2016 23:27:14 +0000 (16:27 -0700)]
ecore: fix warning in timer test.

7 years agoelementary: patch got pushed before the complete fix.
Cedric BAIL [Mon, 19 Sep 2016 23:12:31 +0000 (16:12 -0700)]
elementary: patch got pushed before the complete fix.

7 years agoelementary: be more conservative on the amount of data requested from disk.
Cedric BAIL [Mon, 19 Sep 2016 23:07:03 +0000 (16:07 -0700)]
elementary: be more conservative on the amount of data requested from disk.

7 years agoeina: populate memory in the right limit.
Cedric BAIL [Mon, 19 Sep 2016 21:02:43 +0000 (14:02 -0700)]
eina: populate memory in the right limit.

7 years agoecore: remove useless ecore_parent.eo.
Cedric BAIL [Mon, 19 Sep 2016 20:05:32 +0000 (13:05 -0700)]
ecore: remove useless ecore_parent.eo.

7 years agoeina_cpu: Fix coverity defects in eina_cpu_map_init
Derek Foreman [Mon, 19 Sep 2016 15:34:44 +0000 (10:34 -0500)]
eina_cpu: Fix coverity defects in eina_cpu_map_init

Fixes a potential fd leak on failure and wrong core to
speed mapping on systems with > 31 cpu cores

CID: 1362860
CID: 1362859
CID: 1362857

7 years agoedje_edit: make tweens able to work with image sets
Vitalii Vorobiov [Mon, 19 Sep 2016 15:09:13 +0000 (18:09 +0300)]
edje_edit: make tweens able to work with image sets

it's important because some tweens of loaded edje group might use image sets
instead of images, so now making edje_edit API to work with them correctly

@fix

7 years agorender_thread: Attempt to set affinity to a random fast core
Derek Foreman [Mon, 19 Sep 2016 14:39:35 +0000 (09:39 -0500)]
render_thread: Attempt to set affinity to a random fast core

We've been pinning the render thread for every EFL process to core 0.
This is a bit silly in the first place, but some big.LITTLE arm systems,
such as exynos 5422, have the LITTLE cores first.

On those systems we put all the render threads on a slow core.

This attempts to fix that by using a random core from the pool of fast
cores.

If we can't determine which cores are fast (ie: we're not on a
linux kernel with cpufreq enabled) then we'll continue doing what we've
always done - pin to core 0.

7 years agoedje example: fix broken batman svg resource.
Hermet Park [Mon, 19 Sep 2016 14:39:19 +0000 (23:39 +0900)]
edje example: fix broken batman svg resource.

correct missing '/' at the end of svg tag.

7 years agoeina_cpu: Fix error handling in eina_cpu_fast_core_get
Derek Foreman [Mon, 19 Sep 2016 14:23:59 +0000 (09:23 -0500)]
eina_cpu: Fix error handling in eina_cpu_fast_core_get

I introduced a crash on linux systems where the cpufreq directory
doesn't exist.  This fixes it.

7 years agoefl_net_dialer_http: use libproxy.
Gustavo Sverzut Barbieri [Mon, 19 Sep 2016 13:00:36 +0000 (10:00 -0300)]
efl_net_dialer_http: use libproxy.

query libproxy in a thread (since it's nasty and blocks), then apply
proxy to curl and execute the request.

7 years agoefl_net_dialer_tcp: use libproxy settings.
Gustavo Sverzut Barbieri [Mon, 19 Sep 2016 06:19:16 +0000 (03:19 -0300)]
efl_net_dialer_tcp: use libproxy settings.

libproxy allows various means to configure a proxy, will load from
gnome and kde configuration settings, envvars, macos and even windows
registry.

curl still doesn't use it, but we can make that later.

7 years agoefl_net_dialer_websocket: remove unused variable.
Gustavo Sverzut Barbieri [Mon, 19 Sep 2016 06:18:35 +0000 (03:18 -0300)]
efl_net_dialer_websocket: remove unused variable.

efl-future will null the pointer, so pd is not needed anymore.

7 years agotests: ecore: relax the timing precision for the promise timeout test
Stefan Schmidt [Mon, 19 Sep 2016 12:01:19 +0000 (14:01 +0200)]
tests: ecore: relax the timing precision for the promise timeout test

This test has been failing on Jenkins again and again. After adding the debug
a while ago it now shows that the value is between 0.01 and 0.02 in all cases
I have seen. Relaxing the timeout here a bit to make it pass in situation where
our CI is under load.

7 years agoeo: fix headr to header
Marcel Hollerbach [Mon, 19 Sep 2016 11:00:36 +0000 (13:00 +0200)]
eo: fix headr to header

if you enable EO_DEBUG you cannot build eo, since the field is called
header not headr

7 years agoeo: fix reference to constants
Marcel Hollerbach [Mon, 19 Sep 2016 10:58:52 +0000 (12:58 +0200)]
eo: fix reference to constants

they are renamed from the prefix EO_ to EFL_

7 years agoeo: fix callback cmp
Marcel Hollerbach [Sat, 17 Sep 2016 13:17:25 +0000 (15:17 +0200)]
eo: fix callback cmp

Summary:
as told in _eina_stringshared_key_cmp in eina_hash.c:

originally we want to do this:
   return key1 - key2;
but since they are ptrs and an int can't store the different of 2 ptrs in
either 32 or 64bit (signed hasn't got enough range for the diff of 2
32bit values regardless of their type... we'd need 33bits or 65bits)

So changing this to the same logic.

Reviewers: tasn, raster

Subscribers: cedric, jpeg

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

7 years agoedje_svg_loader: Initialize char array.
Jaehyun Cho [Mon, 19 Sep 2016 10:46:27 +0000 (19:46 +0900)]
edje_svg_loader: Initialize char array.

Initialize char array before calling strcmp().

7 years agoRevert "render_thread: Attempt to set affinity to a random fast core"
Stefan Schmidt [Mon, 19 Sep 2016 08:41:58 +0000 (10:41 +0200)]
Revert "render_thread: Attempt to set affinity to a random fast core"

This reverts commit a17ac66f0a0b089dde0b2e550523b0d59ec97f52.

This change broke every efl build locally, as well as on Jenkins, for me.

CLD     lib/ethumb_client/libethumb_client.la
/bin/sh: line 2: 10047 Segmentation fault      (core dumped) EFL_RUN_IN_TREE=1
../src/bin/edje/edje_cc -id . -fd . -id ./tests/emotion/data tests/emotion/data/theme.edc
tests/emotion/data/theme.edj
Makefile:52584: recipe for target 'tests/emotion/data/theme.edj' failed
make[4]: *** [tests/emotion/data/theme.edj] Error 139
make[4]: *** Waiting for unfinished jobs....
/bin/sh: line 2: 10088 Segmentation fault      (core dumped) EFL_RUN_IN_TREE=1
../src/bin/edje/edje_cc -id . -fd . -id ./modules/ethumb/emotion modules/ethumb/emotion/template.edc
modules/ethumb/emotion/template.edj
Makefile:52590: recipe for target 'modules/ethumb/emotion/template.edj' failed
make[4]: *** [modules/ethumb/emotion/template.edj] Error 139
/bin/sh: line 2: 10119 Segmentation fault      (core dumped) EFL_RUN_IN_TREE=1
../src/bin/edje/edje_cc -id . -fd . -id ../src/modules/elementary/prefs/
modules/elementary/prefs/elm_prefs_swallow.edc modules/elementary/prefs/elm_prefs_swallow.edj
Makefile:52614: recipe for target 'modules/elementary/prefs/elm_prefs_swallow.edj' failed
make[4]: *** [modules/elementary/prefs/elm_prefs_swallow.edj] Error 139

7 years agoevas_object_image: fix alpha_set bug.
Ji-Youn Park [Mon, 19 Sep 2016 08:32:40 +0000 (17:02 +0830)]
evas_object_image: fix alpha_set bug.

if image object's first alpha value is false, evas_object_image_alpha_set function did not work.
opaque_valid is always 1 even though has_alpha value changed.

7 years agoelm_menu: fix callback deletion from NULL object
Andrii Kroitor [Mon, 19 Sep 2016 07:47:28 +0000 (16:47 +0900)]
elm_menu: fix callback deletion from NULL object

Reviewers: cedric, raster, Hermet

Reviewed By: Hermet

Subscribers: jpeg, reutskiy.v.v

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

7 years agoefl_net_dialer_tcp: add SOCKS proxy support.
Gustavo Sverzut Barbieri [Mon, 19 Sep 2016 03:56:18 +0000 (00:56 -0300)]
efl_net_dialer_tcp: add SOCKS proxy support.

SOCKS is implemented in its own thread using synchronous/blocking
primitives, which simplifies the code a lot -- as well as simulate the
usage of Ecore_Thread as our users will likely do.

Since SOCKSv4a and SOCKSv5 allow name resolution, the whole
getaddrinfo() is done in the same thread, when needed, instead of a
separate thread to do that, which should also save some resources.

Instead of the legacy ECORE_CON_SOCKS_V4 and ECORE_CON_SOCKS_V5, now
we use socks_proxy, all_proxy and no_proxy. This matches our other
dialers http/websocket (which will use http_proxy, all_proxy and
no_proxy). If desired it's easy to add back support for those
variables, but I think we should just deprecate them. (The legacy code
will keep unchanged, thus direct users of ecore_con_server will still
use those -- just the previous users of ecore_con_server will be
converted to use the new API).

7 years agoefl_net_dialer_http: do eos on error.
Gustavo Sverzut Barbieri [Sat, 17 Sep 2016 14:27:58 +0000 (11:27 -0300)]
efl_net_dialer_http: do eos on error.

7 years agoefl_net_dialer: improve proxy docs.
Gustavo Sverzut Barbieri [Sat, 17 Sep 2016 01:19:37 +0000 (22:19 -0300)]
efl_net_dialer: improve proxy docs.

Document some proxy behavior like done by CURL, so we'll follow that
standard, with $http_proxy, $socks_proxy, $all_proxy and $no_proxy.

also add some missing @since.

7 years agoefl_promise: check NULL before calling.
Gustavo Sverzut Barbieri [Mon, 19 Sep 2016 04:16:37 +0000 (01:16 -0300)]
efl_promise: check NULL before calling.

we do not check any of success, failure or progress, so we must check
if they are valid before calling.

This fixed a bug in efl_net_dialer_tcp where it uses a null failure
cb and was SEGV.

7 years agoeina_thread: don't leak on pthread_cancel().
Gustavo Sverzut Barbieri [Sat, 17 Sep 2016 01:17:25 +0000 (22:17 -0300)]
eina_thread: don't leak on pthread_cancel().

if we cancel a thread we should still free the context, so use the new
EINA_THREAD_CLEANUP_PUSH() and EINA_THREAD_CLEANUP_POP()