platform/upstream/efl.git
9 years agoecore-wl now prints an error when the socket dies
Mike Blumenkrantz [Thu, 12 Mar 2015 18:33:45 +0000 (14:33 -0400)]
ecore-wl now prints an error when the socket dies

9 years agoecore: cosmetic grouping if that belong together.
Cedric BAIL [Thu, 12 Mar 2015 06:21:56 +0000 (07:21 +0100)]
ecore: cosmetic grouping if that belong together.

9 years agoecore_con: fix uninitialized warning in tests suite.
Cedric BAIL [Thu, 12 Mar 2015 06:20:34 +0000 (07:20 +0100)]
ecore_con: fix uninitialized warning in tests suite.

9 years agoeio: include eio tests suite inside the release tarball.
Cedric BAIL [Thu, 12 Mar 2015 06:19:33 +0000 (07:19 +0100)]
eio: include eio tests suite inside the release tarball.

9 years agoeio: add OSX implementation of eio_monitor based on FSEvent
pierre lamot [Thu, 26 Feb 2015 13:37:45 +0000 (14:37 +0100)]
eio: add OSX implementation of eio_monitor based on FSEvent

this patch adds an implementation of eio_monitor based on FSEvent
for OSX. This implentation has some limitations compared to inotify
implementation. Folowing events are not detected:
  - EIO_MONITOR_FILE_CLOSED
  - EIO_MONITOR_SELF_RENAME
  - EIO_MONITOR_SELF_DELETED

It should be noted that some events that happend before the call
to eio_monitor_add can be catched. This is why sleep timers have
been added in the test suite.

Tests have been added to check uncovered scenarios.

some things might still be improved:
  - self_deleted events for files might be handled by checking the
    file_name manually

  - self_deleted events for directories might be handled by setting
    kFSEventStreamCreateFlagWatchRoot. I've noticed by doing so that
a lot more unwanted event are raised

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_cocoa: fix keyboad event handling
pierre lamot [Thu, 19 Feb 2015 15:34:33 +0000 (16:34 +0100)]
ecore_cocoa: fix keyboad event handling

This patch allows to interpret correctly several types of key combinations:
  - alt keys : € œ ¬
  - dead keys : ä ë
  - dead keys (bis, they are handled differently) : ~ ã
  - control keys: ^C ^A
  - page up/ page down

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_cocoa: handle right and other mouse events
pierre lamot [Thu, 19 Feb 2015 09:25:00 +0000 (10:25 +0100)]
ecore_cocoa: handle right and other mouse events

right and other mouse events where missing in the patch
correcting mouse event handling

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_cocoa: move mouse event handling to NSWindow
pierre lamot [Wed, 18 Feb 2015 13:11:00 +0000 (14:11 +0100)]
ecore_cocoa: move mouse event handling to NSWindow

Mouse events was broken after a resize of the window from the left
or the bottom. As I understand, theses resize were changing the origin
of Cocoa window independly from the origin of the EFL.

This has been resolved by moving mouse envents handling to our NSWindow
delegate. thus events are always in the right referential.

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: symetric lock/unlock calls in gl_cocoa backend.
Nicolas Aguirre [Thu, 12 Feb 2015 07:29:40 +0000 (08:29 +0100)]
evas: symetric lock/unlock calls in gl_cocoa backend.

this code add symetric calls to lock and unlock focus view

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_cocoa: remove ObjC autorelease block to avoid segv when window is closed.
Nicolas Aguirre [Thu, 12 Feb 2015 07:07:01 +0000 (08:07 +0100)]
ecore_cocoa: remove ObjC autorelease block to avoid segv when window is closed.

autorelease block is used in ObjC to release automatically objects not used
anymore. Placed here this block release the NSWindow we created by hand in the
ecore_cocoa code and give us a SEGV as we use memory already freed
automatically. Removing this block fix this issue.

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: free EvasGlView when the evas is freed in gl_cocoa backend.
Nicolas Aguirre [Thu, 5 Feb 2015 17:29:56 +0000 (18:29 +0100)]
evas: free EvasGlView when the evas is freed in gl_cocoa backend.

EvasGLView is now correctly freed when the Evas is destroyed

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: lock and unlock focus on Cocoa view when drawing surface
Romain Perier [Thu, 22 Jan 2015 12:28:47 +0000 (13:28 +0100)]
evas: lock and unlock focus on Cocoa view when drawing surface

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: use a shared OpenGL context in gl_cocoa backend.
Romain Perier [Thu, 22 Jan 2015 09:26:55 +0000 (10:26 +0100)]
evas: use a shared OpenGL context in gl_cocoa backend.

Evas GL backend uses a global OpenGL context for all windows inside
an application. Each window has its own texture to render its
content. We use a singleton NSOpenGLContext shared between all
NSOpenGLView, it solves rendering issues for multiple windows.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_evas: add support for multiple windows to cocoa backend.
Romain Perier [Thu, 15 Jan 2015 15:55:40 +0000 (16:55 +0100)]
ecore_evas: add support for multiple windows to cocoa backend.

Each new Ecore_Evas was already stored into the evases container, however only
the first one was returned and used from events handler, which is not correct if
the application uses multiple windows. This commit adds support to handle
Ecore_Event_Cocoa_Window event type from event handlers and modify
_ecore_evas_cocoa_match() to find the right Ecore_Evas associated with the window
indentifier passed throught Ecore_Event_Cocoa_Window.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: remove warnings due to unused variables from gl_cocoa backend.
Nicolas Aguirre [Thu, 29 Jan 2015 16:09:42 +0000 (17:09 +0100)]
evas: remove warnings due to unused variables from gl_cocoa backend.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeio: fix segmentation fault on eio_monitor for win32 api
michelle legrand [Fri, 27 Feb 2015 14:18:47 +0000 (15:18 +0100)]
eio: fix segmentation fault on eio_monitor for win32 api

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeio: add unit tests for eio file and directory monitoring.
plamot [Mon, 23 Feb 2015 13:44:48 +0000 (14:44 +0100)]
eio: add unit tests for eio file and directory monitoring.

this patch adds units test to check the behavior of eio file
and directory monitoring module

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeina: win32 release lock in case of error
Michelle Legrand [Fri, 13 Feb 2015 13:33:58 +0000 (14:33 +0100)]
eina: win32 release lock in case of error

Summary:
It's better to realese the lock before returning NULL. Otherwise the program
is waiting indefinitely then crashing on Windows ("program not responding").

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevil: add strndup().
Michelle Legrand [Thu, 12 Feb 2015 13:45:07 +0000 (14:45 +0100)]
evil: add strndup().

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeina: add more access to created file.
Michelle Legrand [Wed, 11 Feb 2015 09:00:10 +0000 (10:00 +0100)]
eina: add more access to created file.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoEvas masking: Fix rendering of masks into invalid surfaces (GL)
Jean-Philippe Andre [Thu, 12 Mar 2015 02:28:02 +0000 (11:28 +0900)]
Evas masking: Fix rendering of masks into invalid surfaces (GL)

In some rare cases, a mask would be rendered (from mask_subrender)
into a surface that is NOT an FBO. This would happen because the
previous surface was a "scaled GL image" and its size would
match the required geometry.

That took a while to figure out...
http://thecodinglove.com/post/111546429281/when-i-finally-solve-a-nasty-bug

9 years agoecore-drm: Return the index of the crtc from output_crtc_find
Chris Michael [Wed, 11 Mar 2015 21:09:48 +0000 (17:09 -0400)]
ecore-drm: Return the index of the crtc from output_crtc_find

Summary:
Fix issue of invalid memory read from
ecore_drm_output_create. We call ecore_drm_output_crtc_find to get the
Index of the crtc to use, however prior to this commit the index was
not being returned (the actual crtc was)

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
Reviewers: zmike

Subscribers: cedric

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

9 years agoevas - change error out from bitch to complain - cosmetic change
Carsten Haitzler (Rasterman) [Wed, 11 Mar 2015 12:58:31 +0000 (21:58 +0900)]
evas - change error out from bitch to complain - cosmetic change

9 years agotests/ecore: Make sure server keys end up in dist so the ecore ssl tests work
Stefan Schmidt [Wed, 11 Mar 2015 08:34:06 +0000 (09:34 +0100)]
tests/ecore: Make sure server keys end up in dist so the ecore ssl tests work

I would really appreciate if people would run distcheck more often.

9 years agoexamples/evas: Remove no longer existing resources from dist
Stefan Schmidt [Wed, 11 Mar 2015 07:57:25 +0000 (08:57 +0100)]
examples/evas: Remove no longer existing resources from dist

These have been removed recently but forgotten in the distribution
of automake.

9 years agoecore-wayland: don't resize the window on focus
Derek Foreman [Tue, 10 Mar 2015 19:43:06 +0000 (15:43 -0400)]
ecore-wayland: don't resize the window on focus

Reviewers: devilhorns, zmike

Subscribers: cedric

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

9 years agoedje: correct order of functions
Sung-Taek Hong [Tue, 10 Mar 2015 07:31:32 +0000 (16:31 +0900)]
edje: correct order of functions

Summary:
_edje_object_part_text_raw_set() has to locate before
_edje_user_define_string().

 - _edje_user_define_string takes one of its parameters
   rp->typedata.text->text, and this is set
   by _edje_object_part_text_raw_set().

Signed-off-by: Sung-Taek Hong <sth253.hong@samsung.com>
Reviewers: cedric, seoz

Subscribers: seoz, cedric

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

9 years agoEvas GL example: Fix usage of the config struct
Jean-Philippe Andre [Mon, 9 Mar 2015 12:15:33 +0000 (21:15 +0900)]
Evas GL example: Fix usage of the config struct

Also use depth24 as it's more commonly supported than 32 bits.

9 years agoEvas GL texture: Fix invalid interpolation pixel
Jean-Philippe Andre [Mon, 9 Mar 2015 11:32:01 +0000 (20:32 +0900)]
Evas GL texture: Fix invalid interpolation pixel

The pixel on the top-right of a texture was set using an invalid offset.
"luckily" this never crashed but probably could have with wide
single-row images.

Also, the output was not perfectly correct.

9 years agoedje color classes can now have text descriptions
Mike Blumenkrantz [Sat, 7 Mar 2015 18:38:57 +0000 (13:38 -0500)]
edje color classes can now have text descriptions

@feature

9 years agoecore_con: fix rebase issue.
Cedric BAIL [Sat, 7 Mar 2015 14:53:40 +0000 (15:53 +0100)]
ecore_con: fix rebase issue.

Catched by Coverity CID 1287124.

9 years agoexamples: fix bad unref's in ecore and evas.
Avi Levin [Fri, 6 Mar 2015 18:17:55 +0000 (19:17 +0100)]
examples: fix bad unref's in ecore and evas.

Summary:
recived Error that object already deleted in the following files:
In evas-object-manipulation-eo.c: d.clipper and d.bg where created with
eo_add ( 1 ref ) but where unrefd twice: once explicity and once when
d.ee were deleted.
In ecore_indler_example: ctxt->idler were again explicity unrefd and
again unrefd by ecore_shutdown.
@fix

Reviewers: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoedje: Edje_Edit - fix part alias source generation.
Andrii Kroitor [Fri, 6 Mar 2015 18:16:06 +0000 (19:16 +0100)]
edje: Edje_Edit - fix part alias source generation.

Summary:
generating correct part alias string 'alias: "theme_part_path" "real_part_path";'
@fix

Reviewers: cedric, seoz, Hermet, raster

Subscribers: cedric, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: fix bug in the destructor of node in Evas_3D.
se.osadchy [Fri, 6 Mar 2015 18:12:57 +0000 (19:12 +0100)]
evas: fix bug in the destructor of node in Evas_3D.

Summary: Bug relative with segmentation fault if node isn't mesh_node type.

@fix

Reviewers: cedric, raster, Hermet

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: recycling of resources (deleted mine and eagle) in Evas_3D examples.
Bogdan Devichev [Fri, 6 Mar 2015 16:02:15 +0000 (17:02 +0100)]
evas: recycling of resources (deleted mine and eagle) in Evas_3D examples.

Summary:
Unneccessary resources are deleted.
In example of frustum used sweet_home.
In example of colorpick used sphere primitive.
Possibility to set precision of spheres deletes need in high quality mesh.
For spheres used textures of wood and rock, so for good work of colorpick https://phab.enlightenment.org/D2044 should be merged firstly.

Reviewers: cedric, raster, Hermet

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoevas: materials in .mtl format are deleted
Bogdan Devichev [Fri, 6 Mar 2015 15:55:32 +0000 (16:55 +0100)]
evas: materials in .mtl format are deleted

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

Reviewers: cedric, raster, Hermet

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeo: updated documentation of eo_add and eo_ref_add.
Srivardhan Hebbar [Fri, 6 Mar 2015 15:35:45 +0000 (16:35 +0100)]
eo: updated documentation of eo_add and eo_ref_add.

Summary: Had a chat with raster to understand the behavior of these two functions in the IRC. Thought it might be helpful if added in the documentation itself. So updated it accordingly.

Reviewers: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoedje: add orientation properties in edje_cc
perepelits.m [Fri, 6 Mar 2015 15:31:53 +0000 (16:31 +0100)]
edje: add orientation properties in edje_cc

Summary: Adding of two modes of node orientation, by setting of the angle and by setting of the quaternion.

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

Subscribers: artem.popov, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_con: Not returning error if port is less than zero for local sockets.
Srivardhan Hebbar [Fri, 6 Mar 2015 15:26:24 +0000 (16:26 +0100)]
ecore_con: Not returning error if port is less than zero for local sockets.

Summary:
If the socket is local, then there is no need to through error if the port is less than 0 (i.e., negetive). The behavior is same in _ecore_con_connector_eo_base_finalize funtion. So applied the same here. There is code in ecore_con_local.c to handle if port is less than zero for local sockets.
In _ecore_con_connector_eo_base_finalize function, I've added a space just so that it shows difference in phabricator and  would be easy for you to review.

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

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

9 years agoeina: add test cases for eina_xattr functions.
vivek [Fri, 6 Mar 2015 15:19:13 +0000 (16:19 +0100)]
eina: add test cases for eina_xattr functions.

Summary:
Add eina_test_xattr.c file for testing eina xattr functions and added test
cases for eina_xattr_set and eina_xattr_fd_set functions. Those tests need
a directory where the underlying file system allow xattr. Usually /tmp is
running on tmpfs that doesn't support today xattr. This test won't be run
if we are not provided with an existing proper directory.

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

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_con: add test cases related to SSL.
Srivardhan Hebbar [Fri, 6 Mar 2015 14:55:58 +0000 (15:55 +0100)]
ecore_con: add test cases related to SSL.

Summary:
Add test cases related to SSL. Now it is not crashing and all test cases passes.

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

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoecore_con: calling ecore_con_local_init/shutdown from ecore_con_init/shutdown.
Srivardhan Hebbar [Fri, 6 Mar 2015 14:52:43 +0000 (15:52 +0100)]
ecore_con: calling ecore_con_local_init/shutdown from ecore_con_init/shutdown.

Summary:
ecore_con_local doesn't currently require any initialization, but it might need
that on some platform and not having the init make the source code non obvious.
This is just a patch to improve future maintenability.

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

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoeina: minimize fragmentation of chainned mempool.
Subodh Kumar [Fri, 6 Mar 2015 14:48:38 +0000 (15:48 +0100)]
eina: minimize fragmentation of chainned mempool.

Summary:
Previously: Each allocation happened in the first chain after any free.
Now: All allocation will happen in one chain until all buckets are full, this can reduce
fragmentation to some extent.

Reviewers: seoz, govi, shilpasingh, raster, cedric

Reviewed By: cedric

Subscribers: cedric, rajeshps

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
9 years agoelua: unexpose callback add/del events
Daniel Kolesa [Fri, 6 Mar 2015 14:38:12 +0000 (14:38 +0000)]
elua: unexpose callback add/del events

9 years agoelua: more reliable eoid->lua number conversion
Daniel Kolesa [Fri, 6 Mar 2015 14:36:25 +0000 (14:36 +0000)]
elua: more reliable eoid->lua number conversion

9 years agoelua: remove irrelevant comment
Daniel Kolesa [Fri, 6 Mar 2015 14:29:37 +0000 (14:29 +0000)]
elua: remove irrelevant comment

9 years agoelua: a func-to-idx cache for eo callbacks
Daniel Kolesa [Fri, 6 Mar 2015 14:25:29 +0000 (14:25 +0000)]
elua: a func-to-idx cache for eo callbacks

9 years agoEdje epp: Fix FSF mailing address in the copyright notice.
Tom Hacohen [Fri, 6 Mar 2015 10:39:59 +0000 (10:39 +0000)]
Edje epp: Fix FSF mailing address in the copyright notice.

Fixes T2157.

Thanks to spotrh for suggesting the fix.

9 years agoEvas GL common: Create OpenGL ES 3.x contexts by default
Jean-Philippe Andre [Thu, 5 Mar 2015 10:21:24 +0000 (19:21 +0900)]
Evas GL common: Create OpenGL ES 3.x contexts by default

Automatically fallback to OpenGL ES 2.0 if OpenGL ES 3 is not supported.
This is a first step in trying to support GLES 3 for Evas GL.

This commit is also a wild test to see whether using GLES 3 contexts
by default will break anything. The theory says that GLES 3 is
backwards compatible with GLESv2.

So, if anything GL breaks for you... scream loudly!
But before reporting any bugs, please set the env variable:
- export EVAS_GL_DISABLE_GLES3=1

This does not add any requirement for GLESv3 support.

9 years agoEvas GL: Fix list of extensions with GLESv1
Jean-Philippe Andre [Thu, 5 Mar 2015 09:16:05 +0000 (18:16 +0900)]
Evas GL: Fix list of extensions with GLESv1

EGL/EvasGL extensions are also valid with GLESv1.
This means evasglCreateImage could be used.

@fix

9 years agoEdje init: fix typo in error message.
Tom Hacohen [Thu, 5 Mar 2015 09:26:01 +0000 (09:26 +0000)]
Edje init: fix typo in error message.

Evas is the one being initiated, not eet.

9 years agoEvas GL: Fix CRI message on shutdown
Jean-Philippe Andre [Thu, 5 Mar 2015 07:16:11 +0000 (16:16 +0900)]
Evas GL: Fix CRI message on shutdown

Just a simple log domain issue (EvasGL was not initialized, so
ERR() would trigger a fatal error). EvasGL is now initialized
on demand when a new GL surface is requested.

9 years agoedje - somehow edje doesn't init evas and this makes edje_decc break...
Carsten Haitzler (Rasterman) [Thu, 5 Mar 2015 01:33:58 +0000 (10:33 +0900)]
edje - somehow edje doesn't init evas and this makes edje_decc break...

@fix

how on earth has everything worked to date? someone must have remved
some evas_init from somewhere int he init codepath. this adds it back
in and edje_decc works again without a segv.

9 years agoee-wl should probably clamp configure event resize to output size for fs wins
Mike Blumenkrantz [Wed, 4 Mar 2015 21:49:19 +0000 (16:49 -0500)]
ee-wl should probably clamp configure event resize to output size for fs wins

fs configures are 0x0, so reuse existing output size here to get accurate sizes

9 years agoecore-wl windows now emit 0x0 configure sizes more reliably when fs/maximized
Mike Blumenkrantz [Wed, 4 Mar 2015 21:46:39 +0000 (16:46 -0500)]
ecore-wl windows now emit 0x0 configure sizes more reliably when fs/maximized

9 years agoecore-wl update window saved.size on any resize instead of just fs/maximize
Mike Blumenkrantz [Wed, 4 Mar 2015 21:45:50 +0000 (16:45 -0500)]
ecore-wl update window saved.size on any resize instead of just fs/maximize

9 years agoecore-drm: Implement edid parsing for Ecore_Drm_Output
Chris Michael [Wed, 4 Mar 2015 19:53:06 +0000 (14:53 -0500)]
ecore-drm: Implement edid parsing for Ecore_Drm_Output

Summary: This implements edid parsing to obtain output make and model
so we can get better output names. This also fixes a false FIXME
statement in ecore_drm_output_physical_size_get function. As it turns
out, we don't need to get these values from edid parsing as they are
already available in the drm connector.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-drm: Add edid structure to Ecore_Drm_Output
Chris Michael [Wed, 4 Mar 2015 19:52:04 +0000 (14:52 -0500)]
ecore-drm: Add edid structure to Ecore_Drm_Output

Summary: This adds an edid substructure to Ecore_Drm_Output so that
when we parse out EDID information, we have a place to store it

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-evas-drm: Fix function call to ecore_evas_pointer_xy_get for drm
Chris Michael [Wed, 4 Mar 2015 16:48:36 +0000 (11:48 -0500)]
ecore-evas-drm: Fix function call to ecore_evas_pointer_xy_get for drm
engine

Summary: This changes the ecore_evas_pointer_xy_get function call (on
drm engine) to use the new ecore_drm_device_pointer_xy_get so we can
center mouse pointer on an output at startup.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-drm: Center mouse pointer on an output when it gets created
Chris Michael [Wed, 4 Mar 2015 16:47:42 +0000 (11:47 -0500)]
ecore-drm: Center mouse pointer on an output when it gets created

Summary: This sets the initial mouse pointer position to be at the
center of an output.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-drm: Add function to return the pointer xy of Ecore_Drm_Device
Chris Michael [Wed, 4 Mar 2015 16:46:22 +0000 (11:46 -0500)]
ecore-drm: Add function to return the pointer xy of Ecore_Drm_Device

Summary: This adds a function (ecore_drm_device_pointer_xy_get) to we
can return the mouse position inside ecore_evas_pointer_xy_get calls.
This is going to be used for centering the mouse when E-Wl starts up.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoecore-drm: Fix formatting
Chris Michael [Wed, 4 Mar 2015 16:20:31 +0000 (11:20 -0500)]
ecore-drm: Fix formatting

Summary: No functional changes, just formatting fixes

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoEio: added cmake file
Marcel Hollerbach [Wed, 4 Mar 2015 15:02:22 +0000 (15:02 +0000)]
Eio: added cmake file

Summary: Added cmake config files for Eio

Test Plan: install it and test it with a app with needs eio

Reviewers: cedric, tasn

Reviewed By: tasn

Subscribers: cedric

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

9 years agoedje: code refactoring.
ChunEon Park [Wed, 4 Mar 2015 13:52:12 +0000 (22:52 +0900)]
edje: code refactoring.

use a constant vairable for maintainance.

9 years agolib/edje_util: fix logically wrong here.
ChunEon Park [Wed, 4 Mar 2015 13:44:19 +0000 (22:44 +0900)]
lib/edje_util: fix logically wrong here.

print err message only if edje has a non-fixed textblock.

This dosen't affect any application ui results,
but err message will point out the problem textblock parts exactly.

9 years agoelua: connect the del event on first callback connect
Daniel Kolesa [Wed, 4 Mar 2015 10:31:48 +0000 (10:31 +0000)]
elua: connect the del event on first callback connect

9 years agoEvas GL common: Disable evas gl preload by default
Jean-Philippe Andre [Wed, 4 Mar 2015 08:11:26 +0000 (17:11 +0900)]
Evas GL common: Disable evas gl preload by default

Unfortunately, this "feature" has many problems and does not really
fix those it was supposed to address:

- Elm Photocam becomes horrible to use (the transition from
  low-res to high-res tiles triggers this miniature path).

- Evas async preload callback is called before the full image
  is ready (ie. the texture is not uploaded yet), when really
  the preload callback should be triggered only once the image
  is 100% ready. (TODO)

- Sometimes the miniature image keeps being used even though the
  main image has been uploaded (eg. with E background). Maybe the
  object image is not redrawn when it should.

- This uses a separate thread for the upload, which is both a good
  and bad idea because we need to do a make current. Also, this does
  not upload the full-res image tile by tile, but only in one pass,
  thus blocking the render loop until finished.

This patch changes the env var from "EVAS_GL_NOPRELOAD" to
"EVAS_GL_PRELOAD" (and only "1" will enable).

Sorry Cedric, we can talk later about how to improve this.

9 years agoEvas GL common: Improve quality of miniature image
Jean-Philippe Andre [Wed, 4 Mar 2015 07:37:20 +0000 (16:37 +0900)]
Evas GL common: Improve quality of miniature image

Sample in the middle of the "macro pixels" and fool around with the
borders (usually used to limit linear sampling artifacts) to improve
image quality on the edges.

Those miniatures are still 16x16 but MAAAYYYYYBE they will look a bit
less awful.

NOTE: The first row still doesn't scale properly (interpolates with
      garbage above y=0).

9 years agoEvas GL common: Force smooth scaling on miniature images
Jean-Philippe Andre [Wed, 4 Mar 2015 06:27:21 +0000 (15:27 +0900)]
Evas GL common: Force smooth scaling on miniature images

When evas GL uploads textures, it will first upload a 16x16 miniature
image, and then wait for some idle time in the main loop to upload the
high-res image.

Some images may not have smooth scaling enabled which results in the
miniature scaled with GL_NEAREST, showing big ugly squares. Let's
force smooth scaling instead, for a blur image rather than a
checkerboard.

9 years agoevas/examples: Resolved warning in evas-3d example
kabeer khan [Wed, 4 Mar 2015 04:01:20 +0000 (13:01 +0900)]
evas/examples: Resolved warning in evas-3d example

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

Reviewers: cedric, Hermet

Reviewed By: Hermet

Subscribers: cedric

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

9 years agoelua: connect del callback by default
Daniel Kolesa [Tue, 3 Mar 2015 16:38:24 +0000 (16:38 +0000)]
elua: connect del callback by default

9 years agoelua: better callback resource handling
Daniel Kolesa [Tue, 3 Mar 2015 16:28:24 +0000 (16:28 +0000)]
elua: better callback resource handling

9 years agoelua: implement callback disconnect + better error handling
Daniel Kolesa [Tue, 3 Mar 2015 16:16:59 +0000 (16:16 +0000)]
elua: implement callback disconnect + better error handling

9 years agoelua: initial better callback system with indirection
Daniel Kolesa [Tue, 3 Mar 2015 16:08:22 +0000 (16:08 +0000)]
elua: initial better callback system with indirection

9 years agoelua: eo_class_addr_get -> eo_obj_addr_get
Daniel Kolesa [Tue, 3 Mar 2015 15:59:16 +0000 (15:59 +0000)]
elua: eo_class_addr_get -> eo_obj_addr_get

9 years agoelua: callback stubs for basic event handling
Daniel Kolesa [Tue, 3 Mar 2015 15:43:02 +0000 (15:43 +0000)]
elua: callback stubs for basic event handling

9 years agoelua: callback updates in eo bindings
Daniel Kolesa [Tue, 3 Mar 2015 15:29:50 +0000 (15:29 +0000)]
elua: callback updates in eo bindings

Priority is now supported. Some initial infra for disconnect
has been added.

9 years agoelua: unregister all classes on eo.lua shutdown
Daniel Kolesa [Tue, 3 Mar 2015 14:05:36 +0000 (14:05 +0000)]
elua: unregister all classes on eo.lua shutdown

9 years agoedje/edje_util: code refactoring.
ChunEon Park [Tue, 3 Mar 2015 13:36:26 +0000 (22:36 +0900)]
edje/edje_util: code refactoring.

change internal variables to more descriptive ones.

no logic change.

9 years agoEvas GL: Fix build error on some systems w/o Wayland
Jean-Philippe Andre [Tue, 3 Mar 2015 11:57:59 +0000 (20:57 +0900)]
Evas GL: Fix build error on some systems w/o Wayland

Thanks Mythri for the report.
wl_display and wl_resource is declared in eglmesaext.h but older
systems may not have that.

9 years agoEvas GL: Kill runtime warnings caused by auto fallback
Jean-Philippe Andre [Tue, 3 Mar 2015 11:08:16 +0000 (20:08 +0900)]
Evas GL: Kill runtime warnings caused by auto fallback

The previous commit modifies the concept of direct rendering
vs. indirect rendering, so some runtime checks (in debug mode
only) will fail.

This commit introduces two new engine functions:
 - gl_get_pixels_pre
 - gl_get_pixels_post

The latter will be used in a later patch for optimization.

9 years agoEvas GL: Automatic fallback to indirect rendering when the scene has
Jean-Philippe Andre [Tue, 3 Mar 2015 07:38:52 +0000 (16:38 +0900)]
Evas GL: Automatic fallback to indirect rendering when the scene has
not changed.

Automatically fallback to indirect rendering on FBO or X11 Pixmap
if the Evas Object Image is not marked as dirty. This should
improve the performance and/or power consumption in those
rare cases where this area of the canvas needs to be redrawn
but the GL content has not changed.

@feature

9 years agoevas-3d: recycling of resources for .ply import/export example
Bogdan Devichev [Tue, 3 Mar 2015 02:44:40 +0000 (11:44 +0900)]
evas-3d: recycling of resources for .ply import/export example

Summary: Smaller resources for .ply example.

Test Plan: run evas-3d-ply.c

Reviewers: cedric, Hermet, raster

Subscribers: cedric

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

9 years ago[Evas: Evas_3D] Fix mesh API.
Dmytro Dadyka [Tue, 3 Mar 2015 02:28:56 +0000 (11:28 +0900)]
[Evas: Evas_3D] Fix mesh API.

Reviewers: cedric

Subscribers: cedric

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

9 years agoevas-3d: recycling of resources for mmap example
Bogdan Devichev [Tue, 3 Mar 2015 02:23:54 +0000 (11:23 +0900)]
evas-3d: recycling of resources for mmap example

Summary: Models for mmap example are more than tan times smaller.

Test Plan: run evas-3d-mmap-set.c

Reviewers: cedric, raster, Hermet

Subscribers: cedric

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

9 years agoevas-3d: deleted some unneccesary resources and moon-space example
Bogdan Devichev [Tue, 3 Mar 2015 01:58:58 +0000 (10:58 +0900)]
evas-3d: deleted some unneccesary resources and moon-space example

Summary: This example is deprecated. We have another (pick) to show functionality of it.

Test Plan: Need merged D2044 to run pick example.

Reviewers: cedric, raster, Hermet

Subscribers: cedric

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

9 years agoecore-wl: Send xdg_surface_set_window_geometry when we update window
Chris Michael [Mon, 2 Mar 2015 17:24:34 +0000 (12:24 -0500)]
ecore-wl: Send xdg_surface_set_window_geometry when we update window
size/position

Summary: We should be implementing xdg_surface_set_window_geometry for
efl apps, so this commit adds the function call to that.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoelua: take __tostring from object metatable on robjects
Daniel Kolesa [Mon, 2 Mar 2015 16:10:32 +0000 (16:10 +0000)]
elua: take __tostring from object metatable on robjects

9 years agoelua: readonly object __dtor support
Daniel Kolesa [Mon, 2 Mar 2015 16:02:23 +0000 (16:02 +0000)]
elua: readonly object __dtor support

9 years agoecore-imf: Add check for environment variable to enable show/hide of input panel
Chris Michael [Mon, 2 Mar 2015 15:46:38 +0000 (10:46 -0500)]
ecore-imf: Add check for environment variable to enable show/hide of input panel

Summary: Allow ecore_imf input panel to be shown/hidden via the master
'enabled' switch or via an environment variable. This is required for
Tizen in order that 3rd party apps can still show input_panel even if
master switch is disabled (as per discussion with Carsten).

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
9 years agoelua: add transparent destructor support to elua objects
Daniel Kolesa [Mon, 2 Mar 2015 13:51:22 +0000 (13:51 +0000)]
elua: add transparent destructor support to elua objects

9 years agoEvas masking: Use mask_smooth to differentiate "shaders"
Jean-Philippe Andre [Mon, 2 Mar 2015 11:38:41 +0000 (20:38 +0900)]
Evas masking: Use mask_smooth to differentiate "shaders"

If mask_smooth changes, it should trigger a flush of
the pipeline (and call glDrawArrays).

This may or may not fix some potential bugs with masking.

9 years agoedje: apply scale prior to rotation
ChunEon Park [Mon, 2 Mar 2015 11:19:49 +0000 (20:19 +0900)]
edje: apply scale prior to rotation

As my experience, this tranform is likely expected by user.

9 years agoedje: Adding the zoom effect of map to edje
jiin.moon [Mon, 2 Mar 2015 11:19:01 +0000 (20:19 +0900)]
edje: Adding the zoom effect of map to edje

Summary:
Support zoom effect of map in edje
@feature

Reviewers: Hermet

Subscribers: cedric

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

9 years agoEvas GL: Use Eina_Strbuf for the extensions list
Jean-Philippe Andre [Mon, 2 Mar 2015 10:51:30 +0000 (19:51 +0900)]
Evas GL: Use Eina_Strbuf for the extensions list

The usage of strcat/strncat was not safe, and even Coverity reported
about it.

Fixes CID 1256197:
CID 1256197 (#1 of 2): Buffer not null terminated (BUFFER_SIZE_WARNING)
1. buffer_size_warning: Calling strncpy with a maximum size argument
of 10240 bytes on destination array _gl_ext_string of size 10240 bytes
might leave the destination string unterminated.

9 years agoEvas GL: Fix value of GL_COVERAGE_SAMPLES_NV
Jean-Philippe Andre [Mon, 2 Mar 2015 10:15:01 +0000 (19:15 +0900)]
Evas GL: Fix value of GL_COVERAGE_SAMPLES_NV

Use the Khronos version from extension EGL_NV_coverage_sample.
In the extension multisample_coverage version 4 (since 3/7/2013),
there is an explicite note about the name conflict.

9 years agoEvas GL: remove evgl_init in gl_get_pixels_set
Dongyeon Kim [Mon, 2 Mar 2015 07:24:50 +0000 (16:24 +0900)]
Evas GL: remove evgl_init in gl_get_pixels_set

Summary:
gl_get_pixels_set is called in evas_object_image_render
even when evas gl is not used.
As gl_get_pixels_set does not actually call evas gl functions,
we can safely remove evgl_init macro here.

Reviewers: raster, cedric, jpeg, Hermet

Subscribers: cedric, mer.kim, wonsik

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

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
9 years agoevas/gl_x11: fix duplicated egl error check
Dongyeon Kim [Mon, 2 Mar 2015 07:21:22 +0000 (16:21 +0900)]
evas/gl_x11: fix duplicated egl error check

Summary:
When egl window surface creation fails, eglGetError() is called twice,
thus removing error state.

Reviewers: cedric, Hermet, jpeg

Reviewed By: jpeg

Subscribers: mer.kim, wonsik, cedric

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

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
9 years agoEvas GL: Fix abnormal extension name.
Minkyoung Kim [Mon, 2 Mar 2015 07:16:32 +0000 (16:16 +0900)]
Evas GL: Fix abnormal extension name.

Summary: Fix abnormal extension name.

Test Plan: local test.

Reviewers: jpeg

Reviewed By: jpeg

Subscribers: wonsik, cedric, spacegrapher

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

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
9 years agoevas/gl: implement dynamic hint set using tbm surface
Dongyeon Kim [Mon, 2 Mar 2015 05:40:12 +0000 (14:40 +0900)]
evas/gl: implement dynamic hint set using tbm surface

Summary:
Currently dynamic hint set is implemented using eglMapImageSEC extension,
which is no longer supported by any drivers (should be deprecated)
This patch implements dynamic hint set using Khronos extension EGL_TIZEN_image_native_surface.
Since tbm surface library is required for this, libtbm.so is queried at context new.

Test Plan: Local tests

Reviewers: raster, Hermet, cedric, jpeg

Subscribers: mer.kim, wonsik, cedric

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

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
jpeg: I also fixed a few minor style issues and two warnings (bad function
names, glsym instead of secsym).