platform/upstream/efl.git
7 years ago[EvasGL] wrap glGetString. support up to GLES 3.1
DaeKwang Ryu [Tue, 20 Dec 2016 11:04:31 +0000 (20:04 +0900)]
[EvasGL] wrap glGetString. support up to GLES 3.1

EvasGL supports up to GLES 3.1

Change-Id: I518aa0373bfa00427c447e5db12bc02743d4c759

7 years ago[EvasGL] add some GLES extensions.
DaeKwang Ryu [Tue, 20 Dec 2016 10:56:27 +0000 (19:56 +0900)]
[EvasGL] add some GLES extensions.

verified with CTS on TM2.

Change-Id: I605d2b52b1708cb5423e3129eeadacd51d95d942

7 years ago[EvasGL] update evas_gl.h with latest GLES3 header
DaeKwang Ryu [Tue, 20 Dec 2016 10:53:54 +0000 (19:53 +0900)]
[EvasGL] update evas_gl.h with latest GLES3 header

Khronos GLES 3 header was updated.
GLhalf is added.

Change-Id: I03c408f52b6e30be4fe577ac4a13054cfa458a72

7 years ago[EvasGL] add GLES 3.1 macros which were missed
DaeKwang Ryu [Tue, 20 Dec 2016 10:52:04 +0000 (19:52 +0900)]
[EvasGL] add GLES 3.1 macros which were missed

GLES 3.1 macros were missed.

Change-Id: I9eafa54f3aee02e0d51ba3f86f30bd34a76a0536

7 years agoedje: convert data structure for text/size class to public
Jee-Yong Um [Tue, 20 Dec 2016 09:52:04 +0000 (18:52 +0900)]
edje: convert data structure for text/size class to public

Signed-Off-By: Jee-Yong Um <jc9.um@samsung.com>
Change-Id: I5291d2e25efc286932e942b5542feb9ffce14f85

7 years agoevas render2 region - handle if src region is empty correctly on add
Carsten Haitzler (Rasterman) [Mon, 11 Jul 2016 13:16:06 +0000 (22:16 +0900)]
evas render2 region - handle if src region is empty correctly on add

fix coverity CID 1313542

Change-Id: I6726d1695e905d74457fab1b59399ebda8245bf6
Signed-off-by: Mykyta Biliavskyi <m.biliavskyi@samsung.com>
7 years agoEvas render2: Fix always false comparisons.
Tom Hacohen [Tue, 8 Dec 2015 11:35:25 +0000 (11:35 +0000)]
Evas render2: Fix always false comparisons.

This looks like a classic copy and paste error. It didn't make any sense
before, and it seems like no one was going to take a look at it.
This looks correct. If this breaks something (is render2 even used),
someone should remove those lines. I wasn't entirely sure if I should
just remove them, or correct them, as some of the code looked redundant
anyway.

Change-Id: I805473d988bd2b76b0f77e2f6247fb39a0eae879
Signed-off-by: Mykyta Biliavskyi <m.biliavskyi@samsung.com>
7 years ago[Extn_GL] add release request in update callback
sunghyun kim [Tue, 20 Dec 2016 03:57:36 +0000 (12:57 +0900)]
[Extn_GL] add release request in update callback

Change-Id: Ic18a9c588dbd6dac0826a324c4f8146335b90c76

7 years ago[EvasGL] Fix build error for PreRotation
Wonsik, Jung [Tue, 20 Dec 2016 05:18:59 +0000 (14:18 +0900)]
[EvasGL] Fix build error for PreRotation

Fix build error for PreRotation

Change-Id: I41d848a730621ec2e67d33185b3d4cf6a56ba993

7 years ago[EvasGL] Add Pre-Rotation enum type
huiyu.eun [Tue, 20 Dec 2016 02:40:11 +0000 (11:40 +0900)]
[EvasGL] Add Pre-Rotation enum type

[Problem] EFL Integration FAILED in VD.
[Solve] Add Pre-Rotation enum types.

Change-Id: If0feb8a55b3f84d5edd6c465db7ec8393cefe7df
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
7 years agoedje_entry: Show item object when it is inside viewport.
SubodhKumar [Mon, 19 Dec 2016 10:14:30 +0000 (15:44 +0530)]
edje_entry: Show item object when it is inside viewport.

@tizen_fix

Change-Id: I5f55b74204ac5fbeb1b5b0b243103ffe19406e3a

7 years agoedje: handle case when strdup would be NULL.
Cedric BAIL [Fri, 16 Dec 2016 23:15:17 +0000 (15:15 -0800)]
edje: handle case when strdup would be NULL.

alternate solution to D4488. Would be better to have a buffer and recycle it.

Change-Id: I599239762d49cd0f459610891f60f4eb3ba2cbe6

7 years agoedje_pick: copy images from image sets
Vyacheslav Reutskiy [Fri, 16 Dec 2016 13:30:20 +0000 (15:30 +0200)]
edje_pick: copy images from image sets

@fix

Change-Id: I903b52e3153f2504e16831aecc857b965140d6fc
Signed-off-by: Vyacheslav Reutskiy <v.reutskiy@samsung.com>
7 years agoedje_pick: use separate Eina_List vars for different EINA_LIST_FOREACH
Vyacheslav Reutskiy [Fri, 16 Dec 2016 13:27:53 +0000 (15:27 +0200)]
edje_pick: use separate Eina_List vars for different EINA_LIST_FOREACH

Change-Id: Ia897aa7a282cfd922bdd3893e4a31e8f175a3825
Signed-off-by: Vyacheslav Reutskiy <v.reutskiy@samsung.com>
7 years ago[EvasGL] add to check opengles 1.1
Wonsik, Jung [Fri, 16 Dec 2016 11:23:57 +0000 (20:23 +0900)]
[EvasGL] add to check opengles 1.1

When evas gl runs with Opengles 1.1,
depth and stencil buffer should be created, not depth_stencil buffer.

Change-Id: I5f8ac7c9cac68c1d044cf72e1028154e1be0cd77

7 years agoedje_calc: give +1 width from calculated width of formatted_get
Youngbok Shin [Fri, 16 Dec 2016 04:12:59 +0000 (13:12 +0900)]
edje_calc: give +1 width from calculated width of formatted_get

When Edje resizes Textblock object with the width from formatted_get(),
Textblock object will be shrunken on its width and expanded on its height.
It can cause text cutoff issues in multiline Textblock.

@tizen_fix

Change-Id: Id45e9f43c6e1bea488f9b39b1e28377f660d72d9

7 years agoevas: Try to fix masks of masks inside proxies
Jean-Philippe Andre [Thu, 15 Dec 2016 03:09:44 +0000 (12:09 +0900)]
evas: Try to fix masks of masks inside proxies

Yeah it's another fun bit of evas_render.

Issue #1:
Here's the situation:

1. A container (genlist) has a mask, M0.
2. An item I0 inside this container uses a proxy P0 as render object
   rather than the item directly (eg. for zooming in/out).
3. An element E0 inside this item has another mask, M1.

Theory:
1. The proxy surface for P0 is rendered, and M1 is applied to
   the element E0.
2. The proxy P0 is rendered on the canvas, with M0 applied.

Practice:
1. The element E0 is prepared for rendering, this triggers
   a mask subrender for M1.
2. M1 is rendered with M0 as a prev mask, then kept in cache and
   not redrawn (no geometry change, etc...)
3. When P0's surface is rendered, M1's surface is the result of M1+M0.
4. When P0 is drawn on screen, we can see the effect of M1+M0 as
   P0's geometry might be different from the item's I0.

Solution:
Discard prev masks and force a mask redraw when we're inside a
proxy. Ideally we should detect if the prev mask belongs to the
insides of the proxy or not.

Issue #2:
Somehow evas_render_mapped() messed up the rendering of a simple
mask in some rare situation. As a workaround, we can directly call
the object render function (masks are image objects anyway). This
issue could cause the disappearance of some text in a genlist.

Extras:
Remove use_mapped_ctx flag. Always assume it as true, always pass
a proper context to mapped_render. This simplifies the logic a bit.
Also avoid context free/new when we can just change two values.

This is a backport of (first tested on this tizen branch):
3e0f3822f144b254c9d541a32c0d789036453da4
1c21cdfdbb782d389818871d1697ece1098e85c2
2bed30b3984b4e73d64b99fe05d6574001173497
489815457b9e7baeadb0d8050dc25434c77d0fe9

Change-Id: I9ee857f0625a43d281eb945c2f354dd63cc0b9cd

7 years agoeldbus: quick fix to solve GEM usage issue
Shinwoo Kim [Fri, 16 Dec 2016 01:10:33 +0000 (10:10 +0900)]
eldbus: quick fix to solve GEM usage issue

Change-Id: Ib4e62b0a5d384f187fab04c85282f46cb620570b

7 years ago[ecore_evas_wayland_shm] bug fixed - wayland_tbm_client_create_surface_queue /
Joogab Yun [Fri, 16 Dec 2016 02:05:31 +0000 (11:05 +0900)]
[ecore_evas_wayland_shm] bug fixed - wayland_tbm_client_create_surface_queue /
destroy_queue

Change-Id: I26ea5b3e7affe6ec3a899b68ce5516f782723dfc

7 years ago[EvasGL] Fix to OpenGLES 1.1 rendering issue.
Wonsik, Jung [Thu, 15 Dec 2016 12:10:22 +0000 (21:10 +0900)]
[EvasGL] Fix to OpenGLES 1.1 rendering issue.

If the DDK driver supports depth_stencil buffer,
evas gl can not use GL_UNSIGNED_INT_24_8_OES.
Because OES_depth_texture is supported since OpenGLES 2.0.
So, if application want to use OpenGLES 1.1,
Evas GL should use depth and stencil buffer

Change-Id: I5fe7c01ee5a37fd0f670192e187e5b233f8aa5d6

7 years agoFix generate ecore key events on windows.
Mykyta Biliavskyi [Wed, 14 Dec 2016 13:40:49 +0000 (15:40 +0200)]
Fix generate ecore key events on windows.

If Ctrl+number combination pressed/unpressed function
_ecore_win32_event_keystroke_get return NULL. It happens because
ToUnicode WinAPI func fails to prepare unicode string for given scancode
and the keyboard state.
This commit add exception for  the case with digits keys. In case if
there no translate
string, but the digit key processed - will be created a normal event as
usual.

Change-Id: Ia99feffdbc2263cc7922b9e79d836704209cfbd8
Signed-off-by: Mykyta Biliavskyi <m.biliavskyi@samsung.com>
7 years agoedje_pick: export aliases and entire dependency list
Vitalii Vorobiov [Fri, 9 Dec 2016 09:52:33 +0000 (11:52 +0200)]
edje_pick: export aliases and entire dependency list

A lot of cases were missed, cases that are making resulting edj file
useless.
> Now export all aliases
> If group "1" source of group "2" which is source of group "3", it will
> be imported as well!

@fix

Change-Id: I37015a463f8bf787d8e056e9febdeea51a8e8489
Signed-off-by: Vitalii Vorobiov <vi.vorobiov@samsung.com>
7 years agoedje_pick: use correct id's for exported groups
Vitalii Vorobiov [Fri, 9 Dec 2016 09:50:43 +0000 (11:50 +0200)]
edje_pick: use correct id's for exported groups

@fix

Change-Id: Id74583aae022ea909e52a4a188ec8dad19cd77c6
Signed-off-by: Vitalii Vorobiov <vi.vorobiov@samsung.com>
7 years agoedje_pick: don't copy dependencies group if they in the import list
Vyacheslav Reutskiy [Tue, 9 Aug 2016 07:17:31 +0000 (10:17 +0300)]
edje_pick: don't copy dependencies group if they in the import list

If a dependence group in the import list - don't copy it as dependence,
it make group duplicate and make a recurcive load.

@fix
Fixes T4313

Change-Id: I85e4357b9859ee4223d7d57e1446daf73c1d3da5
Signed-off-by: Vitalii Vorobiov <vi.vorobiov@samsung.com>
7 years ago[ecore_evas_wayland_shm] change to static wayland_tbm_client, tbm_queue
Joogab Yun [Thu, 15 Dec 2016 04:22:23 +0000 (13:22 +0900)]
[ecore_evas_wayland_shm] change to static wayland_tbm_client, tbm_queue

Change-Id: I6486b41d0b4e41814deab1e64274e275291b9854

7 years agoecore_audio: fix potentional null point deref.
Wonki Kim [Tue, 13 Dec 2016 06:39:05 +0000 (15:39 +0900)]
ecore_audio: fix potentional null point deref.

It couldn't avoid invalid memory access, if module is not loaded.
check module pointer is not null to fix.

Change-Id: Ib1e3aef98e7d294311e18e9807b673386c2ae46e
Signed-off-by: Wonki Kim <wonki_.kim@samsung.com>
7 years ago[evas_gl] fixed issue about src, dst value when using tbm_surface
Joogab Yun [Wed, 14 Dec 2016 04:05:14 +0000 (13:05 +0900)]
[evas_gl] fixed issue about src, dst value when using tbm_surface
          and need mm_evas_render patch also

Change-Id: Ie8fe1f9d33305a9114b44854614e4e14489a4ed4

7 years ago[ecore_evas_wayland_shm] wayland_tbm_client_create_surface_queue / destroy_queue
Joogab Yun [Tue, 13 Dec 2016 09:40:17 +0000 (18:40 +0900)]
[ecore_evas_wayland_shm] wayland_tbm_client_create_surface_queue / destroy_queue

Change-Id: I000a063802746c17eed826197c4deedb71b88bfa

7 years agoecore_wayland: added new window type DIALOG,DOCK and SPLASH
MinJeong Kim [Tue, 13 Dec 2016 03:32:54 +0000 (12:32 +0900)]
ecore_wayland: added new window type DIALOG,DOCK and SPLASH

Change-Id: Ie51e5d668121a43af68abb85e5f7f167a98a84e4
Signed-off-by: MinJeong Kim <minjjj.kim@samsung.com>
7 years agoecore-animator allow for animator to skip queued animator ticks
Carsten Haitzler (Rasterman) [Fri, 28 Oct 2016 04:58:56 +0000 (13:58 +0900)]
ecore-animator allow for animator to skip queued animator ticks

set ECORE_ANIMATOR_SKIP to skip queued animtor ticks if multiple are
in the pipeline. optional and not on by default. i would think its not
a good idea to skip these animator ticks and skipping/deferring is a
job higher up.

@feature

Signed-off-by: Hosang Kim <hosang12.kim@samsung.com>
Change-Id: Ib942ff1de9a908a16cc7c00a53690f67c225ec2b

7 years agoEdje: remove a unreachable code from edje_text.c
Youngbok Shin [Thu, 8 Dec 2016 04:31:04 +0000 (13:31 +0900)]
Edje: remove a unreachable code from edje_text.c

Summary:
If "text" is NULL, it is set as empty string in the above code.
So, the removed line is unreachable.

Test Plan: N/A

Reviewers: raster, cedric, herdsman, woohyun, jpeg, Hermet

Reviewed By: Hermet

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

Change-Id: I4cbea3cf0cbf4a7800040fba11697b02baf5fd7b

7 years agolibunibreak: Fix for Hangul word wrap
Youngbok Shin [Mon, 12 Dec 2016 05:25:14 +0000 (14:25 +0900)]
libunibreak: Fix for Hangul word wrap

Word wrap is not supported for Hangul characters.
To make it work for Hangul, use english alphabet tables instead of Hangul.

@tizen_fix

Change-Id: I73129da2a462e136342ff11663b95d1df922d38e

7 years agoevas_events: fix searching logic to find objects can receive events.
Hosang Kim [Sat, 10 Dec 2016 12:01:33 +0000 (21:01 +0900)]
evas_events: fix searching logic to find objects can receive events.

1. _evas_event_object_list_raw_in_get() API is designed to search objects
list from last. But sometimes it is not working.
2. If proxy source is set, event_passes_through is not checked.
event_passes_through is respected regardless of proxy source.

refer to:
https://phab.enlightenment.org/rEFL30d98fa1bd3be621897d6240f26801b2a53c427d
Change-Id: I1dffc30e3920441a8065d61437abaa7013da61d0

7 years ago[EvasGL] Add PreRotation
Wonsik, Jung [Wed, 30 Nov 2016 07:51:10 +0000 (16:51 +0900)]
[EvasGL] Add PreRotation

Add PreRotation feature for Evas GL's direct rendering

Change-Id: I72e840a6c6095fa6d8c456bcedf3feeb281cb993

7 years agoedje: fix build fail
Jee-Yong Um [Mon, 12 Dec 2016 03:57:35 +0000 (12:57 +0900)]
edje: fix build fail

Signed-Off-By: Jee-Yong Um <jc9.um@samsung.com>
Change-Id: Id32afda850b4bbaf48f8078f00fb7ea9cf400c89

7 years agoefl_canvas_proxy: fix the parameter of EINA_COW_WRITE
Hosang Kim [Fri, 9 Dec 2016 08:07:59 +0000 (17:07 +0900)]
efl_canvas_proxy: fix the parameter of EINA_COW_WRITE

EINA_COW_WRITE_BEGIN and EINA_COW_WRITE_END's parameters must be same.
But 'Read' paramter is different. So wrong variable's value is changed.
@fix

Change-Id: I3358fdcb4116fca4b1ddd6fc392cf7e75386eae3

7 years agoeo_gdb.py: now it supported eo_resolve to get _Eo_Class pointer
WooHyun Jung [Mon, 12 Dec 2016 01:35:08 +0000 (10:35 +0900)]
eo_gdb.py: now it supported eo_resolve to get _Eo_Class pointer

Change-Id: I468c8f24b7baae613971c75cbc633e87564f6d12

7 years agoedje: get color from applied color class
Jee-Yong Um [Thu, 24 Nov 2016 09:54:42 +0000 (18:54 +0900)]
edje: get color from applied color class

Signed-Off-By: Jee-Yong Um <jc9.um@samsung.com>
Change-Id: I310ffc42f2a1b02314a29adcfffd1955c63cc14d

7 years agoecore-buffer: support NV12 format
Sangjin Lee [Sat, 10 Dec 2016 07:24:16 +0000 (16:24 +0900)]
ecore-buffer: support NV12 format

To support the NV12 format ecore_buffer, change ecore_buffer backend interface
and change destory protocol

Change-Id: I7125a4b689b914fe06f3e7e3913f49ceef3910c0

7 years agoevas render: Gurantee the cache validation of source objects.
Hermet Park [Fri, 9 Dec 2016 08:02:59 +0000 (17:02 +0900)]
evas render: Gurantee the cache validation of source objects.

This workaround code forcely make few object's state is up to date.
In a rare case, some source objects won't be updated properly.
It seems a rendering context bug or a side effect by a potential context corruption of the smart objects.

Change-Id: If114374adc267476964871bcaf5bebc8fa5e8af1

7 years ago[evas wayland_shm] Use absolute library path
Joogab Yun [Fri, 9 Dec 2016 05:09:24 +0000 (14:09 +0900)]
[evas wayland_shm] Use absolute library path

Change-Id: I4437618487fcfb1a2cc77ade555402b87e04880a

7 years agoeldbus: change to idle_enterer from idler
Jean-Philippe Andre [Tue, 6 Dec 2016 02:27:37 +0000 (11:27 +0900)]
eldbus: change to idle_enterer from idler

Summary:
This patch set changes eldbus to use idle_enterer from idler.
If an application does not give idle time, then the eldbus cannot have chance to work.

Reviewers: raster, cedric

Subscribers: jpeg

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

Change-Id: I83719dd9b97002beb998bc4db2d789254c3a2c74

7 years ago[evas_gl] support yuv and nv format
Joogab Yun [Thu, 1 Dec 2016 04:56:15 +0000 (13:56 +0900)]
[evas_gl]  support yuv and nv format

Change-Id: I320d9b449dafd06ec6c0f46fae9bfbbe4167580d

7 years agoevas textblock: fixed ascent/descent calculation
Minwoo, Lee [Thu, 8 Dec 2016 07:44:43 +0000 (16:44 +0900)]
evas textblock: fixed ascent/descent calculation

This patch is from upstream (c196422e634fc7dda6d0f168278305073007985f)

Summary:
    If textblock has linegap and multi language, ascent/descent calculation is
    incorrect.
    In _layout_format_ascent_descent_adjust(), descent is accumulated.
    (for example, for a line gap of 50, the first line gap is more than 100)

Test Plan:
    Textblock has "linegap=50" and multi language (ex.
            "This is a test suite for line gap -
            ഈ ലൈൻ വിടവ് ടെസ്റ്റ് ടെസ്റ്റ് ടെസ്റ്റ് ടെസ്റ്റ് ഒരു പരീക്ഷണ വെയര് ")
    Added test suite in evas_test_textblock.c file.

Reviewers: tasn

Subscribers: subodh6129, cedric

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

Signed-off-by: Minwoo, Lee <minwoo47.lee@samsung.com>
Change-Id: Ice4b409f3afe594067bc40bbf93cfd8fff43e1dc

7 years agoecore_wayland: modify receiving logic to get once for stabilizing
Taehyub Kim [Thu, 8 Dec 2016 08:08:59 +0000 (17:08 +0900)]
ecore_wayland: modify receiving logic to get once for stabilizing

Change-Id: Ieb3545f557e257f467279dedd1b22f24be61232d

7 years agoector/gl: rafactor gl_surface code to ecto_gl_engine
subhransu mohanty [Thu, 8 Dec 2016 06:10:01 +0000 (15:10 +0900)]
ector/gl: rafactor gl_surface code to ecto_gl_engine

Change-Id: I18c5b3977997e43e3e0d900773b4312429c78ee1

7 years agoector: move gradient table gen and draw utility function to ector_util.
subhransu mohanty [Thu, 8 Dec 2016 06:06:09 +0000 (15:06 +0900)]
ector: move gradient table gen and draw utility function to ector_util.

Change-Id: I50765dfe1bd58bde17c746c7b8e6d995e5660576

7 years agoefl - threads and signals - make efl work on "insane" os's with signals
Jee-Yong Um [Wed, 7 Dec 2016 04:38:51 +0000 (13:38 +0900)]
efl - threads and signals - make efl work on "insane" os's with signals

==========================================================================
commit aeeda1f77d1b21b15e916852baac06bb530618e2
Author: Carsten Haitzler (Rasterman) <raster@rasterman.com>
Date:   Mon Jul 4 23:47:25 2016 +0900

    efl - threads and signals - make efl work on "insane" os's with signals

    so. on linux signals are delivered to the main process thread/loop.
    thats' where signal handlers are set up and always run. this is sane.
    it's predicatble. but of course this is not the same in bsd land.
    there "just send the signal to any old thread and call the signal
    handler there" seems to tbe the order of the day. this explains why
    wer are losing sigchld signals in edje_cc - it's heavily threaded and
    bsd is just randombly picking a thread to call it on.

    this fixes that. in theory. i hope. i can't test, but putting it in to
    share

    @fix
==========================================================================

Signed-Off-By: Jee-Yong Um <jc9.um@samsung.com>
Change-Id: I02fd04ff175a81fda89a8a36ecf6007f3899d40a

7 years ago[ecore_evas_wayland_shm] wayland_tbm_client_init / deinit
Joogab Yun [Wed, 7 Dec 2016 10:53:17 +0000 (19:53 +0900)]
[ecore_evas_wayland_shm] wayland_tbm_client_init / deinit

Change-Id: I91cabd1d6334fb230e1d3af443d3fbccd082a075

7 years agoRevert "Evas: include efl_vg_container.eo.legacy.h to avoid implicit declaration...
Hermet Park [Wed, 7 Dec 2016 12:04:21 +0000 (21:04 +0900)]
Revert "Evas: include efl_vg_container.eo.legacy.h to avoid implicit declaration for evas_vg_container_child* @fix"

This reverts commit 06bfd6a82f0d745c9f86df236af11e9a71e4a098.

That broke compilation.

Change-Id: I0b3e7766c2c0e2ee290c81c1ad8713ea00a06f02

7 years agoefreet_desktop: fix potential error in efreet_desktop_cache_create
Sungtaek Hong [Wed, 7 Dec 2016 09:53:26 +0000 (18:53 +0900)]
efreet_desktop: fix potential error in efreet_desktop_cache_create

 - old_file_ids is freed but not set as NULL.
   If it goes to error code, old_file_ids will be freed again.

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

Change-Id: I22b24dc1480e8dce17e2588febfc2fd885970475
Signed-off-by: Sungtaek Hong <sth253.hong@samsung.com>
7 years agoEvas: include efl_vg_container.eo.legacy.h to avoid implicit declaration for evas_vg_...
Artem Popov [Wed, 7 Dec 2016 05:21:12 +0000 (14:21 +0900)]
Evas: include efl_vg_container.eo.legacy.h to avoid implicit declaration for evas_vg_container_child* @fix

Summary: Due to implicit declaration, evas_vg_container_child_get casts to int and on 64-bit can return wrong pointer

Reviewers: cedric, NikaWhite, myoungwoon, jpeg, an.kroitor, Hermet

Reviewed By: Hermet

Subscribers: t.naumenko

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

Change-Id: I52332d1c88a7d689e574ea9018136cac8b50e015
Signed-off-by: Artem Popov <artem.popov@samsung.com>
7 years agoevas/engine: keep the default surface size updated in gl.
subhransu mohanty [Wed, 7 Dec 2016 07:21:30 +0000 (16:21 +0900)]
evas/engine: keep the default surface size updated in gl.

Change-Id: I92d6a4dfb02cf942473723858e6112da2ca02476

7 years agoedje: force update anchors when a API is called to get list of anchors
Youngbok Shin [Wed, 7 Dec 2016 05:16:28 +0000 (14:16 +0900)]
edje: force update anchors when a API is called to get list of anchors

When anchors were not in the view port, they were not created,
and didn't have any geometry information. Because of this feature,
edje_object_part_text_anchor_geometry_get() gave unexpected result.
i.e. empty list.

Now, some APIs will force the updating of anchors to get
the correct information.

@tizen_fix

Change-Id: I2238192191046b31dd8dc18f5ec7c15e75fb7d6e

7 years agoresolve possible memory leak
Jongmin Lee [Tue, 6 Dec 2016 00:46:58 +0000 (09:46 +0900)]
resolve possible memory leak

Change-Id: I5b47ab959027969dcf5c0a831f2dcef9d546b201

7 years agoemile_image: fix possible segmentation fault in AGRY88
Sungtaek Hong [Tue, 6 Dec 2016 13:28:35 +0000 (22:28 +0900)]
emile_image: fix possible segmentation fault in AGRY88

 - ptrag is set NULL and is allocated only when prop is rotated.
   but *ptrag = 0xFF00 | ptr[0]; without checking rotation.

Change-Id: Iba00edc526588c074ad9629a808df03c512642c7
Signed-off-by: Sungtaek Hong <sth253.hong@samsung.com>
7 years agoedje_entry: Support multibyte on result of retrieve_surrounding_cb
Wonki Kim [Tue, 6 Dec 2016 02:24:28 +0000 (11:24 +0900)]
edje_entry: Support multibyte on result of retrieve_surrounding_cb

Summary:
to make a result of retrieve_surrounding_cb secure,
callback result string will be replaced by star('*') when entry is password mode.

however, if plain_text was multibyte,
too many stars are displayed than it's actual length.

Reviewers: jihoon, id213sin, woohyun, herdsman

Subscribers: herdsman, cedric, jpeg

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

Change-Id: Id321bf7c7db987a3795c4f33d80554f36e6bb06b
Signed-off-by: Wonki Kim <wonki_.kim@samsung.com>
7 years agoeolian: Fix to unregister eina log domain if it was registered.
Jaehyun Cho [Tue, 6 Dec 2016 09:51:14 +0000 (18:51 +0900)]
eolian: Fix to unregister eina log domain if it was registered.

Change-Id: Ida96460870702ba3c78124e49a5f61cfdaa3bbd9

7 years agoector gl: return the function as soon as possible.
Hermet Park [Tue, 6 Dec 2016 10:31:41 +0000 (19:31 +0900)]
ector gl: return the function as soon as possible.

This resolves a memory leak(new_pts) in an exceptional case.

Change-Id: Ib3884330ee325364cb2acc73ca1a86585781d934

7 years agocherry-pick from upstream
Hermet Park [Tue, 6 Dec 2016 10:20:08 +0000 (19:20 +0900)]
cherry-pick from upstream

http://git.enlightenment.org/core/efl.git/commit/?id=8be045612bc4901ba5322ae589796b23867fc4a4

commit 8be045612bc4901ba5322ae589796b23867fc4a4
Author: Hermet Park <hermet@hermet.pe.kr>
Date:   Tue Dec 6 19:18:09 2016 +0900

    static_libs triangulator: prevent null pointer(ptr) access.

Change-Id: Ia004f1e5c1518590d77b44f7198464ce0aa841fb

7 years agocpphash: Fix not to access freed pointer.
Jaehyun Cho [Tue, 6 Dec 2016 05:42:37 +0000 (14:42 +0900)]
cpphash: Fix not to access freed pointer.

Change-Id: I32220740355e9397f5a880a7d0de884c18de066e

7 years ago[Extn_GL] avoid error if ecore_evas_wayland_egl_new is failed
sunghyun kim [Tue, 29 Nov 2016 07:50:33 +0000 (16:50 +0900)]
[Extn_GL] avoid error if ecore_evas_wayland_egl_new is failed

Change-Id: Icbd2ce18f868af2a3c2540fff97f3e249e4581bd

7 years ago[Extn_GL] add alpha set in extn gl backend
sunghyun kim [Thu, 1 Dec 2016 08:44:36 +0000 (17:44 +0900)]
[Extn_GL] add alpha set in extn gl backend

Change-Id: Ie335d0399e74bb95dd5f51b0f46158260d5eeedd

7 years agocherrypick from upstream.
Hermet Park [Mon, 5 Dec 2016 08:33:15 +0000 (17:33 +0900)]
cherrypick from upstream.

http://git.enlightenment.org/core/efl.git/commit/?id=1e6246df24f84eebda95c9d18f90ead3f803789e

commit 1e6246df24f84eebda95c9d18f90ead3f803789e
Author: Hermet Park <hermet@hermet.pe.kr>
Date:   Mon Dec 5 18:03:01 2016 +0900

    evas textblock: fix a rendering issue.

    It's a rare case but a possible scenario that textblock is not updated
     properly in case of textblock rendering via proxy/map.

    If the textblock state turned out with an invisible state,
    its relayouting won't be up to date. But actually, it could be rendered
    by map/proxy. In that case textblock text layouting would be incorrect.

    Additionally, removed evas event freeze state there because map/proxy won't
    be drawn under the event freeze state always.

    @fix

Change-Id: I588d3fa73e6b83b916e73bd9b993f5f5f782e1ff

7 years agoRevert "edje_calc: round the scaled value when it is casted to int type."
Jiyoun Park [Mon, 5 Dec 2016 08:21:22 +0000 (17:21 +0900)]
Revert "edje_calc: round the scaled value when it is casted to int type."

This reverts commit b6c4e0bd4dc1920453fcd701b9527c9447e75f61.

elm-demo tizen->file selector menu didn't work after adding this patch.
need to check relation between this patch and elm-demo -> file selector menu

Change-Id: Ic3894231296f3ff909e551ea7d8fa0414426191b

7 years agoedje_calc: round the scaled value when it is casted to int type.
Jaehwan Kim [Tue, 29 Nov 2016 05:03:20 +0000 (14:03 +0900)]
edje_calc: round the scaled value when it is casted to int type.

It rounds the value for the more precious calculation when the scaled
value is casted to int type.

Change-Id: I91e9695bc38e0261795c6d83f8f46dfc7d5db988

7 years agoedje: fix mistyped code for _color_class_parent_set()
Youngbok Shin [Fri, 2 Dec 2016 09:22:58 +0000 (18:22 +0900)]
edje: fix mistyped code for _color_class_parent_set()

It caused issue for applying a color to a entry's cursor.

@tizen_fix

Change-Id: I16ed2963cc13c6befd2686c956119036677f8627

7 years agoedje: Clear color_class members for all descriptions
Youngbok Shin [Fri, 2 Dec 2016 09:11:46 +0000 (18:11 +0900)]
edje: Clear color_class members for all descriptions

All textblock's styles of the given part have to be removed
from class member hashes.

@tizen_fix

Change-Id: I1417e6b5919907a16307bdccd3a99fcce72ed231

7 years agoevas/engine: updated ector_begin() engine function signature.
subhransu mohanty [Fri, 2 Dec 2016 06:35:16 +0000 (15:35 +0900)]
evas/engine: updated ector_begin() engine function signature.

Change-Id: Ib274f8c7321d4a3408e4eda55d2ecc0e9bf75b58

7 years agoecore_audio: Add 'TIZEN_ONLY' comment
Jiwon Kim [Fri, 2 Dec 2016 06:30:17 +0000 (15:30 +0900)]
ecore_audio: Add 'TIZEN_ONLY' comment

In commit (ecore_audio: Add tizen ecore_audio module),
 'TIZEN_ONLY' comment was missed.
 : e182090493d623212cd0ee7d55ae4ebd679eff42

@tizen_only

Change-Id: I05340e62cd6775321fe7953566eb75ffa63c27c4
Signed-off-by: Jiwon Kim <jiwon177.kim@samsung.com>
7 years agoector: fixed Windows OS compilation.
Bowon Ryu [Fri, 2 Dec 2016 05:54:53 +0000 (14:54 +0900)]
ector: fixed Windows OS compilation.

uint causes build break on Windows.

Change-Id: Id1c1e229583ac6e0c0b1f541808ee13746490a57
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
7 years agoEvas Text: Fix width of BiDi text
Minwoo, Lee [Tue, 29 Nov 2016 10:51:35 +0000 (19:51 +0900)]
Evas Text: Fix width of BiDi text

Summary: BiDi text is truncated because the way we find the last visual item in text object is wrong.
This patch is similar with _line_native_last_visual_get function in textblock.

Reviewers: cedric, tasn, herdsman

Subscribers: id213sin, cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3947
(commit id: d22850848dc91eccc1995eb0a5e873fc27430d32)

Signed-off-by: Minwoo, Lee <minwoo47.lee@samsung.com>
Change-Id: Iec239ad7edad9eb688a7430dd4384842093efaa2

7 years agoeet: add checking on null to eet_data_write_cipher and EINA_ARG_NONNULL to dump API...
Artem Popov [Mon, 28 Nov 2016 18:44:59 +0000 (10:44 -0800)]
eet: add checking on null to eet_data_write_cipher and EINA_ARG_NONNULL to dump API @fix

Summary:
add checking on null to eet_data_write_cipher and EINA_ARG_NONNULL to eet_data_dump*
and eet_data_test_dump* API

Reviewers: NikaWhite, myoungwoon, cedric

Reviewed By: cedric

Subscribers: jpeg, t.naumenko

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

Change-Id: I1ee0f550aaab3092a9bf192c0d764c8d498c07e8
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoCherry-pick this patch from upstream.
Hermet Park [Thu, 1 Dec 2016 11:07:35 +0000 (20:07 +0900)]
Cherry-pick this patch from upstream.

http://git.enlightenment.org/core/efl.git/commit/?id=7d7c17c22ac9e3115fd4b78507585dc9c43c3a22

commit 7d7c17c22ac9e3115fd4b78507585dc9c43c3a22
Author: Hermet Park <hermet@hermet.pe.kr>
Date:   Thu Dec 1 19:49:30 2016 +0900

    evas common: disable thread_queue feature on win32.

    We have an issue that eina_thread_queue msg isn't delivered properly on win32.
    That occurs broken image drawing in case of non-smooth scaling.

    I disabled this feature on win32 because scale_sample_draw is gonna be rarely used
    since async rendering introduced.

Change-Id: I881eed81af443c3fb633a2b6b72ea6cb33050752

7 years agoecore_audio: Add tizen ecore_audio module
Jiwon Kim [Wed, 9 Nov 2016 14:08:05 +0000 (23:08 +0900)]
ecore_audio: Add tizen ecore_audio module

Modulation (phase 1) is completed.
It opens %{libdir}/ecore_audio/modules/tizen/{version}/module.so ,
 and use it than libpulse.

Origin code (using libpulse) also work well.
But that's volume is handled media volume.

As using Tizen's audio module, volume control can be followed
 to platform poicy.

Change-Id: Ic8068b87a10ee8cd2e4786d4ad7d4bf529a7d881
Signed-off-by: Jiwon Kim <jiwon177.kim@samsung.com>
7 years agoedje: add part_text_min_policy property for internal usage
Youngbok Shin [Wed, 30 Nov 2016 12:03:37 +0000 (21:03 +0900)]
edje: add part_text_min_policy property for internal usage

It is made for internal usages.

@tizen_feature

Change-Id: I1956c269af213ab3287a7d120a1de92e4a0052d4

7 years agoector/gl: consider shape orgin while drawing.
subhransu mohanty [Wed, 30 Nov 2016 10:31:28 +0000 (19:31 +0900)]
ector/gl: consider shape orgin while drawing.

Change-Id: I4a096fe947e774527432e94e75a932ae85ed6e09

7 years ago[evas_tbm] fixed issue about x,y value when using tbm_surface
Joogab Yun [Wed, 30 Nov 2016 07:54:35 +0000 (16:54 +0900)]
[evas_tbm] fixed issue about x,y value when using tbm_surface

Change-Id: Id3d3b3c1d68e6c9201cf6d4005a390030ec9bf78

7 years agoevas/engine: create ector surface without stencil buffer.
subhransu mohanty [Wed, 30 Nov 2016 08:10:41 +0000 (17:10 +0900)]
evas/engine: create ector surface without stencil buffer.

Change-Id: Ie4169050e46e5b80389022fdd51ce3aeab5676e4

7 years agoector/gl: updated antialiasing drawing in gl backend.
subhransu mohanty [Wed, 30 Nov 2016 07:24:34 +0000 (16:24 +0900)]
ector/gl: updated antialiasing drawing in gl backend.

Change-Id: I5a0a6b39c4ec605f825c426821f821459ae0e776

7 years agoevas: bug fix in bmp loader
Jaeun Choi [Wed, 30 Nov 2016 02:37:26 +0000 (11:37 +0900)]
evas: bug fix in bmp loader

when the DIB header is BITMAPINFOHEADER (size 40),
a bitmap file has alpha channel only if the compression method is BI_ALPHABITFIELDS (= 6).
the original code enabled alpha channel when the compression method was BI_RGB (= 0),
which made an opaque bmp image loaded as a transparent one.

@fix

Change-Id: Id175c82294c064d0d87c7f8fa9ccafcda8f84611

7 years agoecore_file: get stat from correct file
Vyacheslav Reutskiy [Wed, 23 Nov 2016 14:06:43 +0000 (16:06 +0200)]
ecore_file: get stat from correct file

Change-Id: Ic9fcffe8a3e73a58df1e0c0874b00aba1626334a
Signed-off-by: Vyacheslav Reutskiy <v.reutskiy@samsung.com>
7 years agoecore_file: use win api for delete folder
Vyacheslav Reutskiy [Wed, 23 Nov 2016 13:58:45 +0000 (15:58 +0200)]
ecore_file: use win api for delete folder

The RemoveDirectory on Windows guarantee that given folder will be
delete.

Change-Id: Ic1c625afe8f1f292d800b9f554d9b36c0d549a1a
Signed-off-by: Vyacheslav Reutskiy <v.reutskiy@samsung.com>
7 years agoeina_file_win32: close handler in case of error
Vyacheslav Reutskiy [Wed, 23 Nov 2016 13:43:40 +0000 (15:43 +0200)]
eina_file_win32: close handler in case of error

Func _eina_file_win32_first_file try to find the first file in directory
but if any file not found the file handler stay open, and func will
return error. But in this case while handle is open impossible to do
any actions. For example call eina_file_ls for empty folder, func will
return error and fold folder open. And if we try to remove this folder
Windows only mark it to delete, and remove it after the process is
complete.

Solution: close handler in error case.

Change-Id: I178d99e2a29ef8021b35ec1e17068021363ac1f4
Signed-off-by: Vyacheslav Reutskiy <v.reutskiy@samsung.com>
7 years agoEdje_Edit: use specific function to get file's name correctly on Win and Linux
Vitalii Vorobiov [Fri, 25 Nov 2016 13:00:49 +0000 (15:00 +0200)]
Edje_Edit: use specific function to get file's name correctly on Win and Linux

Because '\' is dir path for linux, but '/' is dir path for Window,
so better use specific function for getting file's name depending on specific
system

Change-Id: I34f999eaa2aabbe60994bce82a804457002b2879
Signed-off-by: Vitalii Vorobiov <vi.vorobiov@samsung.com>
7 years agoecore_file: update docs for ecore_file_rmdir
Vyacheslav Reutskiy [Wed, 23 Nov 2016 14:18:40 +0000 (16:18 +0200)]
ecore_file: update docs for ecore_file_rmdir

Change-Id: I9ba626ab06246032ffd98f3fc1dcbcd5baca5aae
Signed-off-by: Vyacheslav Reutskiy <v.reutskiy@samsung.com>
7 years agoevas_object_image: fixed issue about x,y value when image drawing
sunghyun kim [Wed, 30 Nov 2016 04:44:04 +0000 (13:44 +0900)]
evas_object_image: fixed issue about x,y value when image drawing

Change-Id: I02943ae616766deacbd4352ff927f690e324a175

7 years agoedje entry: fix crash issue due to improper callback handling
Youngbok Shin [Tue, 29 Nov 2016 05:39:01 +0000 (14:39 +0900)]
edje entry: fix crash issue due to improper callback handling

Summary:
If there were multiple elm_entry objects and some of them were deleted,
the callback function would cause crash problem.
The callback function only for specific data should be deleted when
a entry object is deleted.
@fix

Test Plan: N/A

Reviewers: raster, cedric, herdsman, woohyun, subodh6129

Subscribers: jpeg

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

Change-Id: I3892f3bf506232640f53cacab649f748825d91e8

7 years agoRevert "Fix crash issue due to improper callback handling"
Youngbok Shin [Wed, 30 Nov 2016 05:06:18 +0000 (14:06 +0900)]
Revert "Fix crash issue due to improper callback handling"

This reverts commit babd7e0d14aa32bd5797566ec90d0a381577abeb.

Change-Id: I7eb4a356c9297ade5944586ac4d0c771651f7ddf

7 years agoeet: add NULL-check to eet_connection_empty API to avoid segfault
Artem Popov [Wed, 16 Nov 2016 23:30:29 +0000 (15:30 -0800)]
eet: add NULL-check to eet_connection_empty API to avoid segfault

@fix

Summary:
Only eet_connection_empty hasn't checking on NULL and try to read from field of object.
Add NULL-check for connection and return result of empty connection.

Reviewers: jpeg, cedric, myoungwoon

Subscribers: t.naumenko, NikaWhite

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

Change-Id: Ia080d4bb4b38a61377381977a159cb0e260055ea
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoEdje: add checking on NULL 3-rd parameter in edje_object_part_external_param_type_get()
Artem Popov [Thu, 24 Nov 2016 03:13:36 +0000 (12:13 +0900)]
Edje: add checking on NULL 3-rd parameter in edje_object_part_external_param_type_get()
@fix

Summary: add checking on NULL 3-rd parameter (param) before strcmp to avoid segfault

Reviewers: cedric, jpeg, NikaWhite, myoungwoon, Hermet

Reviewed By: Hermet

Subscribers: Hermet, t.naumenko

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

Change-Id: I604f6bc4f5ba3175b8179ff71bca0fe4405b8b20

7 years agoRestrict product-wise condition for product build only 54/92754/7
MyungJoo Ham [Wed, 7 Dec 2016 08:46:45 +0000 (17:46 +0900)]
Restrict product-wise condition for product build only

Do not make different binaries per profile.
(But let's not mind what TV-Production does)

Change-Id: Ic1706b117ecf0362e1b19d1d575d7b5821bad3cb
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
7 years agoevas: do not cast uint64x1_t to int in evas_common_convert_argb_premul 85/107285/2
Cedric BAIL [Tue, 28 Apr 2015 21:40:58 +0000 (23:40 +0200)]
evas: do not cast uint64x1_t to int in evas_common_convert_argb_premul

Summary:
In GCC 5.1 arm_neon header for aarch64 was changed. It is not possible anymore to silently cast uint64x1_t to int.

So replace cast with proper getter function to avoid following error:
lib/evas/common/evas_convert_color.c:50:18: error: incompatible types when assigning to type 'DATA32 {aka unsigned int}' from type 'uint64x1_t'
nas += vpaddl_u32(vpaddl_u16(vpaddl_u8(cmp)));

Reviewers: raster, cedric, devilhorns

Subscribers: cedric

Projects: #efl

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Conflicts:
src/lib/evas/common/evas_convert_color.c

Change-Id: I068c77c387e396120fa34cce87cbda2d3dbfd7af

7 years agoedje_calc: add null checking for strdup 88/104988/1
Thiep Ha [Wed, 14 Dec 2016 23:11:43 +0000 (08:11 +0900)]
edje_calc: add null checking for strdup

Subscribers: cedric, jpeg

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

Change-Id: Ib483d21811f374d165b3cebecc0f7c4cb7642851

7 years agoedje_calc: remove redundant checking 54/104954/1
Thiep Ha [Wed, 14 Dec 2016 08:59:40 +0000 (17:59 +0900)]
edje_calc: remove redundant checking

We check amin > ZERO && amax > ZERO, so no need to do it them again.

Change-Id: I0ef4f2ca56f14b5356182f4e94b10bd5bb704654

7 years ago[evas_gl] Evas GL Render Threading Patch 30/103330/2
Joogab Yun [Thu, 8 Dec 2016 05:32:25 +0000 (14:32 +0900)]
[evas_gl] Evas GL Render Threading Patch

Change-Id: Ifefc491ec2b927130c6ac04c13cf32a0d1231922

7 years ago[gl_tbm] implement gl_tbm 70/99470/6
Joogab Yun [Wed, 23 Nov 2016 03:47:21 +0000 (12:47 +0900)]
[gl_tbm] implement gl_tbm

Change-Id: I77c4d404d18b1dfda72a9517585e23412a3d96c2

7 years agoedje - delete obj - null out freed items in structs/data 68/103468/1
Prateek Thakur [Thu, 8 Dec 2016 11:05:49 +0000 (16:35 +0530)]
edje - delete obj - null out freed items in structs/data

Summary: This patch is from upstream.

commit c2e26a51215d379a6926b0ca44f3d4d664d84bb4
Author: Carsten Haitzler (Rasterman) <raster@rasterman.com>
Date:   Wed Apr 13 19:59:00 2016 +0900

    edje - delete obj - null out freed items in structs/data

    i just got a segv freeing ian invalid ptr... it SEEMS as if something
    has tried to free and edje object twice... but i can't be sure as
    valgrind can't catch this. it's a one-off, so ensure after free, we
    NULL out things we freed to avoid this.

    @fix

Change-Id: I201d34850e3cf5f3981236065f04abb197aebbaa
Signed-off-by: Prateek Thakur <prateek.th@samsung.com>
7 years agoecore_imf: fix memory leak issue in example code 88/102088/1
Jihoon Kim [Mon, 5 Dec 2016 02:18:11 +0000 (11:18 +0900)]
ecore_imf: fix memory leak issue in example code

ecore_imf_context_event_callback_add () register a callback function to a given context event. ecore_imf_context_event_callback_del () must be called
to unregister callback function registered to a given context event.

Change-Id: Ica5f8aa9690b68183c1d1285c7ddf3a7f2ede496
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
7 years agoRevert "ecore: early destruction of animator allow for tick end to always be triggered."
Taehyub Kim [Wed, 30 Nov 2016 06:36:09 +0000 (15:36 +0900)]
Revert "ecore: early destruction of animator allow for tick end to always be triggered."

This reverts commit 427d8c21f9de1192b5aa845e35aa9deb5883426d.