platform/upstream/efl.git
9 years agoedje/edje_cc_handler - updated internal doc.
ChunEon Park [Wed, 3 Dec 2014 12:09:06 +0000 (21:09 +0900)]
edje/edje_cc_handler - updated internal doc.

9 years agoEvas: Evas_3D - Add check of visibilty node.
Dmytro Dadyka [Wed, 3 Dec 2014 08:48:55 +0000 (09:48 +0100)]
Evas: Evas_3D - Add check of visibilty node.

If the node is not visible, it is not rendered, which improves performance.
@feature.

Reviewers: raster, Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoautotools: fix compiling/linking gl engines on OSX.
Jean Guyomarc'h [Wed, 3 Dec 2014 08:45:51 +0000 (09:45 +0100)]
autotools: fix compiling/linking gl engines on OSX.

Summary:
Until now, it was necessary to set global LDFLAGS and CFLAGS to allow
compiling (and linking) engines using OpenGL.
gl_generic used to complained about missing headers or unkown libraries.
A problem on OSX is that there is CGL (Apple's Core OpenGL) on which the whole system
relies on and GLX, when X11 is installed; and they cohabit together.
When gl_cocoa is enabled, gl_generic is now linked against CGL.
When it is not, gl_generic is compiled with and linked against GLX as a fallback.

@fix

Test Plan:
With --enable-cocoa: software_x11, opengl_x11 and opengl_cocoa are working as expected.
With --disable-cocoa: software_x11 and opengl_x11 are also working as expected.
No compiling nor linking problems have been issued.

Reviewers: cedric, raster, raoulh

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: Evas_3D - fix typo.
perepelits.m [Wed, 3 Dec 2014 08:42:50 +0000 (09:42 +0100)]
evas: Evas_3D - fix typo.

Summary:
A little fix of copy-paste, there were problems while changing texture coordinates of indices.

@fix

Reviewers: raster, Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoEvas GL: Clarify doc about Evas_GL_API struct version
Jean-Philippe Andre [Wed, 3 Dec 2014 03:08:03 +0000 (12:08 +0900)]
Evas GL: Clarify doc about Evas_GL_API struct version

9 years agoEvas GL: Add preventive padding after Evas_GL_API
Jean-Philippe Andre [Wed, 3 Dec 2014 02:44:09 +0000 (11:44 +0900)]
Evas GL: Add preventive padding after Evas_GL_API

Since this struct is likely to grow in size over time, client apps
built against future versions of EFL might start indexing fields
that are not present in the current form.

Also, don't reset the struct memory as this would break
multithreaded GL applications.

While this is not exactly a fix, I'll backport this.

@fix

9 years agoevas-gl-drm: remove initalizing gbm on engine setup
MinJeong Kim [Wed, 3 Dec 2014 07:30:13 +0000 (16:30 +0900)]
evas-gl-drm: remove initalizing gbm on engine setup

Summary: Removed evas_drm_gbm_init() on the initial setup of evas gl_drm engine.

Reviewers: gwanglim

Reviewed By: gwanglim

Subscribers: cedric

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

9 years agoEvas GL: Update evas gl api version number to 3
Gwanglim Lee [Wed, 3 Dec 2014 02:48:03 +0000 (11:48 +0900)]
Evas GL: Update evas gl api version number to 3

evas gl api supports wayland extensions as being part of a struct
of version 3.

9 years agoEvas GL: Add support for bind_wayland_display extension
Gwanglim Lee [Tue, 2 Dec 2014 13:45:36 +0000 (22:45 +0900)]
Evas GL: Add support for bind_wayland_display extension

This provides EGL_WL_bind_wayland_display EGL extension to bind
and unbind the wl_display of a wayland server to an EGLDisplay.

@feature

9 years agoecore-wayland: Check for xdg_surface before sending ack_configure
Chris Michael [Mon, 1 Dec 2014 18:52:30 +0000 (13:52 -0500)]
ecore-wayland: Check for xdg_surface before sending ack_configure

Summary: Calling wayland library functions with NULL typically leads
to an abort, so add a safety check for valid xdg_surface before
calling function

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-wayland: Fix formatting
Chris Michael [Mon, 1 Dec 2014 18:51:02 +0000 (13:51 -0500)]
ecore-wayland: Fix formatting

Summary: No functional changes, just formatting

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-wayland: Add safety check for xdg_popup creation
Chris Michael [Mon, 1 Dec 2014 18:47:10 +0000 (13:47 -0500)]
ecore-wayland: Add safety check for xdg_popup creation

Summary: xdg_shell_get_xdg_popup could return NULL, in which case any
calls below would cause an abort in the wayland libraries, so this
adds a trap for that.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-wayland: Add safety check for window surface creation
Chris Michael [Mon, 1 Dec 2014 18:45:23 +0000 (13:45 -0500)]
ecore-wayland: Add safety check for window surface creation

Summary: We cannot call wl_proxy_get_id if the surface creation failed
else that would lead to an abort in the wayland libraries. This commit
adds a safety check

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-wayland: No need for setting the input here as it's done again
Chris Michael [Mon, 1 Dec 2014 18:43:34 +0000 (13:43 -0500)]
ecore-wayland: No need for setting the input here as it's done again
directly below.

Summary: Not much of a functional change, just removing an extra
unnecessary line. Input is being set directly below this with an if
(!( line, so no point in this one.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-wayland: Check return of input_region create and get our safely
Chris Michael [Mon, 1 Dec 2014 18:15:15 +0000 (13:15 -0500)]
ecore-wayland: Check return of input_region create and get our safely

Summary: If wl_region_create fails, then we cannot call wl_region
functions on a NULL region. That causes the wayland libraries to
abort, so let's add a safety check so that we don't crash.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-wayland: If we fail to create a new opaque region, safely exit
Chris Michael [Mon, 1 Dec 2014 18:13:34 +0000 (13:13 -0500)]
ecore-wayland: If we fail to create a new opaque region, safely exit
the function.

Summary: If the compositor fails to create a new opaque region, then
we cannot call wl_region functions on a NULL region. This leads to an
abort in the wayland libraries, so let's trap the return of
wl_region_create and exit safely

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoevas-gl: Fix evas-gl to compile for EGL upstream/1.12.0+179+gc1eb5de
Chris Michael [Mon, 1 Dec 2014 15:31:47 +0000 (10:31 -0500)]
evas-gl: Fix evas-gl to compile for EGL

Summary: Evas compilation was broken for --with-opengl=es due to the
use of GL_R16 (which is not defined for EGL).

NB: This may Not be the Proper fix, but at least it compiles now.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoevas-gl: Fix improper #ifdef check
Chris Michael [Mon, 1 Dec 2014 15:29:53 +0000 (10:29 -0500)]
evas-gl: Fix improper #ifdef check

Summary: We should be using #ifdef here, not #if

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-wayland: Check if system has mouse in ecore_wl_input
vivek [Mon, 1 Dec 2014 15:00:19 +0000 (10:00 -0500)]
ecore-wayland: Check if system has mouse in ecore_wl_input

Summary:
Added a condition to check if system has mouse before setting
the cursor on surface.

@fix

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

Subscribers: cedric

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

9 years agoecore-wayland: Fixed a request of start_drag with null value
MinJeong Kim [Mon, 1 Dec 2014 14:58:07 +0000 (09:58 -0500)]
ecore-wayland: Fixed a request of start_drag with null value

Summary:
Fixed a request of start_drag with null value.
The request with null value has caused SIGABRT and printed
"error marshalling arguments for start_drag (signature ?oo?ou):
null value passed for arg 1".

@fix

Test Plan:
1. Run enlightenment(wayland)
2. Run elementary_test -to FeatureDnd on enlightenment
3. Click any image and try to drag it.
(Without this revision, SIGABRT will occur
 and with this revision, will not.)

Reviewers: gwanglim, devilhorns

Subscribers: cedric

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

9 years agoEvas textblock: Fix possibly null dereference.
Tom Hacohen [Mon, 1 Dec 2014 11:55:08 +0000 (11:55 +0000)]
Evas textblock: Fix possibly null dereference.

Thanks to kimcinoo for reporting.

@fix

9 years agoevas: Evas_3D - add mesh blending mode.
Dmytro Dadyka [Mon, 1 Dec 2014 06:39:36 +0000 (07:39 +0100)]
evas: Evas_3D - add mesh blending mode.

Reviewers: Hermet, raster, cedric

Subscribers: Oleksander, cedric

@feature

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: Evas_3D - example which show frustum culing feature
Oleksandr Shcherbina [Thu, 9 Oct 2014 08:41:23 +0000 (11:41 +0300)]
evas: Evas_3D - example which show frustum culing feature

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: Evas_3D - add bounding sphere, revision frustum culling
Oleksandr Shcherbina [Mon, 1 Dec 2014 05:26:28 +0000 (06:26 +0100)]
evas: Evas_3D - add bounding sphere, revision frustum culling

Summary:
Move check visibility of node from evas_3d_node to evas_3d_camera
Move functionality (normalize, check distance, calculate frustum)
in evas_3d_utils.h (we are planing use evas_is_sphere_in_frustum in evas_gl_3d.c -
don't render mesh if it non visible)
Add possibility check frustum by box, aabb, central point
Refactor example frustum culling

@feature

Reviewers: Hermet, raster, cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: Evas_3D - fix depth texture size.
Dmytro Dadyka [Mon, 1 Dec 2014 04:57:00 +0000 (05:57 +0100)]
evas: Evas_3D - fix depth texture size.

Reviewers: raster, Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

The texture used to store the depth map should be a single-channel texture.

@fix

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoCheck return value of udev_device_get_sysattr_value(); before using atoi();
Shinwoo Kim [Sat, 29 Nov 2014 06:53:24 +0000 (15:53 +0900)]
Check return value of udev_device_get_sysattr_value(); before using atoi();

Summary: udev_device_get_sysattr_value(); could return NULL, and using atoi(); with NULL make system crash

Test Plan: It is hard to make a case to retun NULL. I got this from aging test of a product.

Reviewers: cedric, raster, seoz, woohyun, Hermet, jaehwan

Subscribers: cedric, seoz

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

9 years ago Use intrinsics for scaling up instead of inline asm
Carsten Haitzler (Rasterman) [Sat, 29 Nov 2014 06:50:03 +0000 (15:50 +0900)]
 Use intrinsics for scaling up instead of inline asm

Summary: Rewrite linline assembly in scaling func using NEON intrinsics.

Reviewers: raster

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

9 years agoevas - gl - fix warning for unused var in glx build
Carsten Haitzler (Rasterman) [Sat, 29 Nov 2014 03:07:33 +0000 (12:07 +0900)]
evas - gl - fix warning for unused var in glx build

9 years agoecore_evas_x: Fixed strange condition.
Hosang Kim [Fri, 28 Nov 2014 16:10:39 +0000 (01:10 +0900)]
ecore_evas_x: Fixed strange condition.

Summary:
To satisfy this condition, ee->visible will be EINA_FALSE. But when iconify is requested, ee->visible is usually EINA_TRUE.

@fix

Reviewers: raster, Hermet, seoz

Reviewed By: seoz

Subscribers: cedric

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

9 years agoelua: update eolian bindings
Daniel Kolesa [Fri, 28 Nov 2014 12:57:52 +0000 (12:57 +0000)]
elua: update eolian bindings

9 years agoeolian: new APIs for filenames
Daniel Kolesa [Fri, 28 Nov 2014 12:54:11 +0000 (12:54 +0000)]
eolian: new APIs for filenames

Adds 4 new APIs for getting .eo and .eot file names and file paths.

9 years agoevas/map: remove old comments.
ChunEon Park [Fri, 28 Nov 2014 11:33:49 +0000 (20:33 +0900)]
evas/map: remove old comments.

It's been so long. even SLP is not a valid name anymore.
No idea whether the problem still exist or not.
If it is then it should be reported and fixed.

9 years agoeet - add new api to verify eet file against stored cert
Carsten Haitzler (Rasterman) [Fri, 28 Nov 2014 08:54:39 +0000 (17:54 +0900)]
eet - add new  api to verify eet file against stored cert

this api makes it far more obvious as to how to verify an eet file via
the eet identify mechanisms that use x509 certificates to sign files.
this is consistent with the api used to generate the key for sigining
thus you can use the same certificate file to compare against for
identify.

@feature

9 years agoEvas GL: Use strncat and strncpy for safety
Jean-Philippe Andre [Fri, 28 Nov 2014 02:21:43 +0000 (11:21 +0900)]
Evas GL: Use strncat and strncpy for safety

Fixes Coverity reports:
- CID 1256183

Coverity was a bit stupid there. It knows the size of both
strings and complained about unsafe strcpy. It should have
complained about unsafe strcat instead.

9 years agoevas: fix build warning.
ChunEon Park [Fri, 28 Nov 2014 04:29:00 +0000 (13:29 +0900)]
evas: fix build warning.

here const pointer access is no problem.

9 years agoevas_map: Remove unnecessary check for current map
Jaehyun Cho [Fri, 28 Nov 2014 04:24:24 +0000 (13:24 +0900)]
evas_map: Remove unnecessary check for current map

Summary:
Remove unnecessary check for current map
         @fix

Reviewers: Hermet

Subscribers: cedric

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

9 years agoevas_object_main: Keep map effect after evas object move
Jaehyun Cho [Fri, 28 Nov 2014 04:18:16 +0000 (13:18 +0900)]
evas_object_main: Keep map effect after evas object move

Summary:
Keep map effect after evas object move
@feature

Reviewers: raster, cedric, Hermet

Subscribers: raster, cedric

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

9 years agoeolian: remove support for function types
Daniel Kolesa [Thu, 27 Nov 2014 17:20:21 +0000 (17:20 +0000)]
eolian: remove support for function types

These won't be needed because of Eo callbacks. They're also difficult
to handle in bindings, so this will relieve bindings of some effort.

9 years agoecore_con: move Ecore_Con_Dns_Cb back to C
Daniel Kolesa [Thu, 27 Nov 2014 17:13:20 +0000 (17:13 +0000)]
ecore_con: move Ecore_Con_Dns_Cb back to C

We'll be removing function pointer support from Eolian, instead
replacing any callback we can with events (arbitrary callbacks are
very difficult to support in bindings). As we'll be handling all
callbacks at once, we'll do this one at that point as well.

9 years agoEvas: Fix shader gen script for Ubuntu
Jean-Philippe Andre [Thu, 27 Nov 2014 12:46:14 +0000 (21:46 +0900)]
Evas: Fix shader gen script for Ubuntu

dash was the shell on that machine.
Also, GCC complained about a non const initializer.

Thanks SeoZ for the report.

9 years agoEvas GL: Fix up some more desktop GL extensions
Jean-Philippe Andre [Thu, 27 Nov 2014 11:46:10 +0000 (20:46 +0900)]
Evas GL: Fix up some more desktop GL extensions

OpenGL 1.2 already supports some of the features that
GLESv2 has as extensions:
- GL_EXT_read_format_bgra
- GL_EXT_texture_format_BGRA8888
- GL_EXT_texture_type_2_10_10_10_REV

Also, we need to check the proper ARB name of some extensions when
running on desktop, instead of their OES/IMG/EXT equivalent:
- GL_ARB_texture_float
- GL_ARB_texture_half_float
- GL_ARB_texture_non_power_of_two
- GL_ARB_half_float_vertex
- GL_EXT_packed_depth_stencil

9 years agoEvas GL: Also add read bgra for desktop GL
Jean-Philippe Andre [Thu, 27 Nov 2014 11:15:40 +0000 (20:15 +0900)]
Evas GL: Also add read bgra for desktop GL

9 years agoEvas GL: Advertise support for npot on desktop
Jean-Philippe Andre [Thu, 27 Nov 2014 11:08:10 +0000 (20:08 +0900)]
Evas GL: Advertise support for npot on desktop

The extension name is GL_ARB_texture_non_power_of_two
for desktop GL, but GL_OES_texture_npot for GLES.

We will consider the extensions compatible, I believe
the GLES version is a subset of the desktop one. Not sure
if that's 100% true.

9 years agoEvas GL: Always support BGRA8888 on desktop GL
Jean-Philippe Andre [Thu, 27 Nov 2014 10:47:41 +0000 (19:47 +0900)]
Evas GL: Always support BGRA8888 on desktop GL

9 years agoEvas GL: Also return fake GLSL version string
Jean-Philippe Andre [Thu, 27 Nov 2014 10:05:26 +0000 (19:05 +0900)]
Evas GL: Also return fake GLSL version string

9 years agoEvas GL: Always return "OpenGL ES 2.0" as version
Jean-Philippe Andre [Thu, 27 Nov 2014 08:17:03 +0000 (17:17 +0900)]
Evas GL: Always return "OpenGL ES 2.0" as version

This time it's for desktop GL.

I decided to keep some vendor info, as it can help for debugging
purposes.

9 years agoEvas GL: Print GLSL version with EVAS_GL_INFO
Jean-Philippe Andre [Thu, 27 Nov 2014 08:09:22 +0000 (17:09 +0900)]
Evas GL: Print GLSL version with EVAS_GL_INFO

9 years agoEvas GL: Return supported extensions list in glGetString()
Jean-Philippe Andre [Thu, 27 Nov 2014 08:03:04 +0000 (17:03 +0900)]
Evas GL: Return supported extensions list in glGetString()

9 years agoREADME: Update version number to latest
Stefan Schmidt [Thu, 27 Nov 2014 07:56:57 +0000 (08:56 +0100)]
README: Update version number to latest

Spotted by Lionel Orry. Thanks!

9 years agoEvas GL: Doc: Tell people not to read info from Evas_Native_Surface
Jean-Philippe Andre [Thu, 27 Nov 2014 07:15:23 +0000 (16:15 +0900)]
Evas GL: Doc: Tell people not to read info from Evas_Native_Surface

The information set there is not meant to be read by applications
and reused there. This would break the whole concept of letting
Evas deal with its surfaces.

Ideally Evas GL should not expose texture or fbo ID to external
applications. We could even use a new (non public) surface type
for that purpose.

9 years agoEvas GL: Return current framebuffer based on ctx information
Jean-Philippe Andre [Thu, 27 Nov 2014 05:51:58 +0000 (14:51 +0900)]
Evas GL: Return current framebuffer based on ctx information

ctx->current_fbo should contain the visible FBO value, even
if indirect rendering is used.

9 years agoEvas GL: Remove useless field
Jean-Philippe Andre [Thu, 27 Nov 2014 05:45:34 +0000 (14:45 +0900)]
Evas GL: Remove useless field

- fbo_attached is not used.
- buffers_allocated is just a bool

9 years agoEolian lua: Fix typo in function name
Jean-Philippe ANDRE [Sat, 22 Nov 2014 09:32:52 +0000 (18:32 +0900)]
Eolian lua: Fix typo in function name

9 years agoEvas GL: Remove unnecessary check
Jean-Philippe ANDRE [Thu, 20 Nov 2014 15:59:19 +0000 (00:59 +0900)]
Evas GL: Remove unnecessary check

We already checked that re->func.get_pixels wasn't NULL.

9 years agoecore-drm: pass appropriate arguments to eldbus_message_arguments_get(), so that...
Seunghun Lee [Wed, 26 Nov 2014 15:31:06 +0000 (10:31 -0500)]
ecore-drm: pass appropriate arguments to eldbus_message_arguments_get(), so that it can be return as success in _cb_device_resumed().

Summary: it seems eldbus_message_arguments_get() should be received all arguments to return success.

@fix

Reviewers: devilhorns, gwanglim

Subscribers: cedric

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

9 years agoecore-drm: Fixup formatting from D1696 patch
Chris Michael [Wed, 26 Nov 2014 14:08:55 +0000 (09:08 -0500)]
ecore-drm: Fixup formatting from D1696 patch

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-drm: Sending Active to login1.Session
kabeer khan [Wed, 26 Nov 2014 14:07:46 +0000 (09:07 -0500)]
ecore-drm: Sending Active to login1.Session

Summary:
Resolved TODO to set Active and State property of login1.Session
Set Active = true and State = 'active' via eldbus_proxy_property_set

@fix

Signed-off-by: kabeer khan <kabeer.khan@samsung.com>
Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric

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

9 years agoecore-drm: close fd handle if _ecore_drm_tty_setup() is failed in ecore_drm_tty_open().
Seunghun Lee [Wed, 26 Nov 2014 14:01:47 +0000 (09:01 -0500)]
ecore-drm: close fd handle if _ecore_drm_tty_setup() is failed in ecore_drm_tty_open().

Summary: added code to close fd handle and clear data.

@fix

Test Plan: N/A

Reviewers: gwanglim, devilhorns

Reviewed By: devilhorns

Subscribers: cedric

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

9 years agoecore-drm: remove unnecessary setting file's flag of O_RDWR that are ignored.
Seunghun Lee [Wed, 26 Nov 2014 13:59:30 +0000 (08:59 -0500)]
ecore-drm: remove unnecessary setting file's flag of O_RDWR that are ignored.

Summary: setting flag of O_RDWR by F_SETFL is no effect. it's ignored.

@fix

Reviewers: gwanglim, devilhorns

Reviewed By: devilhorns

Subscribers: cedric

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

9 years agoEvas GL: Fix indirect rendering surfaces for GLES 1.1
Jean-Philippe Andre [Wed, 26 Nov 2014 13:42:08 +0000 (22:42 +0900)]
Evas GL: Fix indirect rendering surfaces for GLES 1.1

Carefully select the requested EGL config and match it with
the available visual from X, including the following options:
- Stencil
- Depth
- MSAA

TODO: The same thing for GLX. And fix direct rendering as well.

9 years agoedje entry: improve selection performance
Thiep Ha [Wed, 26 Nov 2014 11:29:08 +0000 (11:29 +0000)]
edje entry: improve selection performance

Summary:
The selection performance is slow if we select large chunk of text.
This is caused by many rectangles created and deleted.
This patch provides a way to improve it by combine selection rectangles
of line in middle into one rectangles (i.e, if we have N lines,
the selection rectangle for lines 2 to N-1 will be combined into one.)

@feature

Reviewers: raster, cedric, tasn

Subscribers: herdsman, woohyun, cedric

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

9 years agoevas/example - fix wrong image size.
ChunEon Park [Wed, 26 Nov 2014 10:18:57 +0000 (19:18 +0900)]
evas/example - fix wrong image size.

9 years agoevas/examples: add map anti aliasing example.
ChunEon Park [Wed, 26 Nov 2014 10:12:09 +0000 (19:12 +0900)]
evas/examples: add map anti aliasing example.

9 years agoevas/map: correct last 1 pixel handling in spans.
ChunEon Park [Wed, 26 Nov 2014 08:39:27 +0000 (17:39 +0900)]
evas/map: correct last 1 pixel handling in spans.

Clipper causes the different rendering result by last 1 pixel on the width.
Because the left edge x range (0 ~ (w - 1)) and right edge x range (0  ~ w) is different.
This fix won't be memory over access problem even if x span position is on the end of the edge.
Because the span width(x2 - x1) will be 0, and it restuls in skipping drawing.
It's hardly find the problem but you can detect the subtle rendering difference when some arbitrary meshes with map is
You can compare image and rectangle map drawing for this.

@fix

9 years agotextblock: correct text position for RTL text with margins
Thiep Ha [Wed, 26 Nov 2014 08:18:49 +0000 (10:18 +0200)]
textblock: correct text position for RTL text with margins

Summary:
If a RTL textblock has right margin, text is wrongly placed
(right margin is moved to left).
This patch fixes this issue.
Test cases are also added to test text position with margins.

@fix

Reviewers: tasn, herdsman

Subscribers: woohyun, cedric

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

9 years agoevas/map: revise draw code.
ChunEon Park [Wed, 26 Nov 2014 06:59:27 +0000 (15:59 +0900)]
evas/map: revise draw code.

reverted draw logic and applying aa drawing better safely.

9 years agoevas/map: removed unnecessary.
ChunEon Park [Wed, 26 Nov 2014 06:17:51 +0000 (15:17 +0900)]
evas/map: removed unnecessary.

9 years agoevas/map: support aa in basic c computation.
ChunEon Park [Wed, 26 Nov 2014 06:12:25 +0000 (15:12 +0900)]
evas/map: support aa in basic c computation.

9 years agoevas/map : set antialias context for map rendering.
ChunEon Park [Wed, 26 Nov 2014 03:22:55 +0000 (12:22 +0900)]
evas/map : set antialias context for map rendering.

9 years agoevas/map: add comments for readability.
ChunEon Park [Wed, 26 Nov 2014 03:07:10 +0000 (12:07 +0900)]
evas/map: add comments for readability.

9 years agoevas/map: code refactoring.
ChunEon Park [Tue, 25 Nov 2014 12:35:33 +0000 (21:35 +0900)]
evas/map: code refactoring.

use array for easier indexing in the coming anti-alias logic code.

9 years agoEet: add diffeet a tool for diffing eet files.
Tom Hacohen [Tue, 25 Nov 2014 11:29:10 +0000 (11:29 +0000)]
Eet: add diffeet a tool for diffing eet files.

This is not perfect at the moment, as the decoded output might change
drastically in some cases, however this is still useful for the other cases.

Anyway, we should fix the eet decoding to have a consistent order, so this
will be more useful.

@feature.

9 years agoecore: Add warnings to the public internal APIs.
Daniel Juyung Seo [Tue, 25 Nov 2014 08:57:45 +0000 (17:57 +0900)]
ecore: Add warnings to the public internal APIs.

These APIs were not meant to be exposed so it is not recommended to
use them out side of EFL. We had to expose them to use them between
EFL libraries. (Talked with Raster)

9 years agoedje: Add more description about edc group_name.
Daniel Juyung Seo [Tue, 25 Nov 2014 08:36:24 +0000 (17:36 +0900)]
edje: Add more description about edc group_name.

9 years agoevas_object_textblock: Resolved FIXME replaced int with size_t
kabeer khan [Tue, 25 Nov 2014 09:55:36 +0000 (09:55 +0000)]
evas_object_textblock: Resolved FIXME replaced int with size_t

Summary:
Since Evas_Textblock_Cursor has pos  of type size_t so changed
pos argument in _find_layout_item_line_match from int to size_t
Also Evas_Object_Textblock_Item has text_pos of size_t so defined
variable p of type size_t

Signed-off-by: kabeer khan <kabeer.khan@samsung.com>
Reviewers: tasn

Subscribers: devilhorns, cedric

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

9 years agoecore-xi2 - fix issue with ifdefs and moustache nesting
Carsten Haitzler (Rasterman) [Tue, 25 Nov 2014 09:21:26 +0000 (18:21 +0900)]
ecore-xi2 - fix issue with ifdefs and moustache nesting

don't ask how this worked at all... it did... until you change some
ifdefs

9 years agoecore-con - silence bsd source wanrings for dns.c
Carsten Haitzler (Rasterman) [Tue, 25 Nov 2014 08:03:53 +0000 (17:03 +0900)]
ecore-con - silence bsd source wanrings for dns.c

silence this annoying warning we've had for a while:

In file included from /usr/include/stdint.h:25:0,
                 from
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/include/stdint.h:9,
                 from lib/ecore_con/dns.c:45:
                 /usr/include/features.h:148:3: warning: #warning
"_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
[-Wcpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use
_DEFAULT_SOURCE"

9 years agoecore drm - comment out unused code to reduce warnings
Carsten Haitzler (Rasterman) [Tue, 25 Nov 2014 08:01:36 +0000 (17:01 +0900)]
ecore drm - comment out unused code to reduce warnings

several brightness functions in ecore drm are unused - comment them
out until they are needed.

9 years agoaxis code ... warning --
Carsten Haitzler (Rasterman) [Tue, 25 Nov 2014 07:58:25 +0000 (16:58 +0900)]
axis code ... warning --

9 years agoecore-x - xi2 - only compile functions when used by xi2
Carsten Haitzler (Rasterman) [Tue, 25 Nov 2014 07:09:28 +0000 (16:09 +0900)]
ecore-x - xi2 - only compile functions when used by xi2

9 years agoecore x - mark unused param as unused (warning--)
Carsten Haitzler (Rasterman) [Tue, 25 Nov 2014 07:07:09 +0000 (16:07 +0900)]
ecore x - mark unused param as unused (warning--)

9 years agoecore-x - xi2 support - unbreak build break i added.
Carsten Haitzler (Rasterman) [Tue, 25 Nov 2014 06:37:16 +0000 (15:37 +0900)]
ecore-x - xi2 support - unbreak build break i added.

this only breaks when you enable xi2.2

9 years agoEdje: remove duplicated code.
Daniel Zaoui [Mon, 24 Nov 2014 09:08:17 +0000 (11:08 +0200)]
Edje: remove duplicated code.

In _edje_object_evas_object_smart_add, code is duplicated from
_evas_object_smart_clipped_smart_add. We can invoke eo_do_super instead.

9 years agoedje - remove old script_only code that used embryo (not lua)
Carsten Haitzler (Rasterman) [Tue, 25 Nov 2014 06:09:00 +0000 (15:09 +0900)]
edje - remove old script_only code that used embryo (not lua)

thjis was deprecated even before efl 1.0 by never removed. lua
replaced it for script_only objects and you havent been able to
compile an edje file with script_only enabled since 1.0, so no point
having the code here.

this cleans up that code and cruft.

9 years agoExpose device (e.g. pen) axis information to applications
Jason Gerecke [Tue, 25 Nov 2014 03:07:50 +0000 (12:07 +0900)]
Expose device (e.g. pen) axis information to applications

Summary:
This patch set adds the necessary code to expose device axis state to applications. This was primarily written with graphics tablets in mind, which -- in addition to acting like a mouse -- also provide information about pen pressure, tilt, etc. Other devices could potentially benefit from this API as well: touchscreens, joysticks, knob controllers, "spaceballs", etc.

Whenever an update to the device state is recieved, an "Axis update" event is synthesized. This event contains the updated information, typically scaled and normalized to a particular logical range (e.g. zero to one for pressure, -pi to pi radians for angles, etc.). Information about the tool which generated the event is also stored so that applications can disambiguate events from multiple devices (or in the case of multitouch screens, individual fingers).

This API is only wired up for use with X11 at the moment. Support for other backends (e.g. Wayland) should be easy to add for those familiar them.

**Note**: The following is a list of changes from the "v2" patches originally sent to the mailinglist

//Define and implement new Ecore_Event_Axis_Update events//
 * Harcode axis labels instead of including xserver-properties.h
 * Use C89-style comments
 * Use doxygen comments
 * Update comment text to note axes with unbounded/undefined ranges/units
 * Create "Ecore_Axis" and "Ecore_Axis_Label" typedefs
 * Reference typedef'd instead of raw types
 * Adjust how we count through valuators to support tilt/az
 * Add support for tilt and azimuth
 * Tweak memory management in case number of valuators differ
 * Expand TWIST axis normalization to declared range
 * Only normalize TWIST axis if resolution == 1 (wacom bug)
 * Cache label atoms on first use to minimize round-trips

//Implement EVAS_CALLBACK_AXIS_UPDATE event and friends//
 * Update to doxygen comments
 * Update comment text to note axes with unbounded/undefined ranges/units
 * Typedef 'Evas_Axis_Label', 'Evas_Axis'
 * Move typedef for 'Evas_Event_Axis_Update'
 * Reference typedef'd instead of raw types

//Wire the Ecore and Evas implementations of axis update events together//
 * Expose ecore_event_evas_axis_update in Ecore_Input_Evas.h
 * Move ecore_event_evas_axis_update to more logical position

//DEBUG: Add axis update logging to evas-multi-touch.c//
 * Removed from patch set

//Make evas-multi-touch demo use new axis functionality//
 * Have pressure adjust rectangle brightness instead of size
 * Use more available axis data when rendering rectangle (azimuth, tilt, twist)

Test Plan: The evas-multi-touch demo was updated to support axis update events. A graphics tablet was then used to verify that the pressure, azimuth, tilt, and twist data was coming through correctly.

Reviewers: cedric, raster

Subscribers: cedric

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

Conflicts:
src/lib/ecore_input/Ecore_Input.h

Carsten Haitzler -

** fixed forward enum typedefs (make things unhappy)
** fixed conflict above
** fixed wrong param type for _evas_canvas_event_feed_axis_update()
** fixed @sinces to be 1.13
** fixed formatting/indeting
** fixed order of operation reliance in if's with ()'s to be clear
** fixed functions to be static that should have been

9 years agoedje_edit: updated doc.
ChunEon Park [Tue, 25 Nov 2014 01:00:31 +0000 (10:00 +0900)]
edje_edit: updated doc.

revised the ambigious description for clarify.

9 years agoEcore FIle: Added test case for ecore_file download
kabeer khan [Mon, 24 Nov 2014 14:35:48 +0000 (09:35 -0500)]
Ecore FIle: Added test case for ecore_file download

Summary:
Added test cases for ecore_file_download and ecore_file_download_full

Signed-off-by: kabeer khan <kabeer.khan@samsung.com>
Reviewers: devilhorns, stefan_schmidt

Subscribers: cedric

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

9 years agoEvas GL common: Cosmetic change
Jean-Philippe Andre [Mon, 24 Nov 2014 09:46:49 +0000 (18:46 +0900)]
Evas GL common: Cosmetic change

Don't cast "ext" a hundred times when you can do it once.

9 years agoEvas GL common: Scan extension string for ETC1 subimage
Jean-Philippe Andre [Mon, 24 Nov 2014 09:44:46 +0000 (18:44 +0900)]
Evas GL common: Scan extension string for ETC1 subimage

There is an official name for it:
GL_EXT_compressed_ETC1_RGB8_sub_texture

Thanks Mythri for pushing that specification.

9 years agoEvas GL common: Fix RGB+A textures draw
Jean-Philippe Andre [Mon, 24 Nov 2014 09:38:46 +0000 (18:38 +0900)]
Evas GL common: Fix RGB+A textures draw

Also rename texm into texa for consistency.
Even though texa might be a mask image, it's still used only
for it's a (alpha) channel.

9 years agoeldbus-codegen: More memory leak fixes for generated code.
Stefan Schmidt [Mon, 24 Nov 2014 09:04:03 +0000 (10:04 +0100)]
eldbus-codegen: More memory leak fixes for generated code.

Same fix as we did for simple method calls we need in complex method calls as
well. Unref message on error path.

@fix

9 years agoelocation/geoclue2: Update generated code after generator leak fixes.
Stefan Schmidt [Mon, 24 Nov 2014 09:03:01 +0000 (10:03 +0100)]
elocation/geoclue2: Update generated code after generator leak fixes.

This brings in some fixed memory leaks from the generator.

9 years agoeldbus-codegen: Free msg on error path for generated code.
Stefan Schmidt [Mon, 24 Nov 2014 08:54:06 +0000 (09:54 +0100)]
eldbus-codegen: Free msg on error path for generated code.

If eldbus_message_arguments_append we would never unref the message.
This will fix various Coverity issues in generatd eldbus code.

@fix

CID: 1255634, 1255636, 1255637, 1255639

9 years agoecore-evas - fix focus skip flag to be one way
Carsten Haitzler (Rasterman) [Sun, 23 Nov 2014 13:01:34 +0000 (22:01 +0900)]
ecore-evas - fix focus skip flag to be one way

this fixes focus skip being set if someone else sets skip
pager/taskbar. it's a one-way prop. if focus skip is set THEN skip
pager/taskbar is set. not the other way.

9 years agoecore-drm: fix error check of _device_flags_set function
Seunghun Lee [Fri, 21 Nov 2014 14:18:29 +0000 (09:18 -0500)]
ecore-drm: fix error check of _device_flags_set function

Summary: the function return -1 if it's failed so checking for ! is
incorrect. We should check if the return is less than zero.

@fix

Reviewers: gwanglim, devilhorns

Reviewed By: devilhorns

Subscribers: cedric

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

9 years agoecore_file : Changed documentation of ecore_file_mksubdirs
kabeer khan [Fri, 21 Nov 2014 14:16:56 +0000 (09:16 -0500)]
ecore_file : Changed documentation of ecore_file_mksubdirs

Summary:
Corrected documentation of ecore_file_mksubdirs by replacing dirs with subdirs

Signed-off-by: kabeer khan <kabeer.khan@samsung.com>
Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric

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

9 years agoeolian: one func for filling in namespaces
Daniel Kolesa [Fri, 21 Nov 2014 14:12:40 +0000 (14:12 +0000)]
eolian: one func for filling in namespaces

9 years agoeolian: get rid of the PARSE_SECTION macro nonsense
Daniel Kolesa [Fri, 21 Nov 2014 13:59:42 +0000 (13:59 +0000)]
eolian: get rid of the PARSE_SECTION macro nonsense

9 years agoexamples/evas: Ignore evas_3d_ply example binary
Stefan Schmidt [Fri, 21 Nov 2014 10:48:59 +0000 (11:48 +0100)]
examples/evas: Ignore evas_3d_ply example binary

9 years agoelocation: Update generated code for geoclue2 after eldbus-codegen bugfix
Stefan Schmidt [Fri, 14 Nov 2014 12:35:42 +0000 (13:35 +0100)]
elocation: Update generated code for geoclue2 after eldbus-codegen bugfix

Property set works now.