platform/upstream/efl.git
8 years agoevas : remove native.func.data variable and data argument of native calblacks.
Minkyoung Kim [Thu, 31 Mar 2016 06:55:15 +0000 (15:55 +0900)]
evas : remove native.func.data variable and data argument of native calblacks.

Summary:
Evas Image should be independent of render engine.
So remove native.func.data member of RGBA_Image, Evas_GL_Image struct.
And remove data argument,too.

Test Plan: Local test, Tizen3.0 mobile, Desktop englitenment

Reviewers: jpeg, spacegrapher, wonsik

Subscribers: cedric, dkdk

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

8 years agoRevert "po: disable edje_external files from elementary until they are integrated"
Cedric Bail [Fri, 1 Apr 2016 00:55:12 +0000 (17:55 -0700)]
Revert "po: disable edje_external files from elementary until they are integrated"

This reverts commit 5517a23cde7af74cacf6d13be6e65596c02de048.

edje_external are back in, so this is not needed anymore.

8 years agoelementary: add edje_external back in.
Cedric Bail [Fri, 1 Apr 2016 00:44:38 +0000 (17:44 -0700)]
elementary: add edje_external back in.

8 years agoevas sw render: fix previous thread fix to be portable
Carsten Haitzler (Rasterman) [Fri, 1 Apr 2016 02:29:50 +0000 (11:29 +0900)]
evas sw render: fix previous thread fix to be portable

this fixes the fix 4d6a8a7fce51b5654404226668a27d52d1e30eb3 to be
portable to platfomrs that do not support __thread - seemingly openbsd
does not (argh!) and maybe others. so on these platforms then they
dont get the optimization of keeping a cutout rect pool to avoid
re-allocation.

this also every 4096 draws "resets" the cutout cache so it doesnt
expand and stay expanded forever.

@fix

8 years agoRevert "XXX - reword me when done"
Carsten Haitzler (Rasterman) [Fri, 1 Apr 2016 00:57:38 +0000 (09:57 +0900)]
Revert "XXX - reword me when done"

This reverts commit bc238146146d2bdd6a36e0aa31b83f9ce59ac98b.

8 years agoRevert "XXX"
Carsten Haitzler (Rasterman) [Fri, 1 Apr 2016 00:57:36 +0000 (09:57 +0900)]
Revert "XXX"

This reverts commit 5e9d838e60809a7dede3e1179ca35ccd02ea6d4d.

8 years agoevas render: fix updates sometimes are list of rects sometimes updates
Carsten Haitzler (Rasterman) [Thu, 31 Mar 2016 23:52:38 +0000 (08:52 +0900)]
evas render: fix updates sometimes are list of rects sometimes updates

ssometimes the evas render updates are a list of Render_Updates
structs ... sometimes Eina_Rectangles. this is horrible and i think a
bug turns up (but its not reproducable on linux - just bsd) with an
invalid free ... likely because we free() a ptr from the mem pool
eina_rectangle gets rects from. thats most likely the cause of
https://phab.enlightenment.org/T3226 - but as i can't know for sure,
this is a guess, but readiong the code i see posible vectors of
problemss here ... maybe.

so this redoes the update rects to ALWAYS be Render_Updates struct
and appropriately returns correct structures etc. etc. in api which
demand a list of Eina_Rectangles there.

pending testing on foreign sysstems to confirm this by @netstar

@fix

8 years agoXXX
Carsten Haitzler (Rasterman) [Thu, 31 Mar 2016 15:06:47 +0000 (00:06 +0900)]
XXX

8 years agoXXX - reword me when done
Carsten Haitzler (Rasterman) [Thu, 31 Mar 2016 09:33:02 +0000 (18:33 +0900)]
XXX - reword me when done

8 years agoelementary: fix internal dependencies
Jean Guyomarc'h [Thu, 31 Mar 2016 22:08:59 +0000 (00:08 +0200)]
elementary: fix internal dependencies

Ecore_Cocoa was not handled properly.

8 years agopo: disable edje_external files from elementary until they are integrated
Stefan Schmidt [Thu, 31 Mar 2016 18:08:23 +0000 (20:08 +0200)]
po: disable edje_external files from elementary until they are integrated

The edje_external module from elementary is not integrated into the build
system yet and having these files enabled here confuses our po rules.

Cedric will enable these again when he enables them in the build.

8 years agoecore: add ecore_main_fd_handler_file_add() handlers to file handler list
Mike Blumenkrantz [Thu, 31 Mar 2016 17:27:29 +0000 (13:27 -0400)]
ecore: add ecore_main_fd_handler_file_add() handlers to file handler list

broken in a bad refactoring patch, resulting in this function having no effect
whatsoever

ref 9281fb5537546f309db1326754d231abf2578c16

@fix

8 years agobuild: keep our CLEANFILES tidy to avoid argument list too long during clean
Stefan Schmidt [Thu, 31 Mar 2016 14:22:04 +0000 (16:22 +0200)]
build: keep our CLEANFILES tidy to avoid argument list too long during clean

We have been putting the generated eo files and BUILT_SOURCES into CLEANFILES
several times. So far this have not been a real problem but with the elm merge
and more and more eo files showing up this did explode recently.

During make distcheck a lot of files kept being around and make complained about
them. It took some digging to find the arguments list to long error. If you want
details on this great limitation have a look here:
http://www.linuxjournal.com/article/6060

In our case we have been lucky enough that we just appened many files over and
over again. Not doing that solves the issue for now. My testing showed no
problems but if I missed something let me know.

Fixes T3386

8 years agoedje entry: fix bug not to call ecore_imf_context_cursor_position_set when deleteing...
Jihoon Kim [Thu, 31 Mar 2016 02:34:01 +0000 (11:34 +0900)]
edje entry: fix bug not to call ecore_imf_context_cursor_position_set when deleteing surrounding text

8 years agoelementary: let's try to get the right files back in.
Cedric BAIL [Wed, 30 Mar 2016 22:55:06 +0000 (15:55 -0700)]
elementary: let's try to get the right files back in.

Strange enough, if I still try to update po files, half of their content
disapear as if we are unable to find the text to translate in the .c files
when it is still there and the file is processed...

8 years agoelementary: add config back in.
Cedric BAIL [Wed, 30 Mar 2016 21:14:58 +0000 (14:14 -0700)]
elementary: add config back in.

8 years agoelementary: fix errors in default theme
Andrii Kroitor [Wed, 30 Mar 2016 18:34:42 +0000 (11:34 -0700)]
elementary: fix errors in default theme

Summary: fix errors with missing "fixed" and with missing descriptions

Test Plan: elementary_test

Reviewers: cedric, Hermet

Subscribers: jpeg, reutskiy.v.v

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agowayland: add comment for ref T3396
Mike Blumenkrantz [Wed, 30 Mar 2016 20:00:10 +0000 (16:00 -0400)]
wayland: add comment for ref T3396

8 years agoRevert "theme: undo recent changes to elm window border shadow_spacer part"
Mike Blumenkrantz [Wed, 30 Mar 2016 19:45:06 +0000 (15:45 -0400)]
Revert "theme: undo recent changes to elm window border shadow_spacer part"

This reverts commit aaf8b861796d4161ee10447958b19dd0846a3660.

it turns out that this was irrelevant and there was some less-than-competent
engine code trying to manhandle surface sizes

8 years agowayland: ignore resize from no-op surface configure events, send events always
Mike Blumenkrantz [Wed, 30 Mar 2016 19:42:21 +0000 (15:42 -0400)]
wayland: ignore resize from no-op surface configure events, send events always

this fixes the case where a configure event with the current window geometry
would cause (inaccurate) resizes

@fix

8 years agoelementary: cleanup module generated files.
Cedric BAIL [Wed, 30 Mar 2016 18:05:00 +0000 (11:05 -0700)]
elementary: cleanup module generated files.

8 years agoelementary: always include web test as this is now an external module.
Cedric BAIL [Wed, 30 Mar 2016 18:04:37 +0000 (11:04 -0700)]
elementary: always include web test as this is now an external module.

8 years agofix other gengrid elemetary test bugs
SangHyeon Lee [Wed, 30 Mar 2016 10:16:02 +0000 (19:16 +0900)]
fix other gengrid elemetary test bugs

8 years agofix gengrid restore sample in elementary_test
SangHyeon Lee [Wed, 30 Mar 2016 08:47:56 +0000 (17:47 +0900)]
fix gengrid restore sample in elementary_test

8 years agofix gengrid test cursor sample in elementary_test
SangHyeon Lee [Wed, 30 Mar 2016 08:33:31 +0000 (17:33 +0900)]
fix gengrid test cursor sample in elementary_test

content_box is useless and also it make recursive calcuation by
adding win resize object which was already set by parent box.

this patch removing useless content_box object and make Check Cursor
works properly as it intended.

8 years agoelm: Fix make distcheck... kindof
Jean-Philippe Andre [Wed, 30 Mar 2016 06:08:07 +0000 (15:08 +0900)]
elm: Fix make distcheck... kindof

A typo (?) was making the relink hack not work.
distcheck still fails for me as all the eo generated files are
left after make clean.

See T3386

8 years agoelm: Add required eo files to EXTRA_DIST
Jean-Philippe Andre [Wed, 30 Mar 2016 06:04:15 +0000 (15:04 +0900)]
elm: Add required eo files to EXTRA_DIST

See T3386

8 years agoevas: Move engine data to native.
Minkyoung Kim [Wed, 30 Mar 2016 05:01:18 +0000 (14:01 +0900)]
evas: Move engine data to native.

Summary:
native_xx_cbs must be independent to evas render engine.
This was applied to only gl_x11 backend.
Propagate to others.

Test Plan: Tizen3.0 Mobile

Reviewers: wonsik, spacegrapher, jpeg

Reviewed By: jpeg

Subscribers: cedric, dkdk

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

8 years agoelm_prefs: Install edj in the right directory
Jean-Philippe Andre [Wed, 30 Mar 2016 04:56:22 +0000 (13:56 +0900)]
elm_prefs: Install edj in the right directory

Note: the ticket was wrong, as I was looking for .so files in the
incorrect directory. v-1.17 is now used instead of v-1.17.99.

Fixes T3385

8 years agoelm_web: Fix compilation of elm_web_none
Jean-Philippe Andre [Wed, 30 Mar 2016 02:25:34 +0000 (11:25 +0900)]
elm_web: Fix compilation of elm_web_none

elm_web_none.eo.h was not found:
- it wasn't generated
- its path wasn't added to the include path

8 years agoelementary: make theme depends on its files again.
Cedric BAIL [Tue, 29 Mar 2016 23:31:12 +0000 (16:31 -0700)]
elementary: make theme depends on its files again.

8 years agoarchlinux: tested and work again.
Cedric BAIL [Tue, 29 Mar 2016 22:59:59 +0000 (15:59 -0700)]
archlinux: tested and work again.

8 years agoelementary: fix documentation generation.
Cedric BAIL [Tue, 29 Mar 2016 22:57:13 +0000 (15:57 -0700)]
elementary: fix documentation generation.

8 years agoelementary: add back modules.
Cedric BAIL [Tue, 29 Mar 2016 21:53:24 +0000 (14:53 -0700)]
elementary: add back modules.

8 years agoelementary: only complain once during init when elm prefs module is not installed.
Cedric BAIL [Tue, 29 Mar 2016 21:52:52 +0000 (14:52 -0700)]
elementary: only complain once during init when elm prefs module is not installed.

8 years agoelementary: the test are time based which make them race prone, longer delay reduce...
Cedric BAIL [Tue, 29 Mar 2016 21:51:53 +0000 (14:51 -0700)]
elementary: the test are time based which make them race prone, longer delay reduce potential issue.

8 years agotextblock: support escaped &apos; tag
Mike Blumenkrantz [Tue, 29 Mar 2016 19:38:47 +0000 (15:38 -0400)]
textblock: support escaped &apos; tag

while not in the official html4 spec, this was supported by all browsers
except IE during the html4 era and is now included in html5.

@fix

8 years agoEo: Implement the fallback eo_add implementation.
Tom Hacohen [Tue, 29 Mar 2016 13:47:22 +0000 (14:47 +0100)]
Eo: Implement the fallback eo_add implementation.

The current eo_add uses a (very useful) gcc extension that is only
available in gcc compatible compilers (e.g clang). Until this commit we
just temporarily ignored this fact. This adds a fallback implementation that
can be used interchangeably with the non portable one. This means that the
same binary can call either at any point in time and the code will work.

Breaks ABI.

8 years agoelm_fileselector: fix progressbar mode
Andrii Kroitor [Tue, 29 Mar 2016 14:45:12 +0000 (16:45 +0200)]
elm_fileselector: fix progressbar mode

Summary:
There are calls of elm_progressbar_pulse (start/stop pulsing), but they have
no effect because progressbar is not in pulse mode

@fix

Test Plan:
open elementary_test fileselector and navigate through folders
Wheel progressbar in right up corner should have pulse animation

Reviewers: cedric, raster, reutskiy.v.v

Subscribers: jpeg

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

8 years agofileselector: add HOLD flag
Marcel Hollerbach [Tue, 29 Mar 2016 14:43:07 +0000 (16:43 +0200)]
fileselector: add HOLD flag

adds the hold flag when the keystroke is used.

If this is not done a backspace is used for reducing the search-string
AND for going into the top level directory.

8 years agoeolian: add APIs to get all things of each type
Daniel Kolesa [Tue, 29 Mar 2016 13:49:30 +0000 (14:49 +0100)]
eolian: add APIs to get all things of each type

8 years agoelua: add several file/dir utils used by doc gen
Daniel Kolesa [Tue, 29 Mar 2016 12:22:39 +0000 (13:22 +0100)]
elua: add several file/dir utils used by doc gen

This will be expanded into a proper util lib later.

8 years agoAdd ECORE_IMF_CALLBACK_DELETE_SURROUNDING
Li Zhang [Thu, 24 Mar 2016 09:51:50 +0000 (17:51 +0800)]
Add ECORE_IMF_CALLBACK_DELETE_SURROUNDING

Change-Id: I0e1ab14736a3d3849becb7cbeea81fe7b61053b7

8 years agoelementary: enable lua binding gen
Daniel Kolesa [Tue, 29 Mar 2016 10:23:43 +0000 (11:23 +0100)]
elementary: enable lua binding gen

8 years agoeolian: fix typos in symbol names in lua bindings
Daniel Kolesa [Tue, 29 Mar 2016 10:13:48 +0000 (11:13 +0100)]
eolian: fix typos in symbol names in lua bindings

8 years agoEvas: Another fix for no-render
Jean-Philippe Andre [Tue, 29 Mar 2016 09:37:12 +0000 (18:37 +0900)]
Evas: Another fix for no-render

Despite the previous patches, no-render objects could be
partially visible. Eg a fileselector marked as no-render
would have its file list visible. All other children were not
shown.

I think this is not the last fix for this feature, but
eventually source_visible will have to die internally
and be replaced by no-render.

Thanks @yakov-g for the report.

8 years agotheme: make sure new theme images from slider range change get distributed
Stefan Schmidt [Tue, 29 Mar 2016 09:43:58 +0000 (11:43 +0200)]
theme: make sure new theme images from slider range change get distributed

In commit 1152fb3e3528e024f0f9e01451783a937fdbe4dc two new image have been
added but not added to the list of image files need to distributed. This
broke make distcheck.

8 years agoedje_cc: fix parsing error when some keywords are used as part name
Jee-Yong Um [Tue, 29 Mar 2016 08:35:04 +0000 (17:35 +0900)]
edje_cc: fix parsing error when some keywords are used as part name

Summary:
Some keywords cause parsing error when they are used as part name.
For example,
   group { "some_group";
      parts {
         box { "box";
         }
      }
   }
The part name "box" should be processed by wildcard handler,
but this is pushed into stack. (collections.group.parts.part.box ...)
This patch pushes token into stack only when it doesn't have quotes.

@fix

Reviewers: cedric, raster, jpeg

Reviewed By: jpeg

Subscribers: jpeg

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

8 years agoExamples: remind Tom to compile before pushing
Daniel Zaoui [Tue, 29 Mar 2016 06:26:50 +0000 (09:26 +0300)]
Examples: remind Tom to compile before pushing

He will spank me for the commit message!!!

8 years agoexamples: Fix evas_canvas3d_proxy (temporary solution)
Jean-Philippe Andre [Tue, 29 Mar 2016 05:59:50 +0000 (14:59 +0900)]
examples: Fix evas_canvas3d_proxy (temporary solution)

It was broken after all the changes in Evas.Image.
Since buffer map/unmap is not fully completed (GL support is
still to do), I added a quick #ifdef to switch between EO and
Legacy APIs.

Thanks @jackdanielz for the report.

8 years agoEvas.Image: Add NULL check before calling engine function
Jean-Philippe Andre [Tue, 29 Mar 2016 06:07:20 +0000 (15:07 +0900)]
Evas.Image: Add NULL check before calling engine function

8 years agoEvas.Image: Remove pixels_dirty and pixels_callback
Jean-Philippe Andre [Tue, 29 Mar 2016 05:52:32 +0000 (14:52 +0900)]
Evas.Image: Remove pixels_dirty and pixels_callback

Those APIs belong to legacy, not Eo. Also, the image object
shouldn't be used directly for GL rendering, instead the GLview
widget should be used.

8 years agoelm: Replace contents list by iterators
Jean-Philippe Andre [Tue, 29 Mar 2016 04:30:13 +0000 (13:30 +0900)]
elm: Replace contents list by iterators

This introduces two new methods:
- content_names_iterate
- content_objects_iterate

Replacing:
- elm_layout_content_swallow_list_get

8 years agoelm: make content_get/set a property
Jean-Philippe Andre [Tue, 29 Mar 2016 02:56:06 +0000 (11:56 +0900)]
elm: make content_get/set a property

This doesn't change the C code.

8 years agoefl - evas - sw engine - donmt free spinlock because cache always needed
Carsten Haitzler (Rasterman) [Tue, 29 Mar 2016 03:09:40 +0000 (12:09 +0900)]
efl - evas - sw engine - donmt free spinlock because cache always needed

never free the shm pool cache spinlock as it is alwasy needed once
initiialized. this likely fixes a bsd hardlock issues

@fix

8 years agoevas/wayland_egl: Remove redundant function call.
Minkyoung Kim [Tue, 29 Mar 2016 02:04:12 +0000 (11:04 +0900)]
evas/wayland_egl: Remove redundant function call.

Summary: ob is already declared. need not to call again.

Test Plan: Tizen3.0 Mobile

Reviewers: jpeg, wonsik

Subscribers: dkdk, cedric

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

8 years agoEvas: Disable events on no-render objects
Jean-Philippe Andre [Mon, 28 Mar 2016 11:10:21 +0000 (20:10 +0900)]
Evas: Disable events on no-render objects

Source events still work for proxies (if the flag is set).

8 years agoEvas render: Fix no-render with smart objects
Jean-Philippe Andre [Mon, 28 Mar 2016 08:47:02 +0000 (17:47 +0900)]
Evas render: Fix no-render with smart objects

Setting the no-render flag on an elm widget had no effect,
as it was not properly propagated to its children. This should
fix that, but I'm not a fan of the solution.

Fixes T3371

8 years agoelementary: start bringing back documentation support.
Cedric BAIL [Mon, 28 Mar 2016 23:56:31 +0000 (16:56 -0700)]
elementary: start bringing back documentation support.

I didn't know preview generation was so slow and done completely serialy.
There is potential improvement here. Still need to kind of merge the
documentation into something readable.

8 years agoelementary: merge AUTHORS
Cedric BAIL [Mon, 28 Mar 2016 23:30:41 +0000 (16:30 -0700)]
elementary: merge AUTHORS

8 years agoelementary: add back C++ generated binding.
Cedric BAIL [Mon, 28 Mar 2016 23:16:15 +0000 (16:16 -0700)]
elementary: add back C++ generated binding.

8 years agoector: do not put ector_types.eot into the list of to be cleaned files.
Cedric BAIL [Mon, 28 Mar 2016 22:17:22 +0000 (15:17 -0700)]
ector: do not put ector_types.eot into the list of to be cleaned files.

8 years agotheme: undo recent changes to elm window border shadow_spacer part
Mike Blumenkrantz [Mon, 28 Mar 2016 21:04:52 +0000 (17:04 -0400)]
theme: undo recent changes to elm window border shadow_spacer part

this breaks window sizing in wayland

partially reverts c413544ef74ba2ceee220e4e70b044758e4038c7

8 years agoedje: add edje_object_box_part_insert_after()
Jee-Yong Um [Mon, 28 Mar 2016 18:24:02 +0000 (11:24 -0700)]
edje: add edje_object_box_part_insert_after()

Summary:
In evas and elm box, function for inserting child object after
referenced one is available, but edje doesn't have it.
This adds edje_object_box_part_insert_after() API.

@feature

Reviewers: raster, jpeg, cedric

Reviewed By: jpeg

Subscribers: jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoelementary: fix clean installation
Andrii Kroitor [Mon, 28 Mar 2016 18:23:18 +0000 (11:23 -0700)]
elementary: fix clean installation

Summary:
elocation should be included before elementary otherwise 'make install'
will fail on clean instalation

Test Plan: make uninstall && make install

Reviewers: raster, tasn, stefan_schmidt, cedric

Reviewed By: cedric

Subscribers: reutskiy.v.v, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoelementary: fix the eolian flags
Vyacheslav Reutskiy [Mon, 28 Mar 2016 09:04:57 +0000 (12:04 +0300)]
elementary: fix the eolian flags

8 years agoslider: Add range support
Amitesh Singh [Mon, 28 Mar 2016 08:35:51 +0000 (14:05 +0530)]
slider: Add range support

Slider can have two indicators if enabled and user can select
range values.

phab: https://phab.enlightenment.org/D3822
Test Plan: elementary_test -to slider

@feature

Change-Id: If4ca74de6f5a94531ebd21750d52704b2b02afee

8 years agoSlider: Theme - Add support for range in edc
Yeshwanth Reddivari [Mon, 28 Mar 2016 08:11:27 +0000 (13:41 +0530)]
Slider: Theme - Add support for range in edc

phab: https://phab.enlightenment.org/D3821
Test Plan: elementary_test -to slider

@feature

Change-Id: Ibc3f7c93efb927a6fc602f246a795c426f80bd39

8 years agoemotion/libvlc: fix url opening
Thomas Guillem [Fri, 25 Mar 2016 08:05:40 +0000 (09:05 +0100)]
emotion/libvlc: fix url opening

8 years agoemotion/libvlc: replace libvlc_mp_is_ready with ev->started
Thomas Guillem [Fri, 25 Mar 2016 08:05:39 +0000 (09:05 +0100)]
emotion/libvlc: replace libvlc_mp_is_ready with ev->started

8 years agoemotion/libvlc: use vlc vout display module
Thomas Guillem [Fri, 25 Mar 2016 08:05:38 +0000 (09:05 +0100)]
emotion/libvlc: use vlc vout display module

The vlc vout display module adds key and mouse event support. It improves
performances since a video filter is not needed anymore to scale the image, and
direct rendering with vlc avcodec module is now possible (less memcpy).

8 years agoemotion/libvlc: log: print vlc module and id
Thomas Guillem [Fri, 25 Mar 2016 08:05:37 +0000 (09:05 +0100)]
emotion/libvlc: log: print vlc module and id

8 years agoemotion/libvlc: fix C89
Thomas Guillem [Fri, 25 Mar 2016 08:05:36 +0000 (09:05 +0100)]
emotion/libvlc: fix C89

8 years agoemotion/libvlc: set libvlc args from "EMOTION_LIBVLC_ARGS" env
Thomas Guillem [Fri, 25 Mar 2016 08:05:35 +0000 (09:05 +0100)]
emotion/libvlc: set libvlc args from "EMOTION_LIBVLC_ARGS" env

8 years agoemotion/libvlc: fix video/audio/spu mute
Thomas Guillem [Fri, 25 Mar 2016 08:05:34 +0000 (09:05 +0100)]
emotion/libvlc: fix video/audio/spu mute

8 years agoemotion/libvlc: set libvlc_log static
Thomas Guillem [Fri, 25 Mar 2016 08:05:33 +0000 (09:05 +0100)]
emotion/libvlc: set libvlc_log static

8 years agoEvas proxy: Implement buffer map/unmap
Jean-Philippe Andre [Fri, 25 Mar 2016 08:46:41 +0000 (17:46 +0900)]
Evas proxy: Implement buffer map/unmap

8 years agoEfl.Canvas.Image: Remove object data for maps
Jean-Philippe Andre [Fri, 25 Mar 2016 07:44:25 +0000 (16:44 +0900)]
Efl.Canvas.Image: Remove object data for maps

The engine is responsible for the complete tracking of
maps.

Also, make buffer_unmap return bool.

8 years agoEvas: Add a test case for image buffer_map.
Jean-Philippe Andre [Wed, 23 Mar 2016 08:43:07 +0000 (17:43 +0900)]
Evas: Add a test case for image buffer_map.

This:
1. opens a file
2. maps its data and vaguely verifies it
3. writes data to it
4. writes data to it with a GRY8 map
5. verifies that the final image has all the proper pixels

8 years agoEfl.Gfx.Buffer: Switch to void* data and signed ints
Jean-Philippe Andre [Wed, 23 Mar 2016 09:14:37 +0000 (18:14 +0900)]
Efl.Gfx.Buffer: Switch to void* data and signed ints

1. unsigned char* as a return type was not even compatible
   with the default colorspace (ARGB: 32 bits).

2. Change all unsigned to int for... uh... simplicity
   unsigned is more correct than int for things like width,
   size or stride, but in fact having both ints (x,y) and unsigned
   ints makes the code more complex.
   This is a matter of personal taste.

8 years agoEvas: Add SW engine map/unmap functions
Jean-Philippe Andre [Wed, 23 Mar 2016 04:33:08 +0000 (13:33 +0900)]
Evas: Add SW engine map/unmap functions

Also, fix some of the code using them.

8 years agodraw: Import or implement some colorspace conversion routines
Jean-Philippe Andre [Tue, 22 Mar 2016 07:57:52 +0000 (16:57 +0900)]
draw: Import or implement some colorspace conversion routines

Those and many more will be required for proper map/unmap support.
There will be problems with planar formats:
  YUV, RGB565_A5P, ETC1_ALPHA

The quick solution to this problem is to not support region
conversions, only full-image (so we can assume the location of
the various planes in memory).

8 years agoEvas: Remove unimplemented border_set/get (engine internal)
Jean-Philippe Andre [Tue, 22 Mar 2016 06:25:37 +0000 (15:25 +0900)]
Evas: Remove unimplemented border_set/get (engine internal)

8 years agoEvas: Remove unimplemented image comment (internal)
Jean-Philippe Andre [Tue, 22 Mar 2016 06:21:24 +0000 (15:21 +0900)]
Evas: Remove unimplemented image comment (internal)

This is a minor cleanup of RGBA_Image.

8 years agoEvas.Image: Add ERR in long-deprecated functions
Jean-Philippe Andre [Tue, 22 Mar 2016 05:45:10 +0000 (14:45 +0900)]
Evas.Image: Add ERR in long-deprecated functions

- evas_object_image_data_convert()
- evas_object_image_pixels_import()

8 years agoEfl.Canvas.Image: Implement support for map/unmap
Jean-Philippe Andre [Tue, 22 Mar 2016 02:13:55 +0000 (11:13 +0900)]
Efl.Canvas.Image: Implement support for map/unmap

Now the real hard work is to actually implement support inside
the engines: SW and GL generic.

8 years agoEvas: Simplify direct access to image data
Jean-Philippe Andre [Mon, 21 Mar 2016 12:08:29 +0000 (21:08 +0900)]
Evas: Simplify direct access to image data

This should avoid issues with image_data_get from the engines,
when we really just want to fetch the original data pointer.

8 years agoEfl.Canvas.Image: Implement raw data_set/copy/get
Jean-Philippe Andre [Mon, 21 Mar 2016 11:15:20 +0000 (20:15 +0900)]
Efl.Canvas.Image: Implement raw data_set/copy/get

No more refcount. This is only to initialize the data from
an external buffer. data_get will only work if data_set was
used (not even copy_set).

8 years agoEvas.Image: Remove buffer_set/get
Jean-Philippe Andre [Mon, 21 Mar 2016 07:15:52 +0000 (16:15 +0900)]
Evas.Image: Remove buffer_set/get

This will be properly implemented by the subclasses. In particular,
map/unmap will be used where it makes sense, and data_get/set will
be limited to Efl.Canvas.Image and Surface.

8 years agoEvas.Image: Move stride.get away from Evas.Image
Jean-Philippe Andre [Mon, 21 Mar 2016 06:38:19 +0000 (15:38 +0900)]
Evas.Image: Move stride.get away from Evas.Image

stride does not apply to all image objects, eg. proxies or 3d scenes.
it will be implemented by the classes that support stride and pixel
data access

8 years agoEmile: Move colorspaces to Efl.Gfx
Jean-Philippe Andre [Fri, 18 Mar 2016 09:02:19 +0000 (18:02 +0900)]
Emile: Move colorspaces to Efl.Gfx

A small hack to the toolchain allows us to generate enums with eolian
for use by Eet and Emile (internal or otherwise non-eo libraries).

Thanks to how BUILT_SOURCES works, the eo.h files required by Emile
will be generated before they are used.

This adds a partial dependency on eo for eet and emile:
 - package dependency
 - include dependency

There is no library link dependency.

8 years agoEvas.Image: Move data_set/get to legacy file
Jean-Philippe Andre [Fri, 18 Mar 2016 05:50:54 +0000 (14:50 +0900)]
Evas.Image: Move data_set/get to legacy file

Those functions will be replaced by map/unmap

8 years agoEvas 3d: Hide warning with clang
Jean-Philippe Andre [Fri, 25 Mar 2016 08:51:17 +0000 (17:51 +0900)]
Evas 3d: Hide warning with clang

An otherwise good looking macro triggers a warning with clang,
because of self comparison of constants (always true or always
false). Let's just silence the warning in this specific spot
with a pragma.

8 years agoedje_cc: support hexadecimal color code
Jee-Yong Um [Mon, 28 Mar 2016 06:36:41 +0000 (15:36 +0900)]
edje_cc: support hexadecimal color code

Summary:
Support hexadecimal color code in EDC.

Four types of color code are acceptable.
All values below mean 'Red'. (255 0 0 255)
   color: "#F00";
   color: "#F00F";
   color: "#FF0000";
   color: "#FF0000FF";

Color code tables are usually provided with hexadecimal numbers.
Supporting hexadecimal color code will allow developers to skip
manual conversion hex to decimal.

Test Plan: Test case will provided with seperated commit.

Reviewers: cedric, jpeg, raster

Reviewed By: raster

Subscribers: raster

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

8 years agoefl elm build: fix pc file requirements to be correctly named
Carsten Haitzler (Rasterman) [Sat, 26 Mar 2016 02:19:45 +0000 (11:19 +0900)]
efl elm build: fix pc file requirements to be correctly named

this fixes ecore_drm, ecore_fb and ecore_wl2 requirements to be right
have a - instead of an _.

8 years agoFix installation of elementary objects
Daniel Zaoui [Mon, 28 Mar 2016 05:31:23 +0000 (08:31 +0300)]
Fix installation of elementary objects

The path was wrong.

8 years agoelementary: fix installation of cmake config files
Yakov Goldberg [Sun, 27 Mar 2016 12:01:21 +0000 (15:01 +0300)]
elementary: fix installation of cmake config files

8 years agoTest/Clock: fit Exactness requirements
Daniel Zaoui [Sun, 27 Mar 2016 10:25:09 +0000 (13:25 +0300)]
Test/Clock: fit Exactness requirements

The clock is directly set in edit mode, so the clock can't progress and
confuse Exactness scenario.

8 years agoClock: adapt test to fit Exactness requirements
Daniel Zaoui [Sun, 27 Mar 2016 08:40:44 +0000 (11:40 +0300)]
Clock: adapt test to fit Exactness requirements

Exactness doesn't support mouse clicks pausing/resuming the clock.
Taken shots are not stable and display a different time.

8 years agoevas sw render: cutout rects may be used in multiple threads
Carsten Haitzler (Rasterman) [Sat, 26 Mar 2016 01:49:20 +0000 (10:49 +0900)]
evas sw render: cutout rects may be used in multiple threads

several draw funcs keep a static Cutout_Rect *rects = NULL; variable
to cache cutout rects to avoid re-allocating them a lot etc. this is
fast and handy but we may use these from multiple threads. thats bad
.... mmmkay. so this fixes it the dirty way - makes them thread local.
:)

this fixes T3348 - the crash mentioned by @zmike

@fix