platform/upstream/efl.git
9 years agoEvas: Fix compilation warning (-Wshadow)
Jean-Philippe Andre [Fri, 13 Feb 2015 05:00:23 +0000 (14:00 +0900)]
Evas: Fix compilation warning (-Wshadow)

9 years agoEvas: Free variable in error path
Jean-Philippe Andre [Fri, 13 Feb 2015 02:06:25 +0000 (11:06 +0900)]
Evas: Free variable in error path

Fixes CID 1270032
  Resource leaks  (RESOURCE_LEAK)
  Variable "exim" going out of scope leaks the storage it points to.

9 years agoee-win32 probably might compile now
Mike Blumenkrantz [Thu, 12 Feb 2015 21:21:52 +0000 (16:21 -0500)]
ee-win32 probably might compile now

<vtorri> bad Mike !
<vtorri> the name of the function is not good, so compilation fails on Windows
<vtorri> remove 'object' in the name of the definition of the function :)

@fix

9 years agoecore/drm: Fix libinput >= 0.8 check
Stefan Schmidt [Thu, 12 Feb 2015 17:37:42 +0000 (18:37 +0100)]
ecore/drm: Fix libinput >= 0.8 check

We need #if here as LIBINPUT_HIGHER_08 will be either 0 or 1

@fix

9 years agoecore-drm: Fix bad German formatting ;)
Chris Michael [Thu, 12 Feb 2015 17:09:47 +0000 (12:09 -0500)]
ecore-drm: Fix bad German formatting ;)

Summary: No functional changes, just formatting

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore/drm: Add support for changed libinput API since 0.8
Stefan Schmidt [Thu, 12 Feb 2015 17:01:55 +0000 (18:01 +0100)]
ecore/drm: Add support for changed libinput API since 0.8

We check for libinput 06 or higher. In version 0.8 they got an API break
(hopefully the last one before 1.0) which we did not support so far. I have
seen libinput 0.9 used on gentoo and newer ubuntu systems so we should
definitely support them.

Adding a LIBINPUT_HIGHER_08 define to check for this. So far we have only one
location where we need it. Once there is a libinput 1.0 we should remove the
support for older versions.

http://lists.freedesktop.org/archives/wayland-devel/2015-January/019383.html

9 years agoedje_cc: Avoid segfault when strcmp NULL items
Stefan Schmidt [Thu, 12 Feb 2015 14:24:27 +0000 (15:24 +0100)]
edje_cc: Avoid segfault when strcmp NULL items

Martin reported a porblem with one of the SHR project edc files after an upgrade
to 1.13. The segfault itself is easy enough to fix here but I think there might
be other problems with the edc after this segfault is gone. We will see.

Fixes T2106

9 years agoEolian: improve the class searching.
Daniel Zaoui [Wed, 11 Feb 2015 15:03:08 +0000 (17:03 +0200)]
Eolian: improve the class searching.

If the class is not found, we retrieve its full path if it has already
been scanned.

This patch is needed by Espion so Eolian can find the full path of a
class by its name. Espion has no way to determine it by itself.

9 years agoEolian: store the class filenames with the extensions.
Daniel Zaoui [Wed, 11 Feb 2015 14:58:53 +0000 (16:58 +0200)]
Eolian: store the class filenames with the extensions.

This change is needed to give Espion a way to request the parsing of a
class when a eo_add happens and the class is not known by Eolian.

9 years agotests/evas: Enable evas 3d mesh test case again after the code got fixed.
Stefan Schmidt [Thu, 12 Feb 2015 13:43:34 +0000 (14:43 +0100)]
tests/evas: Enable evas 3d mesh test case again after the code got fixed.

The problem have been in the new evas block/unblock code which did not work
for evas 3d. Thanks to Bogdan for spotting it and raster for reverting the
3d part for now to keep the code working.

Fixes T2104

9 years agoeolian: add testcase for nullable/optional
Daniel Kolesa [Thu, 12 Feb 2015 13:42:57 +0000 (13:42 +0000)]
eolian: add testcase for nullable/optional

9 years agoeolian: remove unneeded code
Daniel Kolesa [Thu, 12 Feb 2015 13:31:23 +0000 (13:31 +0000)]
eolian: remove unneeded code

9 years agoevas 3d - undo async block code - 3d objects dont inherit from evas obj
Carsten Haitzler (Rasterman) [Thu, 12 Feb 2015 13:25:06 +0000 (22:25 +0900)]
evas 3d - undo async block code - 3d objects dont inherit from evas obj

9 years agoevas - image obj - filled mode - never use invalid 0x0 fill
Carsten Haitzler (Rasterman) [Thu, 12 Feb 2015 03:10:04 +0000 (12:10 +0900)]
evas - image obj - filled mode - never use invalid 0x0 fill

this fixes a lot of noise for filled image objects that set fill to
0x0 if objetc is 0x0. this clamps minimum fill at 1x1 and thus keeps
things silent and sensible. also just silently ignore 0x0 filled image
objects. noise is not that useful.

9 years agoeolian: add APIs for nullable/optional (+ lua bindings)
Daniel Kolesa [Thu, 12 Feb 2015 13:24:06 +0000 (13:24 +0000)]
eolian: add APIs for nullable/optional (+ lua bindings)

9 years agoeolian: write the new parameters into the database
Daniel Kolesa [Thu, 12 Feb 2015 11:32:34 +0000 (11:32 +0000)]
eolian: write the new parameters into the database

9 years agoeolian: check the other boolean rather than itself
Daniel Kolesa [Thu, 12 Feb 2015 11:19:24 +0000 (11:19 +0000)]
eolian: check the other boolean rather than itself

9 years agoeolian: parsing of @nullable and @optional args on func params
Daniel Kolesa [Thu, 12 Feb 2015 11:14:45 +0000 (11:14 +0000)]
eolian: parsing of @nullable and @optional args on func params

9 years agoRevert "ecore: fix path comparison in Ecore_File test suite."
Stefan Schmidt [Thu, 12 Feb 2015 08:52:21 +0000 (09:52 +0100)]
Revert "ecore: fix path comparison in Ecore_File test suite."

This reverts commit 66c0f3261dab904fce533b0f7d30b1b374abd658.

This commit breaks the eina_file suite on Gentoo (our jenkins OS).

ref T2105

9 years agotests/evas: Disable segfaulting evas_object_mesh_loader_saver
Stefan Schmidt [Thu, 12 Feb 2015 09:23:50 +0000 (10:23 +0100)]
tests/evas: Disable segfaulting evas_object_mesh_loader_saver

This test case segfault on jenkins as well as on my devel machine.
Disable until fixed.

ref T2104

9 years agoeina: Fix MacOS X build with clang 3.6.
Guilherme Lepsch [Thu, 12 Feb 2015 06:25:10 +0000 (07:25 +0100)]
eina: Fix MacOS X build with clang 3.6.

Summary:
printf contains and erroneous format specifier and cast
missing LIBTOOLFLAGS for cocoa

Reviewers: felipealmeida, larryolj, naguirre

Subscribers: cedric

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

Signed-off-by: Nicolas Aguirre <aguirre.nicolas@gmail.com>
9 years agoRevert "Evas GL: Add support for uniforms in the shaders"
Jean-Philippe Andre [Thu, 12 Feb 2015 06:10:53 +0000 (15:10 +0900)]
Revert "Evas GL: Add support for uniforms in the shaders"

This reverts commit 21d08f86e6087f7e30ff2015c7551c06e359bba9.

9 years agoRevert "Evas GL common: Use uniform instead of attribute for sample"
Jean-Philippe Andre [Thu, 12 Feb 2015 05:56:03 +0000 (14:56 +0900)]
Revert "Evas GL common: Use uniform instead of attribute for sample"

This reverts commit 986b60eaf0175b3592883c85cfb6f5f5a280f31d.
Added PUSH_SAMPLE for simplicity.

It was dumb of me to use uniforms, so I added a comment to prevent
other dumb people from making the same mistake later.

9 years agoEvas GL common: Improve code readability (simplify macro)
Jean-Philippe Andre [Wed, 11 Feb 2015 12:45:50 +0000 (21:45 +0900)]
Evas GL common: Improve code readability (simplify macro)

The exact same ugly macro would appear hundreds of times in the GL
code:
  GLERR(__FUNCTION__, __FILE__, __LINE__, "");

Instead, override the common GL functions iif GL_ERRORS is defined.
This greatly simplifies code and removes tons of useless lines.
Also, this will give better debugging output as the exact code line
is printed, and the function name is also printed.

Also, fix linking to the glerr function.

This is a code cleanup. Hopefully I didn't break anything with this
big operation of find & replace.

9 years agoEvas GL common: Simplify GL pipe code with macros
Jean-Philippe Andre [Wed, 11 Feb 2015 12:32:15 +0000 (21:32 +0900)]
Evas GL common: Simplify GL pipe code with macros

A lot of the code was just brutal copy & paste.
Reduced by using simpler macros, which I believe are even
more readable.

9 years agoEvas GL common: Call glGetUniformLocation as early as possible
Jean-Philippe Andre [Wed, 11 Feb 2015 12:13:13 +0000 (21:13 +0900)]
Evas GL common: Call glGetUniformLocation as early as possible

This should speed up setting uniforms in the shaders, by storing
their locations in the Evas_GL_Program description.

I kept the previous solution with name as fallback, but it won't
actually be used with the current shaders.

9 years agoEvas GL common: Use uniform instead of attribute for sample
Jean-Philippe Andre [Wed, 11 Feb 2015 11:39:05 +0000 (20:39 +0900)]
Evas GL common: Use uniform instead of attribute for sample

Image and texture programs "12", "21" and "22" used tex_sample
as a texture attribute passed to the vertex shader. Instead of
this seemingly hackish solution, use a vec2 uniform.

9 years agoevas - render - have lock point to allow for async obj walk + update add
Carsten Haitzler (Rasterman) [Tue, 10 Feb 2015 11:44:38 +0000 (20:44 +0900)]
evas - render - have lock point to allow for async obj walk + update add

this adds a lock for when walking all the objects to generate render
commands for an async render. this allows even the object tree walk
plus update area caluclation to be moved off into async if every oject
that can change canvas state actually does so correctly. this change
adds all those lock block calls to synchronise with an async object
tree walk.

9 years agoecore-drm: Print error when taking control of a device fails
Chris Michael [Wed, 11 Feb 2015 20:42:02 +0000 (15:42 -0500)]
ecore-drm: Print error when taking control of a device fails

Summary: If we send a dbus blocking message, and it returns an error
then we should be printing out this error message

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoeldbus: Fix formatting
Chris Michael [Wed, 11 Feb 2015 20:29:29 +0000 (15:29 -0500)]
eldbus: Fix formatting

Summary: No functional changes, just formatting

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-drm: Disable/Enable inputs if we release/aquire VT through logind
Chris Michael [Wed, 11 Feb 2015 19:51:44 +0000 (14:51 -0500)]
ecore-drm: Disable/Enable inputs if we release/aquire VT through logind

Summary: Due to libinput processing events directly from evdev, we
need to disable/enable input events when we release/acquire the vt.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-drm: Disable/Enable inputs if we release/acquire the VT
Chris Michael [Wed, 11 Feb 2015 19:14:52 +0000 (14:14 -0500)]
ecore-drm: Disable/Enable inputs if we release/acquire the VT

Summary: Due to libinput process events directly from evdev, when we
VT switch we should disable/enable inputs accordingly.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoevas: Evas_3D - iport/export of Obj format can be read even if obj-file does not...
Bogdan Devichev [Wed, 11 Feb 2015 17:13:58 +0000 (18:13 +0100)]
evas: Evas_3D - iport/export of Obj format can be read even if obj-file does not have normals or tex-coords.

Summary:
This commit fixed several bugs, and show what was be fixed.

Bugs:
- When designer save obj file in Blender, he/she can set flags (fig 1). Normals and UV coords flags was necessary  for obj loader. Loader crushed when they are not set as true. It fixed by this commit.
- Another loaders set default values to data which aren't in loading file, so mesh need more memory for unused data. It fixed by this commit for obj and will be fixed for another formats in future.
- Saver saved incorrect data if normals or tex_coords was not set in mesh in evas. Now it fixed.
- Saver failed if it save mesh without material. It fixed and in this case material file is not created now.
- Also fixed some leaks and undefined behavior which valgrind shows.

Example:
- Example shows cases described above. Example use files saved with different flags for it.

Resources:
- man_mesh is replaced by several smaller file, to use them for showing new features and fixes. For example, similar to that models can be added when implement work with material for obj, work with different flags for obj loader/saver etc. (big count of man_meshes is to much memory).
- texture for home is flipped, because of bug with texture in efl to see if tex_coords is incorrect.

Test:
- test should be rewritten in future, because another formats still use default values for normals and tex_coords. And test can not pass for all types of obj file because of standardization for any format in him.

Test Plan: Test suit will be rewritten after correcting of other formats (they will set NULL to file when save an empty data (like mesh without normals))

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: example for Evas_3D color pick
Oleksandr Shcherbina [Tue, 10 Feb 2015 10:24:48 +0000 (12:24 +0200)]
evas: example for Evas_3D color pick

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: Evas_3D - mechanism for finding node by color pick.
Oleksandr Shcherbina [Wed, 11 Feb 2015 16:44:42 +0000 (17:44 +0100)]
evas: Evas_3D - mechanism for finding node by color pick.

Summary:
See first part https://phab.enlightenment.org/D1811 (backend, gl)

Add get/set for color pick mode at evas_3d_mesh and evas_3d_scene
Add evas_3d_node_color_node_mesh_collect function to collect data at force rendering
Add state flag for scene to avoid useless force rendering in case scene wasn't changed
Add functionality for color pick in evas_3d_scene_pick method

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: add image orient set/get API in software backend for now.
kabeer khan [Wed, 11 Feb 2015 16:30:49 +0000 (17:30 +0100)]
evas: add image orient set/get API in software backend for now.

Summary:
Added API's to rotate(0, 90, 180, 270), flip(horizontal, vertical, transpose, transverse)
evas image object. Also added example to demonstrate this.

Signed-off-by: kabeer khan <kabeer.khan@samsung.com>
Reviewers: raster, stephenmhouston, cedric

Subscribers: stephenmhouston, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoedje: add 3D models to edje_cc.
perepelits.m [Fri, 6 Feb 2015 11:08:03 +0000 (13:08 +0200)]
edje: add 3D models to edje_cc.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_con: add ecore con client functions for testing.
Srivardhan Hebbar [Wed, 11 Feb 2015 16:23:32 +0000 (17:23 +0100)]
ecore_con: add ecore con client functions for testing.

Summary: Added ecore con client functions to the existing cases to cover more functions.

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeina: fix directory listing on windows when directory is empty.
Nicolas Aguirre [Fri, 30 Jan 2015 14:01:07 +0000 (15:01 +0100)]
eina: fix directory listing on windows when directory is empty.

Using of INVALID_HANDLE_VALUE and ERROR_NO_MORE_FILES to handle this properlly.

@fix

9 years agoecore_con: EAGAIN is replaced by WSAEWOULDBLOCK on Windows.
Guillaume Friloux [Fri, 30 Jan 2015 13:30:22 +0000 (14:30 +0100)]
ecore_con: EAGAIN is replaced by WSAEWOULDBLOCK on Windows.

9 years agoecore: improve network events handling on Windows.
Guillaume Friloux [Fri, 30 Jan 2015 13:25:53 +0000 (14:25 +0100)]
ecore: improve network events handling on Windows.

9 years agoecore_con: do not load /etc/hosts on Windows.
Guillaume Friloux [Fri, 30 Jan 2015 13:24:35 +0000 (14:24 +0100)]
ecore_con: do not load /etc/hosts on Windows.

9 years agoecore: add FD_CLOSE, FD_ACCEPT and FD_CONNECT for sockets on Windows.
Guillaume Friloux [Fri, 30 Jan 2015 13:18:37 +0000 (14:18 +0100)]
ecore: add FD_CLOSE, FD_ACCEPT and FD_CONNECT for sockets on Windows.

9 years agoecore_con: make disconnects work on Windows.
Guillaume Friloux [Fri, 30 Jan 2015 13:16:59 +0000 (14:16 +0100)]
ecore_con: make disconnects work on Windows.

9 years agoecore_con: fix use of FormatMessage for error reporting on windows.
Guillaume Friloux [Fri, 30 Jan 2015 13:09:34 +0000 (14:09 +0100)]
ecore_con: fix use of FormatMessage for error reporting on windows.

@fix

9 years agoecore_con: silent warning with send() usage.
Guillaume Friloux [Fri, 30 Jan 2015 13:11:56 +0000 (14:11 +0100)]
ecore_con: silent warning with send() usage.

9 years agoecore_con: use send() instead of write() for portability.
Guillaume Friloux [Fri, 30 Jan 2015 13:06:47 +0000 (14:06 +0100)]
ecore_con: use send() instead of write() for portability.

9 years agoecore_con: use recv() instead of read for better portability.
Guillaume Friloux [Fri, 30 Jan 2015 13:01:50 +0000 (14:01 +0100)]
ecore_con: use recv() instead of read for better portability.

9 years agoecore_con: fix _ecore_con_server_flush on Windows.
Guillaume Friloux [Fri, 30 Jan 2015 10:21:03 +0000 (11:21 +0100)]
ecore_con: fix _ecore_con_server_flush on Windows.

@fix

9 years agoecore_con: Fix checks from socket() and accept() under windows.
Nicolas Aguirre [Fri, 30 Jan 2015 10:04:19 +0000 (11:04 +0100)]
ecore_con: Fix checks from socket() and accept() under windows.

import from Guillaume Friloux ecore's fork : https://github.com/gfriloux/ecore/commit/ab2d406a37c0ae205b6a934b7ea747f4b2baee81

9 years agoecore_con: use SOCKET and not int for socket descriptors on win32
Guillaume Friloux [Fri, 30 Jan 2015 10:03:00 +0000 (11:03 +0100)]
ecore_con: use SOCKET and not int for socket descriptors on win32

9 years agoecore_con: use ioctlsocket() when building for windows.
Guillaume Friloux [Fri, 30 Jan 2015 09:51:52 +0000 (10:51 +0100)]
ecore_con: use ioctlsocket() when building for windows.

fcntl() doesnt work under windows.

References :
- http://msdn.microsoft.com/en-us/library/windows/desktop/ms738573%28v=vs.85%29.aspx
- http://msdn.microsoft.com/en-us/library/windows/desktop/ms740096%28v=vs.85%29.aspx

imported from Guillaume Friloux ecore fork : https://github.com/gfriloux/ecore/commit/66da77d491d4f304767bac88d9ace4a5ff5f41e0

9 years agoecore: directly allocating and freeing Ecore_Win32_Handler variable.
michelle legrand [Wed, 4 Feb 2015 11:01:36 +0000 (12:01 +0100)]
ecore: directly allocating and freeing Ecore_Win32_Handler variable.

There was no memory pool nor any function like that in fact.

@fix

9 years agoeio: check that the file to be monitored is not an empty string.
michelle legrand [Tue, 3 Feb 2015 12:25:58 +0000 (13:25 +0100)]
eio: check that the file to be monitored is not an empty string.

This fix segmentation faults on Windows caused by eio_monitor events.

@fix

9 years agoeolian: add right extension to eolian_gen if we are on Windows
michelle legrand [Tue, 3 Feb 2015 09:15:15 +0000 (10:15 +0100)]
eolian: add right extension to eolian_gen if we are on Windows

In previous version of this commit we checked if the _WIN32 macro was
defined. But now I am using EXEEXT from autotools to get
eolian_gen extension.

@fix

9 years agoeina: fix Eina_Log to only try to free non deleted log.
michelle legrand [Wed, 14 Jan 2015 11:02:21 +0000 (12:02 +0100)]
eina: fix Eina_Log to only try to free non deleted log.

@fix

9 years agoeina: correctly handle and report Eina_File error on Windows.
Adrien Nader [Wed, 11 Feb 2015 10:58:28 +0000 (11:58 +0100)]
eina: correctly handle and report Eina_File error on Windows.

@fix

9 years agoeina: remove Eina_Counter and use provided Windows posix compatible implementation.
Adrien Nader [Wed, 11 Feb 2015 11:09:59 +0000 (12:09 +0100)]
eina: remove Eina_Counter and use provided Windows posix compatible implementation.

9 years agoeina: remove Windows specific thread implementation and rely on posix compliant libra...
Adrien Nader [Wed, 11 Feb 2015 11:15:43 +0000 (12:15 +0100)]
eina: remove Windows specific thread implementation and rely on posix compliant library instead.

9 years agoecore-drm should not use sscanf when getting logind vt
Mike Blumenkrantz [Tue, 10 Feb 2015 21:23:17 +0000 (16:23 -0500)]
ecore-drm should not use sscanf when getting logind vt

this should be more robust for when something like "/dev/tty4" is passed

@fix

9 years agoEina tmpstr: Fix tmpstr_strlen.
Tom Hacohen [Tue, 10 Feb 2015 09:53:29 +0000 (09:53 +0000)]
Eina tmpstr: Fix tmpstr_strlen.

Weird. This is the code I had, I don't know how it got lost.

Good job to Daniel Kolesa for spotting this.

9 years agoEvas masking: Force BLEND mode in case of image masking (GL)
Jean-Philippe Andre [Tue, 10 Feb 2015 09:18:05 +0000 (18:18 +0900)]
Evas masking: Force BLEND mode in case of image masking (GL)

This fixes some cases where the image has no alpha and COPY mode
is used, but a mask is also applied. In that case, masking
takes precedence and BLEND mode is used.

@fix

9 years agoevas/software_x11: Restore legacy compatibility with old SLP DRM
Jean-Philippe Andre [Tue, 10 Feb 2015 08:26:24 +0000 (17:26 +0900)]
evas/software_x11: Restore legacy compatibility with old SLP DRM

I really REAAALLLY doubt that was necessary, but I'm still adding
these few changes for legacy compatibility.

This lib seriously should have had a stable API.

9 years agoevas/software_x11: replace drm_slp with tbm
Dongyeon Kim [Tue, 10 Feb 2015 08:00:54 +0000 (17:00 +0900)]
evas/software_x11: replace drm_slp with tbm

Summary:
libdrm_slp has been replaced with libtbm, so modify xlib swapper
to use tbm apis instead of drm_slp apis

Test Plan: Local tests

Reviewers: raster, Hermet, cedric, jpeg

Reviewed By: jpeg

Subscribers: cedric, wonsik

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

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
9 years agoEvas sw_x11: Fix previous patches
Jean-Philippe Andre [Tue, 10 Feb 2015 06:02:31 +0000 (15:02 +0900)]
Evas sw_x11: Fix previous patches

Restore support for Evas GL with the software engine (OSMesa).

9 years agoevas/software_x11: implement tbm native surface type
Dongyeon Kim [Tue, 3 Feb 2015 11:36:41 +0000 (20:36 +0900)]
evas/software_x11: implement tbm native surface type

Summary:
This native surface type is based on the tbm surface used for the tizen platform.
For the software_x11 backend, image data is retrieved from tbm surface
and color format converted appropriately.
This will only work when libtbm.so is present in the system.
@feature

Test Plan: Local tests

Reviewers: raster, cedric, jpeg, Hermet

Subscribers: wonsik, cedric

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
9 years agoevas/software_x11: implement native surface set for x11 type
Dongyeon Kim [Tue, 3 Feb 2015 11:35:41 +0000 (20:35 +0900)]
evas/software_x11: implement native surface set for x11 type

Summary:
implement native surface set for EVAS_NATIVE_SURFACE_X11 type
on software_x11 backend.
@feature

Test Plan: local tests on PC

Reviewers: jpeg, cedric, raster, Hermet

Subscribers: wonsik, cedric

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
9 years agoevas/gl_x11: introduce tbm native surface type
Dongyeon Kim [Mon, 19 Jan 2015 03:28:32 +0000 (12:28 +0900)]
evas/gl_x11: introduce tbm native surface type

Summary:
This native surface type is based on the tbm surface used for the tizen platform.
EGL_TIZEN_image_native_surface EGL extension is used to map
tbm surface to an egl image
@feature

Reviewers: raster, cedric, jpeg

Subscribers: cedric, wonsik

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
9 years agoEvas 3d: Fix compilation with EGL/GLES
Jean-Philippe Andre [Tue, 10 Feb 2015 02:53:08 +0000 (11:53 +0900)]
Evas 3d: Fix compilation with EGL/GLES

Please verify this. I'm not sure what the function is supposed
to return (alpha or red?).

9 years agoEvas render: Improve debug output with REND_DBG
Jean-Philippe Andre [Mon, 26 Jan 2015 08:35:42 +0000 (17:35 +0900)]
Evas render: Improve debug output with REND_DBG

Better formatting and less code clutter.

This is a purely non-functional change as all the
changed lines are ifdef'ed out by default.

9 years agoEvas GL: Add support for uniforms in the shaders
Jean-Philippe Andre [Fri, 6 Feb 2015 03:21:25 +0000 (12:21 +0900)]
Evas GL: Add support for uniforms in the shaders

This will simplify greatly the code for map masking.

9 years agoEvas masking: Fix potential issues with map & masking
Jean-Philippe Andre [Mon, 9 Feb 2015 12:34:04 +0000 (21:34 +0900)]
Evas masking: Fix potential issues with map & masking

These bugs have not been observed but the code logic did not
make sense.

@fix

9 years agoEvas masking: Fix some garbage pixels with the SW engine
Jean-Philippe Andre [Mon, 9 Feb 2015 12:16:06 +0000 (21:16 +0900)]
Evas masking: Fix some garbage pixels with the SW engine

A rare case of garbage data would happen if smooth scaling
was called with a mask and 1:1 scaling. Use the proper
render_op to COPY for the first pass.

@fix

9 years agoMerge branch 'devs/cedric/next'
Cedric BAIL [Mon, 9 Feb 2015 21:16:51 +0000 (22:16 +0100)]
Merge branch 'devs/cedric/next'

Just merging patch that did come during the end of our last release cycle and couldn't
get in as they were to much of a new feature.

9 years agoeina: fix eina_bench.c compilation error.
Avi Levin [Mon, 9 Feb 2015 21:04:01 +0000 (22:04 +0100)]
eina: fix eina_bench.c compilation error.

Summary:
When trying to compile eina_bench.c we get an error that say we didnt
defined the variables that EINA_ARRAY_ITER_NEXT. I defined them.
@fix

Reviewers: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_con: add test cases to test ecore_con_server and client with different options.
Srivardhan Hebbar [Mon, 9 Feb 2015 11:11:37 +0000 (12:11 +0100)]
ecore_con: add test cases to test ecore_con_server and client with different options.

Summary: Before ecore_con_server_add and client add with only TCP sockets. Have made that function generic and testing for other options too. Not all options are covered. Need to add different kind of cases for other options. Will check how I can add and add.

Reviewers: stefan_schmidt, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: Evas_3D - ColorPick mechanism finding node and mesh in scene.
Oleksandr Shcherbina [Thu, 5 Feb 2015 14:34:25 +0000 (15:34 +0100)]
evas: Evas_3D - ColorPick mechanism finding node and mesh in scene.

Summary:
Added additional texture and framebuffer for rendering meshes to it.
Added function that return OpenGL id additional texture
Added function that return color from target texture by mouse pick coordinates
Added function that render need meshes to target texture
Added engine wrappers for possibility force render to texture

@feature

Reviewers: Hermet, raster, cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: Evas_3D - improve node tree update method.
Dmytro Dadyka [Thu, 5 Feb 2015 14:32:11 +0000 (15:32 +0100)]
evas: Evas_3D - improve node tree update method.

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoedje: add of model lookups.
perepelits.m [Thu, 5 Feb 2015 14:29:03 +0000 (15:29 +0100)]
edje: add of model lookups.

Summary:
I have added some methods to edje_cc_out.c to organize model lookups. The same methods already exists for images.
Also, I have removed source_type because now we don't need it in efl_file_set.

@feature

Reviewers: raster, Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeldbus: refactoring code.
Guilherme Lepsch [Thu, 5 Feb 2015 14:20:36 +0000 (15:20 +0100)]
eldbus: refactoring code.

Summary:
Code smells: Don't Repeat Yourself

Depends on D1927

Reviewers: felipealmeida, larryolj, cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas text: fix _ellipsis_get to return -1.0 on failure.
Youngbok Shin [Mon, 9 Feb 2015 17:30:30 +0000 (17:30 +0000)]
evas text: fix _ellipsis_get to return -1.0 on failure.

Summary:
When getting ellipsis value from evas text object fails,
the most reasonable return value is -1.0.
Currently, evas_object_text_ellipsis_get API with NULL returns 0.0.
It means ellipsis is not off. It must return -1.0 when API fails.
@fix

Comments by Tom: until now, this was inconsistent. With this change, it
now returns -1.0 consistently. Also, fixed commit summary.

Reviewers: woohyun, Hermet, seoz, tasn

Reviewed By: tasn

Subscribers: cedric

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

9 years agoEdje: edje_edit - fix Segmentation Fault on new BOX part
Vitalii Vorobiov [Mon, 9 Feb 2015 16:58:26 +0000 (18:58 +0200)]
Edje: edje_edit - fix Segmentation Fault on new BOX part

After adding new part (with type BOX) there was a SIGSEV because
of structure that wasn't initialized.

@fix

9 years agoEina tmpstr: remove usage of tmpstr_strlen().
Tom Hacohen [Mon, 9 Feb 2015 14:02:40 +0000 (14:02 +0000)]
Eina tmpstr: remove usage of tmpstr_strlen().

9 years agoEina tmpstr: fix race condition.
Tom Hacohen [Mon, 9 Feb 2015 13:47:00 +0000 (13:47 +0000)]
Eina tmpstr: fix race condition.

We take a lock, search the list, and the release the lock before we
finish using the values of the list. While unlikely, the string could be
deleted in the meanwhile.

9 years agoEina tmpstr: deprecate tmpstr_strlen and add tmpstr_len.
Tom Hacohen [Mon, 9 Feb 2015 13:43:40 +0000 (13:43 +0000)]
Eina tmpstr: deprecate tmpstr_strlen and add tmpstr_len.

Confusingly enough, strlen was actually returning strlen + 1 for
strings. The new functions behaves as expected.

9 years agoconfigure: Switch to dev mode again. Merge window for 1.14 is open now.
Stefan Schmidt [Mon, 9 Feb 2015 13:08:14 +0000 (14:08 +0100)]
configure: Switch to dev mode again. Merge window for 1.14 is open now.

9 years agorelease: Update NEWS and bump version for 1.13.0 release v1.13.0
Stefan Schmidt [Mon, 9 Feb 2015 12:12:51 +0000 (13:12 +0100)]
release: Update NEWS and bump version for 1.13.0 release

9 years agoevas - gl engine - pipe renderer - disabling of unused arrays for lines
Carsten Haitzler (Rasterman) [Mon, 9 Feb 2015 17:28:36 +0000 (02:28 +0900)]
evas - gl engine - pipe renderer - disabling of unused arrays for lines

@fix - this fixes disabling of unused texa and texsam arays when line
drawing - spotted in code review and bug hunting of another bug.

9 years agoevas - gl enigne - mask logic fix with texa draw arrays
Carsten Haitzler (Rasterman) [Mon, 9 Feb 2015 17:27:00 +0000 (02:27 +0900)]
evas - gl enigne - mask logic fix with texa draw arrays

this fixes a logic oops in addition of masking to evas which caused
crashes with a null texa array causing a crash in gldrawarrays

9 years agoEvas GL: Fix GLES1.1 extension initialisation bug
mythri.venugopal [Mon, 9 Feb 2015 05:23:29 +0000 (14:23 +0900)]
Evas GL: Fix GLES1.1 extension initialisation bug

Summary:
Extension function pointer initialisation requires glGetString(GL_EXTENSIONS).
To get GLESv1 extension string, GLESv1 context has to be bound.
Change involves updating extensions after GLESv1 context has been bound.

Reviewers: jpeg

Subscribers: cedric

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

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
9 years agoefl: interface are still clearly in beta.
Cedric BAIL [Sat, 7 Feb 2015 12:46:12 +0000 (13:46 +0100)]
efl: interface are still clearly in beta.

9 years agoevil: fix initialisation.
michelle legrand [Sat, 7 Feb 2015 12:45:05 +0000 (13:45 +0100)]
evil: fix initialisation.

Eina_Log is not available at this point of the initialisation.

9 years agoUpdate russian translation
Igor Murzov [Sat, 7 Feb 2015 12:38:49 +0000 (15:38 +0300)]
Update russian translation

9 years agoforgotten ee bit from previous commit
Mike Blumenkrantz [Fri, 6 Feb 2015 23:25:01 +0000 (18:25 -0500)]
forgotten ee bit from previous commit

9 years agoecore evas should not crash when unsetting pointer
Mike Blumenkrantz [Fri, 6 Feb 2015 22:54:08 +0000 (17:54 -0500)]
ecore evas should not crash when unsetting pointer

ref D812

disappointed.jpg

9 years agoEvas masking: Add forgotten file in previous commit
Jean-Philippe Andre [Fri, 6 Feb 2015 03:35:12 +0000 (12:35 +0900)]
Evas masking: Add forgotten file in previous commit

9 years agoEvas masking: Also fix map masking with non-bgra images
Jean-Philippe Andre [Fri, 6 Feb 2015 03:31:24 +0000 (12:31 +0900)]
Evas masking: Also fix map masking with non-bgra images

9 years agoecore-drm: Remove unused variable
Chris Michael [Thu, 5 Feb 2015 16:21:36 +0000 (11:21 -0500)]
ecore-drm: Remove unused variable

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-drm: Fix issue with ecore_drm_output_crtc_Find sending back an
Chris Michael [Thu, 5 Feb 2015 16:06:41 +0000 (11:06 -0500)]
ecore-drm: Fix issue with ecore_drm_output_crtc_Find sending back an
invalid id. Fix T2086

Summary: In order to avoid getting returned an invalid id, we should
not be checking the currently active encoder and crtc combination
because outputs may have changed, encoders/crtc combinations could
have changed, etc, etc.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore_cocoa: Handle more special characters and capital characters.
Michelle Legrand [Thu, 22 Jan 2015 10:24:42 +0000 (11:24 +0100)]
ecore_cocoa: Handle more special characters and capital characters.

This improve the situation and only affect Ecore_Cocoa code base by
detecting a useful charactere.

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