Commit Graph

32508 Commits

Author SHA1 Message Date
Chris Michael 61e529406c ecore-evas-wl: Fix ecore-evas wl common code due to botched rebase
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-11-22 16:19:48 -05:00
Chris Michael 1f43b91b8a ecore-wl2: Port Ecore_Evas engines to use Ecore_Wl2 code
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-11-22 16:19:18 -05:00
Chidambar Zinnoury 2572201276 ecore con: Fix UDP sockets.
The client structure holds a file descriptor, which is not initialized (which means 0) in case of UDP as there is no client-specific socket.

 However, we check for the file descriptor being positive before closing it in the client destructor, which means that we actually end up closing the 0 file descriptor.

 That means that things were going crazy with real strange things happening afterwards…
2015-11-22 16:16:06 -05:00
Jean-Philippe Andre 107388ae0d Evas render: Fix another map clip render issue
This time it's only about performance. We seem to be setting the
changed flag too often, which might trigger unnecessary redraws.

- map flag is set if there is currently a map AND it's not an image
  object (because images can map themselves)
- hmap flag is set if there was a map before

So, map != hmap does not imply a transition between a mapped and
non-mapped state. Add an extra check before marking the clip
as dirty and changed.
2015-11-22 16:16:06 -05:00
Jean-Philippe Andre d6f6bf9914 Ector: Simplify confusing code
The base class data was already stored, no need to figure it out again
2015-11-22 16:16:06 -05:00
Andy Williams ed7bef4a6e [eolian_gen] remove documentation for removed argument.
Used to be mandatory, is now not recognised, let's not confuse people @fix
2015-11-22 16:16:05 -05:00
Daniel Kolesa 2f17f0834f eolian: more relaxed safety in types API
This changes the checks in eolian type API so that you can use the various
type funcs on incompatible types, getting a NULL in return; this allows
simplified generator logic, with error handling done on generator side,
without getting annoying messages from the Eolian lib.
2015-11-22 16:16:05 -05:00
Daniel Kolesa daa43ae25c eolian: turn "undefined type" into its own EOLIAN_TYPE 2015-11-22 16:16:05 -05:00
Cedric BAIL a05a6c733a ector: don't use parent relationship to get access to the surface for freetype backend. 2015-11-22 16:16:05 -05:00
Cedric BAIL 843b312e9c ector: don't use eo parent relationship for accessing the surface. 2015-11-22 16:16:05 -05:00
Cedric BAIL c31f88a720 ector: starting decoralating surface and parent by adding a property to access the surface independently.
NOTE: It would be nice to be able to protect independently the setter from the getter in eolian.
2015-11-22 16:16:05 -05:00
Cedric BAIL 071db5634e ector: improve uploading of GL texture for vector graphism
This rely on a faster code path to upload dynamic texture. Once we get support
for gbm, we should see significant performance improvement in speed, but this
first step is already a 5 times improvement (Ok, we get from really bad, to not
really useful...).
2015-11-22 16:16:05 -05:00
Daniel Kolesa 30f1775043 elua: add eolian_type_aliased_base_get to lua bindings 2015-11-22 16:16:05 -05:00
Youngbok Shin 86a89c6869 Evas object: Add paragraph_direciton APIs
Summary:
It adds evas_object_paragraph_direction_set, get APIs.
The APIs set or get paragraph direction to/from the given object.
It changes BiDi calculations and affect the direction and aligning of text.
It doesn't have any effect to text without Fribidi library.

The default paragraph direction is EVAS_BIDI_DIRECTION_INHERIT.
If dir is EVAS_BIDI_DIRECTION_INHERIT, paragraph direction is changed
according to smart parent object. If there is no smart parent object,
paragraph direction works as EVAS_BIDI_DIRECTION_NEUTRAL.

@feature

Test Plan:
Test cases included to the following files.
- evas_test_textblock.c
- evas_test_text.c
- evas_test_object_smart.c

Run "make check".

Reviewers: woohyun, raster, herdsman, tasn

Subscribers: c, raster, cedric

Differential Revision: https://phab.enlightenment.org/D1690
2015-11-22 16:16:05 -05:00
Jean-Philippe Andre 321d127473 Efl: eo-ify enum Efl.Gfx.Fill 2015-11-22 16:16:05 -05:00
Jee-Yong Um 6b4e862780 edje: revise the explanation for mask_flags attribute
Reviewers: cedric, raster

Reviewed By: raster

Subscribers: raster

Differential Revision: https://phab.enlightenment.org/D3330
2015-11-22 16:16:05 -05:00
Chris Michael 02434285cb ecore-wayland: Reduce overhead for maximize/fullscreen set functions
This patch just gets the state flags directly from the window rather
than calling "get" functions to return the same parameter.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-11-22 16:16:05 -05:00
Chris Michael d909d46981 ecore-wayland: Fix iconified functions for consistency
* sanitize bool params
* enforce window state flag setting
* correctly detect window state using window flag

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-11-22 16:16:05 -05:00
Chris Michael 8d8298a579 ecore-wayland: Add EINA_SAFETY checks to window functions
This adds EINA_SAFETY returns for all public facing ecore_wl_window
functions.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-11-22 16:16:05 -05:00
Daniel Kolesa e03d423da3 eolian: add eolian_type_aliased_base_get
This adds a new API function that is there mainly for convenience (see doc).
Also added/updated tests as necessary.

@feature
2015-11-22 16:16:05 -05:00
Daniel Kolesa d37d44c977 gitignore: ignore core dumps 2015-11-22 16:16:05 -05:00
Tom Hacohen d44dab055c Evas text: Fix last up to pos error return value.
This commit also simplifies the code a (tiny) bit.

This fixes the bug introduced in:
392df9479f
2015-11-22 16:16:04 -05:00
Tom Hacohen 9444de3ab7 Evas text: Remove useless FIXME. 2015-11-22 16:16:04 -05:00
Subodh Kumar 65e3548a31 Evas text: Fix memory leak
Summary:
Fix memory leak

Position is getting returned without
freeing the temporary logical item list.

@fix

Test Plan: NA

Reviewers: tasn, raster

Reviewed By: raster

Subscribers: raster, cedric

Differential Revision: https://phab.enlightenment.org/D3345
2015-11-22 16:16:04 -05:00
Tom Hacohen ca1ea20b0b Eet: remove dead variable assignment.
I guess this is what 2a01c4517b was meant to be doing.
2015-11-22 16:16:04 -05:00
Stefan Schmidt 3e22ae2558 Revert "eet: removing useless assignment variables."
This reverts commit 2a01c4517b.

Declaring these variable void breaks the build with disabled crypto.

Fixes T2855
2015-11-22 16:16:04 -05:00
Jean-Philippe Andre 6ca00b70de Edje data: Remove redondant array in Evas 3D edd
Since I just broke EDJ ABI, as well clean it up. The same array
was saved twice under two different names.
2015-11-22 16:16:04 -05:00
Jean-Philippe Andre feb1351939 Edje: Fix Evas 3D eet data descriptors
Memleak found with valgrind points to this line, where clearly the
edd field name is incorrect. It looks like this feature has no example,
no test case either.

This breaks EDJ ABI!
I do this because I believe there are zero users of this API
at this point, as Evas 3D is still not ready yet.

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

@fix
2015-11-22 16:16:04 -05:00
Jean-Philippe Andre 00807969bc Edje data: Fix memory leak in nested data descriptors 2015-11-22 16:16:04 -05:00
sunghyun kim 699eee9422 Evas GL: XFreeColormap when window free
When gl window is created, XCreateColormap is called in eng_best_visual_get
but when gl window is freed, Colormap is not freed.

See original patch: D3342.
2015-11-22 16:16:04 -05:00
Mike Blumenkrantz ea2f71c0c2 ecore-wayland: rewrite maximize/fullscreen set functions for consistency
* use safety macros for win struct param (should be the case for all fns here)
* sanitize bool params
* enforce window state flag setting
* correctly detect window state using window flag instead of type

@fix

ref T2841
2015-11-22 16:16:04 -05:00
Mike Blumenkrantz e530cc37a6 ecore-wayland: return only the relevant state value for maximize/fullscreen
having window types for fullscreen/maximize is not defined by spec and leads
to state mismatches when toggling from api vs receiving events from the compositor

@fix
2015-11-22 16:16:04 -05:00
Mike Blumenkrantz 85a576016d ecore-evas wayland: enforce frame/state change triggering before move/resize
if a state change occurs on the ee, related callbacks must be run prior to
performing any resizes in order to ensure that the correct csd sizes are
calculated

@fix

ref T2841
2015-11-22 16:16:01 -05:00
Chris Michael 60fa3c182a evas-gl_drm: Remove set but unused variable
Variable 'osurface' is not actually being used inside the code here,
so remove it.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-11-22 16:15:28 -05:00
Chris Michael 6eacfcd5c3 ecore-wayland: Make ecore_wl_window_maximized_get return proper values
This brings ecore_wl_window_maximized_get more inline with
ecore_wl_fullscreen_get function in that it will now check either the
window maximized state, or the window type, to determine if a window
is actually maximized

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-11-22 16:15:28 -05:00
Chris Michael 97b51f61eb ecore-evas-drm: Send fake mouse_move event after registering
This fixes an issue where ecore_drm was sending an initial mouse_move
event too early in the startup process. Instead, we will send the
event from Ecore_Evas after it has been registered with Ecore_Input.
This is done here to address and Fix T2854.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-11-22 16:15:28 -05:00
Chris Michael b46455ba96 ecore-drm: Don't send mouse_move event too early
We cannot be sending an ecore_event for mouse move here as it is too
early in the startup process for that too happen. Raising the event
here never gets caught because the ecore_evas has not yet registered
for ecore_input listening.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-11-22 16:15:28 -05:00
Chris Michael c0708792ce ecore-evas-wl: Fix issue of improper window geometry
This fixes an issue where maximizing a window would set improper xdg
surface window geometry. We receive window configure sizes based on
xdg surface window geometry, so we need to subtract framespace there
or else window size grows when maximizing/unmaximizing multiple times.
This also adjusts the call to xdg_surface_set_window_geometry to
account for framespace (Fixes T2842).

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-11-22 16:15:23 -05:00
Chris Michael d764ee34a5 ector: Fix incorrect expression
Coverity reports that 'obj' is written twice with the same value
here., so fix this with a proper call to eo_do_super_ret

NB: Fixes Coverity CID1339786

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-11-22 16:14:45 -05:00
Chris Michael 623d568e18 evas-software-x11: Fix resource leak
If we end up leaving evas_xlib_image_dri_native_set due to a failure
to allocate memory, we should free the previously allocated
Evas_DRI_Image so that we don't leak

NB: Fixes Coverity CID1339782

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-11-22 16:14:45 -05:00
Daniel Hirt 878cdb0e32 Evas textblock: fix bad deletion in test case
No need to delete this object. It is already being deleted when the
textblock is freed at the end of the test.
2015-11-22 16:14:45 -05:00
Daniel Hirt 82541c9d05 Evas language: add full locale language getter
evas_common_language_from_locale_get truncates the country letters in
the language. We don't always want that (one example is dictionaries).
2015-11-22 16:14:45 -05:00
Chris Michael 8b6c6cfb07 evas-software-x11: Fix returning NULL pointer
evas_xlib_image_dri_native_set should be returning a pointer to an
RGBA_Image on success, or NULL on failure. Returning EINA_FALSE here
leads to an expression which evaluates to zero being treated as a null
pointer constant

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-11-22 16:14:45 -05:00
Chris Michael c4fda4ebc1 evas-software-x11: Fix formatting
NB: No functional changes

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-11-22 16:14:45 -05:00
Chris Michael a092f0ae9e evas-gl: Remove extra parentheses
clang warns of equality comparison with extraneous parentheses in
these cases. Remove the extra parens as they are not needed anyway

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-11-22 16:14:45 -05:00
Chris Michael 5552e09427 ector: Add missing EINA_UNUSED for unused function parameter
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-11-22 16:14:45 -05:00
Tom Hacohen 658bce248a Evas language: Fix language from locale function.
This function was trying to infer from the LANG env var, though it should
have just queried the locale all along, as the language we want is the
system's text language, and not necessarily the LANG variable's value.

@fix.
2015-11-22 16:14:45 -05:00
Subodh Kumar e91e1331d3 Evas text: Remove fixme marker
Summary:
Remove fixme marker

Algorithm used is good enough to sort
very few number of items, usually 2 to 6
items.

Test Plan: NA

Reviewers: herdsman, cedric, tasn

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3312
2015-11-22 16:14:45 -05:00
Subodh Kumar 058a7dd5c4 Evas text: Remove tabs for readability
Summary: Remove tabs

Test Plan: NA

Reviewers: tasn

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3337
2015-11-22 16:14:45 -05:00
Cedric BAIL 7edddd9a95 ector: disable NEON build.
There is more problem with this code, better disable it for now.

@fix

T2851
2015-11-22 16:14:45 -05:00