platform/upstream/efl.git
9 years agoevas: fix use after free.
Cedric BAIL [Tue, 24 Mar 2015 22:09:28 +0000 (23:09 +0100)]
evas: fix use after free.

Thanks to Thanatermesis for tracking this in T2135.

9 years agoecore-drm: Use better output names
Chris Michael [Tue, 24 Mar 2015 19:34:04 +0000 (15:34 -0400)]
ecore-drm: Use better output names

Summary: As there are various DVI and HDMI output names, update the
output connector types area to be more accurate so we get better
output names

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoEvas 3D: Print SHADERS instead of SHADERS_3D at compile time
Jean-Philippe ANDRE [Tue, 24 Mar 2015 18:47:29 +0000 (11:47 -0700)]
Evas 3D: Print SHADERS instead of SHADERS_3D at compile time

This is just a cosmetic change.

9 years agoEvas 3D: Add forgotten changes after generation of shaders
Jean-Philippe ANDRE [Tue, 24 Mar 2015 18:45:32 +0000 (11:45 -0700)]
Evas 3D: Add forgotten changes after generation of shaders

9 years agoEvas GL: Add missed GLES 3.0 functions.
mythri.venugopal [Tue, 24 Mar 2015 18:22:01 +0000 (11:22 -0700)]
Evas GL: Add missed GLES 3.0 functions.

Summary:
Initialise glVertexAttribDivisor & glVertexAttribIPointer
EvasGL function pointers.

Reviewers: wonsik, spacegrapher, jpeg

Reviewed By: jpeg

Subscribers: cedric

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

9 years ago[Evas: Evas_3D] Refactor shader system: refactored normal map shade mode.
Dmytro Dadyka [Tue, 24 Mar 2015 17:50:40 +0000 (10:50 -0700)]
[Evas: Evas_3D] Refactor shader system: refactored normal map shade mode.

Reviewers: cedric, jpeg

Subscribers: cedric

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

9 years ago[Evas: Evas_3D] Refactor shader system: refactored color pick shade mode.
Dmytro Dadyka [Tue, 24 Mar 2015 17:50:36 +0000 (10:50 -0700)]
[Evas: Evas_3D] Refactor shader system: refactored  color pick shade mode.

Reviewers: cedric, jpeg

Subscribers: cedric

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

9 years ago[Evas: Evas_3D] Refactor shader system: refactored diffuse shade mode.
Dmytro Dadyka [Tue, 24 Mar 2015 17:50:31 +0000 (10:50 -0700)]
[Evas: Evas_3D] Refactor shader system: refactored diffuse shade mode.

Reviewers: cedric, jpeg

Subscribers: cedric

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

9 years ago[Evas: Evas_3D] Refactor shader system: refactored vertex color shade mode.
Dmytro Dadyka [Tue, 24 Mar 2015 17:50:25 +0000 (10:50 -0700)]
[Evas: Evas_3D] Refactor shader system: refactored vertex color shade mode.

Reviewers: cedric, jpeg

Subscribers: cedric

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

9 years ago[Evas: Evas_3D] Refactor shader system: refactored flat shade mode.
Dmytro Dadyka [Tue, 24 Mar 2015 17:49:25 +0000 (10:49 -0700)]
[Evas: Evas_3D] Refactor shader system: refactored flat shade mode.

Reviewers: cedric, jpeg

Subscribers: cedric

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

9 years ago[Evas: Evas_3D] Fix shader code for using with GL_ES
Dmytro Dadyka [Tue, 24 Mar 2015 17:06:25 +0000 (10:06 -0700)]
[Evas: Evas_3D] Fix shader code for using with GL_ES

Summary: GL_ES variables precision added.

Reviewers: cedric, jpeg

Subscribers: cedric

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

9 years agoecore_drm: Add event of ECORE_DRM_EVENT_SEAT_ADD.
Seunghun Lee [Tue, 24 Mar 2015 14:45:11 +0000 (10:45 -0400)]
ecore_drm: Add event of ECORE_DRM_EVENT_SEAT_ADD.

Summary: To support multi-seat, ecore_drm need to issue the event to notify compositor of seat is added.

Test Plan: N/A

Reviewers: zmike, raster, gwanglim, devilhorns

Reviewed By: devilhorns

Subscribers: cedric

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

9 years agoecore-drm: Fixed null pointer free
Mun, Gwan-gyeong [Tue, 24 Mar 2015 13:11:07 +0000 (09:11 -0400)]
ecore-drm: Fixed null pointer free

Summary:
Fixed null pointer free
         when sd_session_get_seat() fails, it does not allocate string.

Reviewers: zmike, cedric, raster, gwanglim, devilhorns

Subscribers: cedric

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

9 years agoecore_imf: Add NULL check before accessing evas device API
Jihoon Kim [Tue, 24 Mar 2015 11:33:45 +0000 (20:33 +0900)]
ecore_imf: Add NULL check before accessing evas device API

9 years agoevas: Add safety check for NULL pointer of clipper.
Youngbok Shin [Tue, 24 Mar 2015 03:53:34 +0000 (12:53 +0900)]
evas: Add safety check for NULL pointer of clipper.

Summary: It caused crash when clipper is NULL and it makes evas test-suite fail.

Test Plan: Run evas test-suite. (make check)

Reviewers: woohyun, tasn, herdsman, Hermet

Reviewed By: Hermet

Subscribers: cedric

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

9 years agoecore-imf: Added the device information in the Ecore_IMF_Event structs
Wonkeun Oh [Tue, 24 Mar 2015 01:26:20 +0000 (10:26 +0900)]
ecore-imf: Added the device information in the Ecore_IMF_Event structs

Summary:
Added the device information in the Ecore_IMF_Event structs.
Applications may require to know actual source of key event to handle it differently depending on device.
Even if key events are currently generated from different devices, application couldn't distinguish it.
This patch will support device information for the Ecore-imf key events.

Reviewers: jihoon

Reviewed By: jihoon

Subscribers: cedric

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

9 years agoevas/gl_x11: add env variables for disable partial rendering
Sunghyun Kim [Tue, 24 Mar 2015 00:30:59 +0000 (17:30 -0700)]
evas/gl_x11: add env variables for disable partial rendering

Summary: add 'EVAS_GL_PARTIAL_DISABLE' environment variables for disable partial rendering

Reviewers: cedric, jpeg

Reviewed By: jpeg

Subscribers: mer.kim, spacegrapher, cedric, wonsik

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

Signed-off-by: Jean-Philippe ANDRE <jpeg@videolan.org>
jpeg added atoi(s) and copied the code for gl_drm and wayland_egl.

9 years agoevas/gl_x11: Separate gl symbols check
Dongyeon Kim [Tue, 24 Mar 2015 00:17:37 +0000 (17:17 -0700)]
evas/gl_x11: Separate gl symbols check

Summary:
There is a restriction for some gpu drivers that
eglGetProcAddress must be called after eglMakeCurrent.
So separate egl/glx extensions check from gl_symbols
to be called inside eng_window_new.

Test Plan: egl and glx backend tests

Reviewers: cedric, jpeg

Subscribers: cedric, mer.kim, wonsik

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

9 years agoEvas: Fix invalid test case
Jean-Philippe ANDRE [Mon, 23 Mar 2015 22:55:23 +0000 (15:55 -0700)]
Evas: Fix invalid test case

No idea how it worked before. It shouldn't. It was invalid.
But somehow evas_suite decided to start crashing on this test.

9 years ago[Evas: Evas_3D] Refactor shaders: used m4 for removing duplication of code.
Dmytro Dadyka [Mon, 23 Mar 2015 21:59:19 +0000 (14:59 -0700)]
[Evas: Evas_3D] Refactor shaders: used m4 for removing duplication of code.

Reviewers: Hermet, raster, cedric, jpeg

Subscribers: cedric

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

9 years agoRevert "evas/gl_x11: Optimize out calls to make current"
Jean-Philippe ANDRE [Mon, 23 Mar 2015 20:58:26 +0000 (05:58 +0900)]
Revert "evas/gl_x11: Optimize out calls to make current"

This reverts commit 0585540bb3558b2ff834a1bb730e897c6301a224.

This broke Evas 3d examples. I also suspected some weird things and
wasn't 100% confident with this patch.

Closes T2215.
Thanks for the report.

9 years agoemile: meaningful initialization of some pointers.
Cedric BAIL [Mon, 23 Mar 2015 21:04:15 +0000 (22:04 +0100)]
emile: meaningful initialization of some pointers.

9 years agoecore_con: clean up, refactor and unpdate documentation.
Srivardhan Hebbar [Mon, 23 Mar 2015 18:44:03 +0000 (19:44 +0100)]
ecore_con: clean up, refactor and unpdate documentation.

Summary:
1. Have refactored code in ecore_con_local.c
2. Changed env variable from "TMP" to "TMPDIR".
3. Added check for negetive port number when type is ECORE_CON_LOCAL_USER.
4. Added check to check TMPDIR before assuming /tmp as temp directory.
5. Updated documentation in Ecore_Con.h explaining about local socket and port number.

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

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_exe: fix ecore_exe_pid_get on windows
Andrii Kroitor [Mon, 23 Mar 2015 18:37:21 +0000 (19:37 +0100)]
ecore_exe: fix ecore_exe_pid_get on windows

Summary:
ecore_exe_pid_get returns exe->pid value so it should be filled

@fix

Reviewers: raster, seoz, cedric, Hermet

Subscribers: NikaWhite, cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeina: add test cases for various eina xattr data type functions
vivek [Mon, 23 Mar 2015 18:29:55 +0000 (19:29 +0100)]
eina: add test cases for various eina xattr data type functions

Summary:
Added test cases for eina_xattr_string_set, eina_xattr_int_set and
eina_xattr_double_set functions

Signed-off-by: vivek <vivek.ellur@samsung.com>
Reviewers: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore-drm: Fix issue of not getting updated for output hotplug events
Chris Michael [Mon, 23 Mar 2015 16:17:11 +0000 (12:17 -0400)]
ecore-drm: Fix issue of not getting updated for output hotplug events

Summary: When setting up the Eeze_Udev_Watch for output hotplug
events, we should also be listening for the "change" event. As eeze
will now check the HOTPLUG property for drm events, we don't need to
check that here.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoeeze: Fix issue of eeze_udev_watch_add not getting events for drm
Chris Michael [Mon, 23 Mar 2015 16:14:45 +0000 (12:14 -0400)]
eeze: Fix issue of eeze_udev_watch_add not getting events for drm

Summary: This fixes eeze_udev_watch_add for DRM events, Previously, we
were not getting a watch callback fired due to using the wrong
subsystem device type in
udev_monitor_filter_add_match_subsystem_devtype.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoevas: prevent crash.
ChunEon Park [Mon, 23 Mar 2015 13:00:27 +0000 (22:00 +0900)]
evas: prevent crash.

if user delete the interceptor in the interceptor callback,
the interceptors would be NULL.
So we need to check whether it's valid or not.

@fix

9 years agoemile: fix build on NEON enable system.
Cedric BAIL [Sun, 22 Mar 2015 16:41:36 +0000 (17:41 +0100)]
emile: fix build on NEON enable system.

T2214

9 years agoevil: fix access to a file mapping object
Vincent Torri [Fri, 20 Mar 2015 07:16:20 +0000 (08:16 +0100)]
evil: fix access to a file mapping object

Patch from Jorge Luis Zapatta (turran), a bit modified
by me

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore-drm: Fix build error caused by missing function declaration
Chris Michael [Sat, 21 Mar 2015 20:38:47 +0000 (16:38 -0400)]
ecore-drm: Fix build error caused by missing function declaration

Summary: This is mainly just a build fix. This issue occurred due to
the function declaration being After a call to use it while not having
a function prototype. This just adds the function prototype

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-drm: Add more debug info when output is created or updated
Chris Michael [Sat, 21 Mar 2015 20:27:01 +0000 (16:27 -0400)]
ecore-drm: Add more debug info when output is created or updated

Summary: This patch adds more information so we can debug output
hotplug events better. It fixes an issue where any new outputs
from _ecore_drm_update_outputs where not getting the eeze udev watch
event created, and also addresses the issue of disconnected outputs
not sending the ecore_drm_event (both minor fixes)

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoevas-drm: Enable more information during flip error
Chris Michael [Sat, 21 Mar 2015 20:08:40 +0000 (16:08 -0400)]
evas-drm: Enable more information during flip error

Summary: This adds a bit more output during crtc flip errors so we can
debug multi-monitor setups

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoeo: fix wrong check libaddr dependency.
ChunEon Park [Sat, 21 Mar 2015 04:35:14 +0000 (13:35 +0900)]
eo: fix wrong check libaddr dependency.

move checking libaddr to eo step to valid it.

9 years agoWayland: Fix compilation
Jean-Philippe ANDRE [Sat, 21 Mar 2015 03:13:28 +0000 (12:13 +0900)]
Wayland: Fix compilation

Bad merge?

9 years agoecore_wayland: Check for nulls before wayland calls
Bryce Harrington [Sat, 21 Mar 2015 02:07:27 +0000 (22:07 -0400)]
ecore_wayland:  Check for nulls before wayland calls

Summary:
Wayland API routines by policy do not check input parameters for invalid
values.  In particular, many calls are wrappers through
wl_proxy_marshal, which derefs its first argument without a check.

So, for all wayland calls, always null check the first argument.

Reviewers: zmike, cedric

Subscribers: cedric

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

9 years agoecore_wayland: Check for null inputs
Bryce Harrington [Sat, 21 Mar 2015 02:06:58 +0000 (22:06 -0400)]
ecore_wayland: Check for null inputs

Summary:
The other functions in this module check inputs; this one should as
well.

Reviewers: zmike

Subscribers: cedric

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

9 years agoecore_wayland: Add some comments
Bryce Harrington [Sat, 21 Mar 2015 01:18:52 +0000 (21:18 -0400)]
ecore_wayland: Add some comments

Summary: Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>

Reviewers: zmike

Subscribers: cedric

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

9 years agoRevert "evas-3d: materials in .mtl format are deleted"
ChunEon Park [Fri, 20 Mar 2015 09:34:20 +0000 (18:34 +0900)]
Revert "evas-3d: materials in .mtl format are deleted"

This reverts commit 59271716ba5443bcba215f5dfbc190fc107ae4ab.

This patch submitted twice.

9 years agoevas render2 - restructure it to be an explicit api call - cleaner to do
Carsten Haitzler (Rasterman) [Fri, 20 Mar 2015 05:18:17 +0000 (14:18 +0900)]
evas render2 - restructure it to be an explicit api call - cleaner to do

9 years agoevas-3d: materials in .mtl format are deleted
Bogdan Devichev [Fri, 20 Mar 2015 05:33:23 +0000 (14:33 +0900)]
evas-3d: materials in .mtl format are deleted

Summary: Materials are not used in any loader and will not be used in nearest future.

Reviewers: raster, Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

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

Conflicts:

src/examples/evas/Makefile.am

9 years agoevas: fix description about Evas_Device_Subclass
Jihoon Kim [Fri, 20 Mar 2015 05:42:46 +0000 (14:42 +0900)]
evas: fix description about Evas_Device_Subclass

9 years agoFix wrong drawing of shadows for some blending modes
Dmytro Dadyka [Fri, 20 Mar 2015 05:10:00 +0000 (14:10 +0900)]
Fix wrong drawing of shadows for some blending modes

Reviewers: cedric, Hermet

Reviewed By: Hermet

Subscribers: cedric

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

9 years agoemile: Remove unnecessary check in _emile_jpeg_head function
jiin.moon [Fri, 20 Mar 2015 05:02:58 +0000 (14:02 +0900)]
emile: Remove unnecessary check in _emile_jpeg_head function

Summary: Already checked it by "else if ((opts->w > 0) && (opts->h > 0))"

Reviewers: cedric, Hermet

Reviewed By: Hermet

Subscribers: cedric

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

9 years agoevas: fix build failure with old version freetype.
Youngbok Shin [Fri, 20 Mar 2015 04:24:31 +0000 (13:24 +0900)]
evas: fix build failure with old version freetype.

Summary:
Fix build failure with old version freetype.
It is caused for supporting colored font.

Reviewers: raster, jpeg, woohyun, Hermet

Subscribers: cedric

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

9 years agoevas - font - new color bitmap support - rename funcs to match file
Carsten Haitzler (Rasterman) [Fri, 20 Mar 2015 01:49:49 +0000 (10:49 +0900)]
evas - font - new color bitmap support - rename funcs to match file

9 years agoevas-wayland-shm: Fix redrawing issues that were causing 'flashing' in latest engine...
Chris Michael [Thu, 19 Mar 2015 20:15:11 +0000 (16:15 -0400)]
evas-wayland-shm: Fix redrawing issues that were causing 'flashing' in latest engine code.

Summary: As reported by derek & zmike, the previous engine refactor
left some issues where the app would 'flash' during redraws due to
buffer handling. This commit fixes that issue along with flashing
during resize.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoevas-software-generic: Allow future rendering calls if evas has to skip a frame
Chris Michael [Thu, 19 Mar 2015 20:09:23 +0000 (16:09 -0400)]
evas-software-generic: Allow future rendering calls if evas has to skip a frame

Summary: If we do not get a new_region_for_update from an engine, it
could mean that the engine has skipped a frame. In that case, we still
want to try and render any future frames. Before this commit, evas
would never try to re-render anything again once it hit a failed
frame. To fix this, we test for a valid returned region, and if we
don't get one, mark this frame as failed so we can try again.

NB: Thanks for the help Cedric !! :)

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoevas: use switch instead of a serie of if for cleaner example.
Cedric BAIL [Thu, 19 Mar 2015 16:34:46 +0000 (17:34 +0100)]
evas: use switch instead of a serie of if for cleaner example.

9 years agoevas: remove unused variable.
Cedric BAIL [Thu, 19 Mar 2015 16:20:56 +0000 (17:20 +0100)]
evas: remove unused variable.

9 years agoevas: remove useless line.
Cedric BAIL [Thu, 19 Mar 2015 16:19:48 +0000 (17:19 +0100)]
evas: remove useless line.

9 years agoelua: cast data, not cbs (data stores the cb id)
Daniel Kolesa [Thu, 19 Mar 2015 15:01:16 +0000 (15:01 +0000)]
elua: cast data, not cbs (data stores the cb id)

9 years agoRevert "elua: more reliable eoid->lua number conversion"
Daniel Kolesa [Thu, 19 Mar 2015 14:59:15 +0000 (14:59 +0000)]
Revert "elua: more reliable eoid->lua number conversion"

This reverts commit 8bb13b626f3a5d284f50af493f3f7b5566e06586.

Seems like this method is not so reliable after all :) Results
in precision loss for Eo IDs, so revert to the old hacky way.

9 years agoevas-gl-common: Fix building when --with-opengl=es
Chris Michael [Thu, 19 Mar 2015 13:54:34 +0000 (09:54 -0400)]
evas-gl-common: Fix building when --with-opengl=es

Summary: If we are building for only gles 2.0, then we cannot use
glAlphaFunc else we get compile errors. This adds an #ifndef around
that block to fix building

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoEdje: edje edit - ability to remove last item in BOX/TABLE
Vitalii Vorobiov [Thu, 19 Mar 2015 13:19:55 +0000 (15:19 +0200)]
Edje: edje edit - ability to remove last item in BOX/TABLE

Removing last item in BOX/TABLE part is actually successful
but then we shouldn't realloc an array of items for 0 items.
That's ridiculous
(and because of that function removes EINA_FALSE,
so user could think that it's unable to remove last item).

So simply array can be set into NULL.

@fix

9 years agoEolian: add API to determine if a function is implemented.
Daniel Zaoui [Tue, 17 Mar 2015 11:11:41 +0000 (13:11 +0200)]
Eolian: add API to determine if a function is implemented.

This is needed in Erigo to determine if a virtual pure function can be
invoked via eo_do, as we don't want error messages to be displayed in
case of a non implementation in the Eo object.
This function works with non virtual functions too.

Tests have been provided.

@feature

9 years agoevas: Support bitmap embedded color font.
Youngbok Shin [Thu, 19 Mar 2015 10:02:02 +0000 (19:02 +0900)]
evas: Support bitmap embedded color font.

Summary:
Add the code for getting bitmap buffers from embedded color font,
And draw the bitmap buffers as images.
For drawing the bitmap buffers as images,
evas_common_draw_context_font_ext_set internal API is changed to
pass additional gl engine functions.
T2139
@feature

Test Plan:
1. Set a bitmap embedded color font to textblock.
2. Set a unicode emoticon text.
3. See the result.

Please check the sample unicode in the following link.
http://www.fileformat.info/info/unicode/char/1f3af/index.htm
http://www.fileformat.info/info/unicode/char/1f555/index.htm
http://www.fileformat.info/info/unicode/char/2600/index.htm
http://www.fileformat.info/info/unicode/char/263a/index.htm

Reviewers: tasn, woohyun, jpeg, raster

Reviewed By: raster

Subscribers: herdsman, cedric

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

9 years agoevas/font: Add evas_font_reinit API.
Youngbok Shin [Thu, 19 Mar 2015 09:01:41 +0000 (18:01 +0900)]
evas/font: Add evas_font_reinit API.

Summary:
Reinitialize FontConfig. If FontConfig has to be reinitialized
according to changes of system enviroments(ex. Changing font config files), it will be useful.

Reviewers: woohyun, seoz, tasn, cedric, raster

Reviewed By: raster

Subscribers: raster, herdsman, cedric

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

9 years agoevas/gl_x11: set EGL_PLATFORM environment variable
MinJeong Kim [Thu, 19 Mar 2015 08:52:53 +0000 (17:52 +0900)]
evas/gl_x11: set EGL_PLATFORM environment variable

Summary:
Without EGL_PLATFORM environment variable, eglInitialize() can be
failed because egl tried to load DRM platform instead of X11 platform and it
tried to handle XDisplay pointer as a gbm_device pointer as well.
The failure seems to be occured especially if the egl was built
with DRM platform as native platform.

This revision can prevent the failure by indicating proper egl platform using
EGL_PLATFORM environment variable, and additionally it will unset
EGL_PLATFORM environment value when the engine free its info.

@fix

Reviewers: gwanglim, seoz, jaehwan, cedric, raster

Subscribers: raster, cedric

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

9 years agoeina: safety check for NULL pointer
Jaeun Choi [Thu, 19 Mar 2015 07:15:20 +0000 (16:15 +0900)]
eina: safety check for NULL pointer

data should not be NULL. it is used as the source of memcpy.

@fix

9 years agoSpelling fixes
Bryce Harrington [Thu, 19 Mar 2015 01:37:47 +0000 (21:37 -0400)]
Spelling fixes

Summary:
emmited  ==> emitted
resistence  ==> resistance
occured  ==> occurred

Reviewers: cedric, zmike, devilhorns

Subscribers: cedric

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

9 years agoecore_con: add tests cases to cover more scenarios in local sockets.
Srivardhan Hebbar [Wed, 18 Mar 2015 14:56:14 +0000 (15:56 +0100)]
ecore_con: add tests cases to cover more scenarios in local sockets.

Summary:
In this patch, ecore_test_ecore_con_local_system_negport test case was failing.

Note that this patch does play with some environment variable to check more
code path in ecore_con.

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

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_con: add test case for download related functions.
Srivardhan Hebbar [Wed, 18 Mar 2015 14:41:16 +0000 (15:41 +0100)]
ecore_con: add test case for download related functions.

Summary:
This has test cases for download related functions. Will make url
configurable and add post/upload related functions in the coming patch.

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

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_con: fix ECORE_CON_LOCAL_SYSTEM use with negative port number.
Srivardhan Hebbar [Wed, 18 Mar 2015 14:33:19 +0000 (15:33 +0100)]
ecore_con: fix ECORE_CON_LOCAL_SYSTEM use with negative port number.

Summary:
The socket can be created even with negative port number, but in that case the port
is ignored so that you can connect to non Ecore_Con based IPC. This patch remove
that test to make the client and server match.

@fix

Bug: While creating ECORE_CON_LOCAL_SYSTEM server and client pair, when the socket
name was "test_socket" and port number "-8" (Any negative number). Then while creating
listening socket, the code would go to line no 291 and socket is created in tmp by
".ecore_servicetest_socket|-8". When the same is passed to bind then the code would
go to line 118 and the socket it would try to bind would be ".ecore_servicetest_socket" !!
So the bind would fail.

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

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: Evas_3d proxy example uses cube primitives.
Bogdan Devichev [Wed, 18 Mar 2015 13:48:50 +0000 (14:48 +0100)]
evas: Evas_3d proxy example uses cube primitives.

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: pick example uses sphere primitives.
Bogdan Devichev [Wed, 18 Mar 2015 13:47:50 +0000 (14:47 +0100)]
evas: pick example uses sphere primitives.

Reviewers: cedric, Hermet, raster

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: frustum example uses sphere and cube primitives.
Bogdan Devichev [Wed, 18 Mar 2015 13:46:06 +0000 (14:46 +0100)]
evas: frustum example uses sphere and cube primitives.

Reviewers: cedric, Hermet, raster

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: Evas_3D - add alpha testing.
Dmytro Dadyka [Wed, 18 Mar 2015 13:40:05 +0000 (14:40 +0100)]
evas: Evas_3D - add alpha testing.

Reviewers: Hermet, cedric

Reviewed By: cedric

Subscribers: Ievgen, cedric

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

9 years agoevas: cube-rotate example uses cube primitives.
Bogdan Devichev [Wed, 18 Mar 2015 13:36:52 +0000 (14:36 +0100)]
evas: cube-rotate example uses cube primitives.

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: cube2 example uses cube primitives.
Bogdan Devichev [Wed, 18 Mar 2015 13:35:37 +0000 (14:35 +0100)]
evas: cube2 example uses cube primitives.

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: aabb example uses cube primitives.
Bogdan Devichev [Wed, 18 Mar 2015 13:33:25 +0000 (14:33 +0100)]
evas: aabb example uses cube primitives.

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: refactor colorpick examples.
Bogdan Devichev [Wed, 18 Mar 2015 11:31:46 +0000 (12:31 +0100)]
evas: refactor colorpick examples.

Reviewers: cedric, Hermet, raster

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: fix shadows examples to see normalized primitives.
Bogdan Devichev [Wed, 18 Mar 2015 11:26:23 +0000 (12:26 +0100)]
evas: fix shadows examples to see normalized primitives.

Reviewers: cedric, Hermet, raster

View and composition will be restored after refactoring of all primitives.

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: fix parallax-occlusion example camera to save view of example with normalized...
Bogdan Devichev [Wed, 18 Mar 2015 11:25:04 +0000 (12:25 +0100)]
evas: fix parallax-occlusion example camera to save view of example with normalized cube.

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: build Evas_3D examples with helper.
Cedric BAIL [Wed, 18 Mar 2015 14:21:27 +0000 (15:21 +0100)]
evas: build Evas_3D examples with helper.

9 years agoevas: Evas_3D primitives: square, sphere and cube are normalized.
Bogdan Devichev [Wed, 18 Mar 2015 11:23:02 +0000 (12:23 +0100)]
evas: Evas_3D primitives: square, sphere and cube are normalized.

Reviewers: cedric, Hermet, raster

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: shooter resources is recycled and added in right way.
Bogdan Devichev [Wed, 18 Mar 2015 11:07:25 +0000 (12:07 +0100)]
evas: shooter resources is recycled and added in right way.

Summary:
- little symbols in pathes
- new standard pathes for assets for big examples
- deleted the largest resources
- size of shooter folder less than 4 Mb now

Reviewers: cedric, Hermet, raster

Subscribers: cedric

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

9 years agoevas: add evas-common.h to dist and move resources of parallax-occlusion to comon...
Bogdan Devichev [Wed, 18 Mar 2015 10:46:55 +0000 (11:46 +0100)]
evas: add evas-common.h to dist and move resources of parallax-occlusion to comon directory.

Reviewers: Hermet, raster, cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoefreet: add cmake support for components.
Marcel Hollerbach [Wed, 18 Mar 2015 10:29:41 +0000 (11:29 +0100)]
efreet: add cmake support for components.

Summary:
Add support for components in the efreet config. You can now add trash and mime.

Reviewers: tasn

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_win32: fix segfault
Andrii Kroitor [Wed, 18 Mar 2015 10:05:20 +0000 (11:05 +0100)]
ecore_win32: fix segfault

Summary:
_ecore_exe_pipe_read_thread_cb and _ecore_exe_pipe_error_thread_cb expecting
object as argument.

Reviewers: cedric, seoz, Hermet

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeio: fix cmake copy & paste error.
Marcel Hollerbach [Wed, 18 Mar 2015 09:52:27 +0000 (10:52 +0100)]
eio: fix cmake copy & paste error.

Summary:
I copyed the original file from eet and forgot to change eet to eio,

Sorry

Reviewers: cedric, tasn

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoTests: fix warnings.
Daniel Zaoui [Tue, 17 Mar 2015 11:09:46 +0000 (13:09 +0200)]
Tests: fix warnings.

@TAsn, I checked the code to be sure nothing is wrong :P

9 years agoEvas: Really use GLES3 by default (fix logic)
Jean-Philippe Andre [Wed, 18 Mar 2015 01:04:27 +0000 (10:04 +0900)]
Evas: Really use GLES3 by default (fix logic)

I enabled gles3 by default in a previous commit but apparently my
logic was all wrong and it fell back to gles2.

9 years agoecore-wayland: Use calloc rather than malloc+memset
Bryce Harrington [Wed, 18 Mar 2015 00:30:32 +0000 (20:30 -0400)]
ecore-wayland: Use calloc rather than malloc+memset

Summary:
In addition to being fewer lines of code,
malloc + memset to 0 is slower than calloc.  See
http://stackoverflow.com/questions/2688466/why-mallocmemset-is-slower-than-calloc

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewers: zmike, cedric, devilhorns

Reviewed By: devilhorns

Subscribers: cedric

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

9 years agoecore-wayland: Doublecheck input validity
Bryce Harrington [Tue, 17 Mar 2015 23:52:43 +0000 (19:52 -0400)]
ecore-wayland: Doublecheck input validity

Summary:
Most of the other ecore-wayland API will return NULL in the (hopefully
theoretical) case of bad inputs; this API routine should so similarly
for consistency.

Reviewers: zmike, cedric

Subscribers: cedric

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

9 years agoecore_wayland: Improve API docs
Bryce Harrington [Tue, 17 Mar 2015 23:23:48 +0000 (19:23 -0400)]
ecore_wayland: Improve API docs

Summary:
For calls that return pointers, specify that NULL is a
potential return value.  Add API documentation for some misc. routines
missing it.

Reviewers: zmike, cedric, devilhorns

Subscribers: cedric

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

9 years agoMerge branch 'devs/devilhorns/evas_wayland_shm'
Chris Michael [Tue, 17 Mar 2015 19:53:38 +0000 (15:53 -0400)]
Merge branch 'devs/devilhorns/evas_wayland_shm'

This merge pulls in the Evas Wayland Shm engine refactor which
addressed resize issues causing crashes in E wl compositor.

9 years agoecore-evas-wayland: Remove frame callbacks from Ecore_Evas wayland
Chris Michael [Tue, 17 Mar 2015 19:50:56 +0000 (15:50 -0400)]
ecore-evas-wayland: Remove frame callbacks from Ecore_Evas wayland
engine

Summary: Frame callbacks are now handled inside the engine itself and
are thus not needed here anymore

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoevas-wayland-shm: Refactor Evas Wayland Shm Engine (Fix T2201)
Chris Michael [Tue, 17 Mar 2015 19:49:09 +0000 (15:49 -0400)]
evas-wayland-shm: Refactor Evas Wayland Shm Engine (Fix T2201)

Summary: This patch set fixes the issue of Evas wayland shm engine
causing crashes when resizing efl apps in the E wayland compositor. It
refactors the evas engine to wait for release events on buffers, and
hooks into frame callbacks so that release events will get triggered
at the appropriate time.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoevas-wayland-shm: Remove old wayland_shm engine swapper files
Chris Michael [Tue, 17 Mar 2015 19:32:29 +0000 (15:32 -0400)]
evas-wayland-shm: Remove old wayland_shm engine swapper files

Summary: Part of engine refactor to address resize issue in E wayland
compositor

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-drm: add ecore_drm_devices_get to get the list of drm devices
Boram Park [Tue, 17 Mar 2015 13:30:59 +0000 (09:30 -0400)]
ecore-drm: add ecore_drm_devices_get to get the list of drm devices

Summary:
    when enlightenment is working as wayland display server, enlightenment
    changes KDSETMODE to KD_GRAPHICS in _ecore_drm_tty_setup(). However,
    when enlightenment is killed by SIGSEGV, it doesn't changes KDSETMODE
    to KD_TEXT because englightenment process doesn't call ecore_drm_tty_close().
    To make possible enlightenment call ecore_drm_tty_close(), drm devices
    should be exposed.
    When enlightenment is killed by SIGSEGV, it will get drm devices with
    ecore_drm_device_get_list(), and will call ecore_drm_launcher_disconnect(),
    and ecore_drm_launcher_disconnect will call ecore_drm_tty_close() internally.

@feature

Change-Id: I1c594739ec96660a09cee77b823ace6548ee5282

Reviewers: zmike, cedric, raster, gwanglim, devilhorns

Subscribers: cedric

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

9 years agocmake: Add files for Emile, the serial killer
Jean-Philippe Andre [Tue, 17 Mar 2015 10:19:28 +0000 (19:19 +0900)]
cmake: Add files for Emile, the serial killer

9 years agoecore_cocoa: add missing window state functions
pierre lamot [Thu, 12 Mar 2015 11:13:08 +0000 (12:13 +0100)]
ecore_cocoa: add missing window state functions

implement missing window state functions:

  * raise
  * lower
  * activate
  * iconified_set
  * withdrawn_set
  * move

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_cocoa: add functions to allow min/max window size
pierre lamot [Wed, 11 Mar 2015 14:31:36 +0000 (15:31 +0100)]
ecore_cocoa: add functions to allow min/max window size

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_cocoa: fix mouse scrollwheel direction
pierre lamot [Tue, 3 Mar 2015 17:11:55 +0000 (18:11 +0100)]
ecore_cocoa: fix mouse scrollwheel direction

horizontal and vertical direction where inverted

@fix

9 years agoecore_cocoa: don't reject mouse events outside the window
pierre lamot [Tue, 3 Mar 2015 16:11:08 +0000 (17:11 +0100)]
ecore_cocoa: don't reject mouse events outside the window

mouse events ouside the window where rejected. that was creating
interactions where half an event was created, the application was
then not able to process correctly following events.

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeio: don't restart a monitor on MacOSX when every paths have been removed.
pierre lamot [Tue, 3 Mar 2015 16:01:03 +0000 (17:01 +0100)]
eio: don't restart a monitor on MacOSX when every paths have been removed.

This patch check that when a monitor is removed the FSEvent service, it is
not restarted if there is no more paths to monitor. This was generating an
error message from FSEvent.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: bypass lockfocus in NSView on OSX
pierre lamot [Tue, 24 Feb 2015 14:50:58 +0000 (15:50 +0100)]
evas: bypass lockfocus in NSView on OSX

this patch bypass calls to (un)lockFocus, avoid segv
when closing windows

This is certainly not the cleanest way to do it but it seems
to be working correctly at the moment. this may leads to
unexepected behavior which haven't been identified now

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_cocoa: add support for non latin keyboard events
pierre lamot [Fri, 20 Feb 2015 13:35:16 +0000 (14:35 +0100)]
ecore_cocoa: add support for non latin keyboard events

this patch adds support for non latin keyboard layout such as
arabic, greek or hebrew, some language might not be functionnal
tough like korean or chineese

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_evas: rewrite render loop to conform with other engines.
pierre lamot [Fri, 30 Jan 2015 17:21:14 +0000 (18:21 +0100)]
ecore_evas: rewrite render loop to conform with other engines.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>