platform/upstream/efl.git
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.

7 years agoFix crash issue due to improper callback handling
Youngbok Shin [Mon, 28 Nov 2016 12:27:27 +0000 (21:27 +0900)]
Fix crash issue due to improper callback handling

@tizen_fix

Change-Id: I618d798424470c2901f05b58f49f2fde7208f2b1

7 years ago[Extn_GL] fix rotation issue after change resize logic
sunghyun kim [Mon, 28 Nov 2016 02:31:12 +0000 (11:31 +0900)]
[Extn_GL] fix rotation issue after change resize logic

fix rotation issue and minor issue about profile set

Change-Id: I36c86a1e964d925d1a0852f8f0a78359d84eaf9c

7 years agoecore_wl: add ecore_wl_window_input_get() EAPI
Duna Oh [Fri, 18 Nov 2016 03:32:42 +0000 (12:32 +0900)]
ecore_wl: add ecore_wl_window_input_get() EAPI

Change-Id: Ie043a4386a893e270471ee5adcbbd65fec4b155e
Signed-off-by: Duna Oh <duna.oh@samsung.com>
7 years agoector/gl: added antialiasing support for ector gl backend.
subhransu mohanty [Mon, 28 Nov 2016 06:48:52 +0000 (15:48 +0900)]
ector/gl: added antialiasing support for ector gl backend.

Change-Id: I49e32fb4e0fb3d6fc75fe50a5c51286539013314

7 years agoecore_wayland: Send device events and build devices list if the window is not exist
JengHyun Kang [Wed, 23 Nov 2016 08:25:17 +0000 (17:25 +0900)]
ecore_wayland: Send device events and build devices list if the window is not exist

Change-Id: I937df89aacc8bc6eeeeae17a508c21b00f403e4a

7 years agoedje_pick: add base_scale value to target edj from origin edj
Jaehwan Kim [Fri, 25 Nov 2016 04:17:56 +0000 (13:17 +0900)]
edje_pick: add base_scale value to target edj from origin edj

Change-Id: Ic001d1f8ffbecf41caa74f3444bcf4761414677b

7 years agoedje_entry: Add edje_object_part_text_select_disable_set
JinYong Park [Mon, 31 Oct 2016 08:29:01 +0000 (17:29 +0900)]
edje_entry: Add edje_object_part_text_select_disable_set

Change-Id: I8eeee540667033d0495777b299d7951fb341c1e9
Signed-off-by: Jinyong Park <j4939.park@samsung.com>
7 years agofix doxygen warnings
Jee-Yong Um [Tue, 22 Nov 2016 00:46:15 +0000 (09:46 +0900)]
fix doxygen warnings

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

7 years agoevas/engine: enable native gl drawing for ector backend
subhransu mohanty [Tue, 22 Nov 2016 12:30:42 +0000 (21:30 +0900)]
evas/engine: enable native gl drawing for ector backend

Change-Id: Ic8fa4464cbfa959c17a476554be759945302b924

7 years agoector/gl: Added the native gl backend in ector
subhransu mohanty [Tue, 22 Nov 2016 12:30:09 +0000 (21:30 +0900)]
ector/gl: Added the native gl backend in ector

Change-Id: I266ce620efe77ec06f7aa9e37d45e6d243c55b87

7 years agostatic_lib: Added triangulator library.
subhransu mohanty [Tue, 22 Nov 2016 12:26:49 +0000 (21:26 +0900)]
static_lib: Added  triangulator library.

The Library breaks down shape in to list for triangles for opengl drawing.

Feature:
- shape outline triangulation using triangle strips.
- shape filling triangulation using curve flattning and  triangle fans.

Change-Id: I80db50b8415d0a3a44b01599ee3e024da4e7a630

7 years agoevas textblock: fix to keep calculated size properly when calculation is skipped
Youngbok Shin [Tue, 22 Nov 2016 11:24:30 +0000 (20:24 +0900)]
evas textblock: fix to keep calculated size properly when calculation is skipped

When textblock object's calculations skipped formatted.w could be 0.
It causes abnormal size calculation from Edje.

@tizen_fix

Change-Id: I50d2d40e6dc40a796a047cd33db941d027fce003

7 years agoedje: clean up newly added tag strings
Youngbok Shin [Thu, 24 Nov 2016 05:52:32 +0000 (14:52 +0900)]
edje: clean up newly added tag strings

@tizen_fix

Change-Id: I8cf8a3d666ef7d0bd747970bdb9a1a26501fb49b

7 years agoedje: remove FIXME code according to patch for textblock
Youngbok Shin [Tue, 22 Nov 2016 11:16:44 +0000 (20:16 +0900)]
edje: remove FIXME code according to patch for textblock

_formatted_get() function should return calculated size everytime.
There is a bug in Evas Textblock. The bug will be removed.

@tizen_fix

Change-Id: Icb2f1524fdb5791c7eb0da3124f127ffd45ccecf

7 years agoedje: fix to get minimum width even if given width is 0
Youngbok Shin [Tue, 22 Nov 2016 11:12:36 +0000 (20:12 +0900)]
edje: fix to get minimum width even if given width is 0

The patch also fix to calculate maximum width properly in some cases.
It adds missing comment for Tizen only patches.

@tizen_fix

Change-Id: Iec1f6b76be3652031790de0bc24a135e8084c5fe

7 years agoevas/gl: Added support for stencil buffer creation while creating gl Surface.
subhransu mohanty [Tue, 22 Nov 2016 12:24:38 +0000 (21:24 +0900)]
evas/gl: Added support for stencil buffer creation while creating gl Surface.

Reviewers: jpeg, cedric

Reviewed By: jpeg, cedric

Subscribers: cedric, jpeg

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

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

7 years agoevas: Add shutdown logic on thread creation failure
Wonki Kim [Mon, 21 Nov 2016 04:26:59 +0000 (13:26 +0900)]
evas: Add shutdown logic on thread creation failure

Summary:
In case of thread creation failure, shutdown logic will be stuck.
To prevent stuck, set exit variables to make thread_shutdown working
even if init fails.

Also modify init logics to return init result to a caller.

Reviewers: jypark, woohyun, cedric, jpeg

Subscribers: cedric

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

Change-Id: I7793d4903515c686b28f13f21454d1b6a28eba11
Signed-off-by: Wonki Kim <wonki_.kim@samsung.com>
7 years agoevas: Redraw dirty images without updates
jiin.moon [Tue, 22 Nov 2016 06:36:48 +0000 (15:36 +0900)]
evas: Redraw dirty images without updates

Refs: v1.18.0-rc-1592-g55e8842
Author:     Jean-Philippe Andre <jp.andre@samsung.com>
AuthorDate: Mon Nov 21 16:58:29 2016 +0900
Commit:     Jean-Philippe Andre <jp.andre@samsung.com>
CommitDate: Tue Nov 22 14:32:37 2016 +0900

    evas: Redraw dirty images without updates

    The proper way to use the pixel_get callback and dirty flag
    is to also specify which exact region has been updated
    with data_update_add.

    Unfortunately many apps and even GLView are relying on
    invalid behaviour that forced full redraw of the image
    even though data_update_add was never called.

    This amends c1a080f5e4e3ef01cfb792ef3eb9c9e59ba4d3f3

    There is no dirty flag equivalent in EO as there is no
    pixel_get callback defined (yet). One problem is that the GL
    API is not defined, and may prove hard to define for bindings...

Change-Id: I1447c87bb33e7a0fdef2e865d3c7c61f3f1304b8

7 years agoevas: Add some safety code to evas_clip
Jean-Philippe Andre [Wed, 2 Nov 2016 11:04:46 +0000 (20:04 +0900)]
evas: Add some safety code to evas_clip

I'm trying to fix a crash that seems to happens in some very odd
circumstances under stress testing. I have absolutely no idea
what is going wrong... So let's just add some extra safety.

This is a backport of d0333561be1e74bf617f9a4059ba64bfea495a28

Change-Id: I3e6547dc48d2516f689d0671b3aa2559aa1919dd

7 years agoevas text: Replace the replacement character to 0x00A0 which is empty character
Youngbok Shin [Tue, 22 Nov 2016 06:40:01 +0000 (15:40 +0900)]
evas text: Replace the replacement character to 0x00A0 which is empty character

@tizen_fix

Change-Id: I45f685f413aba803166a10d1d90de6463e8772b6

7 years ago[Extn_GL] fix resize problem when plug object is updated
sunghyun kim [Tue, 22 Nov 2016 05:15:12 +0000 (14:15 +0900)]
[Extn_GL] fix resize problem when plug object is updated

when plug object is updated, object don't need to change size

Change-Id: Ie382674bc06698f931eb58bf4c038cccfc194242

7 years agoRevert "[ecore_evas_extn] Enable GL in indicator"
sunghyun kim [Fri, 18 Nov 2016 02:03:41 +0000 (18:03 -0800)]
Revert "[ecore_evas_extn] Enable GL in indicator"

This reverts commit d509c9919b408907e4f16a9a33fc73d6a0c3705d.

Change-Id: I1d0280ee973a4be37173f648add9e5d98f274d5e

7 years ago[ecore_evas_extn] Enable GL in indicator
sunghyun kim [Mon, 14 Nov 2016 06:54:45 +0000 (15:54 +0900)]
[ecore_evas_extn] Enable GL in indicator

Change-Id: Ief90607679fba0fd82d48eb00543700778fcf5da

7 years agoedje entry: ignore a mouse up event which is holded by other object
Youngbok Shin [Thu, 10 Nov 2016 09:26:12 +0000 (18:26 +0900)]
edje entry: ignore a mouse up event which is holded by other object

It prevents updating cursor while srolling a elm_entry or other object.

@tizen_fix

Change-Id: Ice221d9eba8d6b94dd1e43170c9e6682cf989e56

7 years agoedje_edit: fix segmentation fault(Array index is out of bound)
Jaehwan Kim [Tue, 22 Nov 2016 08:16:54 +0000 (17:16 +0900)]
edje_edit: fix segmentation fault(Array index is out of bound)

@fix

Change-Id: I11e3cbc9470e5511ff7c656aeb519fe0b22b828e

7 years agoedje_entry: fix "command do nothing when capslock on"
JinYong Park [Fri, 18 Nov 2016 07:13:59 +0000 (16:13 +0900)]
edje_entry: fix "command do nothing when capslock on"

@tizen_fix

Change-Id: Iefe2973d15a6e34e5e9db65f0f7cf3870d58d92e
Signed-off-by: Jinyong Park <j4939.park@samsung.com>
7 years ago[Extn_GL] fix resize bug
sunghyun kim [Mon, 21 Nov 2016 05:51:55 +0000 (14:51 +0900)]
[Extn_GL] fix resize bug

if cliend is added, socket need to send size to plug.

Change-Id: I33e818b0327a6e1409e22bc1bd2172e963e5c2dd

7 years ago[ecore_evas_extn] bug fix in ecore_evas_extn
sunghyun kim [Thu, 17 Nov 2016 04:16:06 +0000 (13:16 +0900)]
[ecore_evas_extn] bug fix in ecore_evas_extn

Change-Id: I335bf62d9b9b50ca58899d5241f9a64e448defb4

7 years ago[EvasGL] Fix to 3D memory leak.
Wonsik, Jung [Thu, 17 Nov 2016 13:29:31 +0000 (22:29 +0900)]
[EvasGL] Fix to 3D memory leak.

If evas_gl_make_current is called with NULL,
and evgl_surface_destroy and evgl_context_destroy is called,
3D memory leak occurs.
Because rsc->current_ctx is NULL in evas_gl_make_current
and texture and framebuffer can not be free in destroy funnctions.
To fix that, one value is added to EVGL_resource.
This value is kept with current_ctx, when evas_gl_make_current is called with NULL.

Change-Id: Iabb7685d0c5e932b0e08e716225bf15f58696d0b

7 years agoEdje entry: Do not update anchors outside viewport.
SubodhKumar [Fri, 4 Nov 2016 10:03:24 +0000 (15:33 +0530)]
Edje entry: Do not update anchors outside viewport.

Summary:
Do not update anchors outside viewport.

Problem is that when entry contains large number of anchors,
scrolling and launch performance is degraded due to lots of objects
being created and maintained, so to enhance the performance of
entry with anchors, anchors is not updated outside the viewport.

Test Plan:

    Should have large number of anchors in entry
    Observe the launch and scrolling performance.

Reviewers: tasn, raster, herdsman

Subscribers: thiepha, raster, cedric, jpeg

Tags: efl

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

Change-Id: I49cf544f3caad9a0e3cf5a9157906a7347eb5af1
Signed-off-by: SubodhKumar <s7158.kumar@samsung.com>
7 years agoEdje entry: Do not update cursor for non editable entry.
SubodhKumar [Fri, 4 Nov 2016 09:24:01 +0000 (14:54 +0530)]
Edje entry: Do not update cursor for non editable entry.
Summary: Do not update cursor for non editable entry.
If entry is not editable there must not be any need to query
tb cursor geometry and run other codes related to it.
This may improve some performance of non-editable entry.
Test Plan: NA
Reviewers: tasn, herdsman, thiepha
Subscribers: shilpasingh, cedric, jpeg
Projects: efl
Differential Revision: https://phab.enlightenment.org/D3532
Change-Id: I11d5c083a91fc223f1813c63bbcafd30b65be37f
Signed-off-by: SubodhKumar <s7158.kumar@samsung.com>
7 years agoeet: return 0 instead of NULL when the return type is int
Jean Guyomarc'h [Sat, 12 Nov 2016 09:42:45 +0000 (10:42 +0100)]
eet: return 0 instead of NULL when the return type is int

Change-Id: Icaaf1571b34f9adced3abf3f0e855402e63acd33
Signed-off-by: Artem Popov <artem.popov@samsung.com>
7 years agoecore_wayland: prevent overwriting read file descriptor
Taehyub Kim [Thu, 17 Nov 2016 06:24:16 +0000 (15:24 +0900)]
ecore_wayland: prevent overwriting read file descriptor

Change-Id: Idc013685698ebfdd27cc2efbfad8c37be017c2b8

7 years agoRevert "[ecore_evas_extn] Enable GL in indicator"
sunghyun kim [Fri, 18 Nov 2016 02:03:41 +0000 (18:03 -0800)]
Revert "[ecore_evas_extn] Enable GL in indicator"

This reverts commit d509c9919b408907e4f16a9a33fc73d6a0c3705d.

Change-Id: I1d0280ee973a4be37173f648add9e5d98f274d5e

7 years agoeet: add to basic eet_image EAPIs checking on NULL
Artem Popov [Fri, 11 Nov 2016 17:57:38 +0000 (09:57 -0800)]
eet: add to basic eet_image EAPIs checking on NULL
@fix

Summary: to avoid segfaults with NULL raw data, add checking on NULL to basic eet_image APIS

Reviewers: NikaWhite, cedric, myoungwoon, jpeg

Reviewed By: jpeg

Subscribers: t.naumenko, jpeg

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

Change-Id: I8a1bdf9df1864e271c33a71361da57fb3ed84374
Signed-off-by: Artem Popov <artem.popov@samsung.com>
7 years agoEina: add NULL check to eina_module_symbol_global_set API @fix
Artem Popov [Mon, 7 Nov 2016 22:42:51 +0000 (14:42 -0800)]
Eina: add NULL check to eina_module_symbol_global_set API @fix

Summary: Add checking on NULL like in other API in module, to avoid segmentation fault

Reviewers: NikaWhite, cedric

Reviewed By: cedric

Subscribers: myoungwoon, jpeg

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

Change-Id: Icc405c0a3f3e9bf6309d611d8e2f51ef640942ea
Signed-off-by: Artem Popov <artem.popov@samsung.com>
7 years agoedje entry: ignore a mouse up event which is holded by other object
Youngbok Shin [Thu, 10 Nov 2016 09:26:12 +0000 (18:26 +0900)]
edje entry: ignore a mouse up event which is holded by other object

It prevents updating cursor while srolling a elm_entry or other object.

@tizen_fix

Change-Id: Ice221d9eba8d6b94dd1e43170c9e6682cf989e56