Tom Hacohen [Wed, 24 Aug 2016 10:14:57 +0000 (11:14 +0100)]
Static deps unibreak: Update to latest git version.
This version reduces the number of dirty pages used by libunibreak.
Reference git hash:
ad5a524b0128eec644a8cae52fb75ed1f597c0ee
@feature
Simon Lees [Wed, 24 Aug 2016 09:08:03 +0000 (18:38 +0930)]
Fix elementary build when xkbcommon is in a non standard location
@fixes T4413
Jean-Philippe Andre [Wed, 24 Aug 2016 05:12:47 +0000 (14:12 +0900)]
evas: Fix includes when enabling BETA but not EO API
This fixes the build for older versions of E.
Jean-Philippe Andre [Wed, 24 Aug 2016 05:40:20 +0000 (14:40 +0900)]
ecore_x: Early check image bpp based on depth
This fixes argb windows transparency in E software compositor.
My current problem is that I have no idea what changed, why this
is needed now, and how things could actually work before.
Fixes T4389
@fix
Carsten Haitzler (Rasterman) [Wed, 24 Aug 2016 01:00:50 +0000 (10:00 +0900)]
efreet - convert crash into NULL mimes when no mime db found
so ok - efreet crashed letting you know you have a missing mimedb...
return NULL instead fixes T4425 :) - rememebr to kill your efreetd's
to get a new mimedb - log out and in will do that.
Gustavo Sverzut Barbieri [Wed, 24 Aug 2016 00:27:45 +0000 (21:27 -0300)]
efl_io_queue_example: use eina_slice_endswith().
make the code more readable and clear. Also document when the line may
miss a trailing line delimiter in the slice.
Gustavo Sverzut Barbieri [Wed, 24 Aug 2016 00:25:02 +0000 (21:25 -0300)]
eina_slice: startswith and endswith.
these helpers around memcmp() make the code more readable.
Gustavo Sverzut Barbieri [Tue, 23 Aug 2016 23:03:10 +0000 (20:03 -0300)]
efl_io_queue: basic class to interact with Efl.Io interfaces.
The use of low-level interfaces such as Efl.Io.Reader and
Efl.Io.Writer are not that user-friendly as they can handle partial
data.
Classes such as Efl.Io.Copier makes them easy to use, but they need a
reader (source) or writer (destination) and in our examples we used
fixed buffers or some existing streams (stdin/stdout/stderr,
networking...).
However, if interactively we need to produce some data to be sent,
such as implementing some networking protocols, we'd have to write our
own Efl.Io.Reader and Efl.Io.Writer classes to handle the buffering.
Not anymore! With Efl.Io.Queue you can write stuff to it and it will
buffer to memory. Once stuff is read, it will automatically remove
those bytes from buffer.
Gustavo Sverzut Barbieri [Tue, 23 Aug 2016 22:59:24 +0000 (19:59 -0300)]
efl_io_copier_example: set loop as parent for Efl.Net.Dialer.Tcp
although it was working, the correct way is to set a loop provider as
Efl.Net.Dialer.Tcp object.
Gustavo Sverzut Barbieri [Tue, 23 Aug 2016 23:01:01 +0000 (20:01 -0300)]
efl_io_buffer: do not refer to sub-classes in its docs.
depending on the order of generation eolian was triggering some
errors. So stop refering to subclasses here.
Gustavo Sverzut Barbieri [Tue, 23 Aug 2016 16:43:54 +0000 (13:43 -0300)]
efl.io.buffer: minor bugfix.
if no limit was set, do not resize buffer to 0.
Gustavo Sverzut Barbieri [Tue, 23 Aug 2016 21:41:20 +0000 (18:41 -0300)]
eina_slice: fix multi-byte find function, add tests.
Derek Foreman [Tue, 23 Aug 2016 17:16:09 +0000 (12:16 -0500)]
wayland_egl: Destroy gl context if engine info updated with NULL wl_surface
We set the wayland surface to NULL in engine info, then destroy the wayland
surface later. The GL stack tries to render to the destroyed surface and
dies.
If we destroy the GL surface when we set the engine info (before we destroy
the wayland surface)it stops the GL stack from doing bad wayland calls.
This fixes a crash on exit, or when any window closes when using mali GL
drivers. Surprisingly, Mesa was tolerant of this.
Jean Guyomarc'h [Tue, 23 Aug 2016 15:46:45 +0000 (17:46 +0200)]
eina: remove references to win32 and winCE in threads
Jean Guyomarc'h [Tue, 23 Aug 2016 15:42:57 +0000 (17:42 +0200)]
autotools: remove win32 threads artifacts
Commit
2cb0c1cadc46e1d89fea4e27399b36ce9f1526ff removed
the use _efl_have_win32_threads, but some traces of it
were left.
Jean Guyomarc'h [Tue, 23 Aug 2016 14:59:10 +0000 (16:59 +0200)]
eina: fixtures on OSX semaphores
So actually there is quite a big issue with semaphores
on OSX. We use (named) POSIX semaphores, but this was
a (my) mistake... I'll fix it later...
The real issue is that named semaphore are persistants:
when the program dies, it stays alive. This is pretty
bad with eina_debug_monitor because we create a semaphore
we never release, due to a wild thread...
This leak of semaphores went unnoticed before commit
4a40ff95defa5fa7e6164459c50e674b53cddaf4 because the
name of the semaphore was unique per process, and
overriden when another process was launched. This
was very bad, but saved us from overflowing the
semaphore pool. It is now overflowed pretty fast when
building a lot EFL, because of Eolian that runs A LOT!
So that's one problem that still needs to be fixed,
by using OSX' own semaphores (see T4423).
Another big issue, which is now fixed is that the
buffer in which we generated the semaphore ID was
too small, and therefore we were reduced to one shared
semaphore for a whole process... This buffer has been
now set to 31 characters, which seems to be the maximum
length of a semaphore ID.
So now things are better, but still with a deadly issue.
Jean Guyomarc'h [Tue, 23 Aug 2016 14:51:54 +0000 (16:51 +0200)]
evas: handle thread queue creation failure
eina_thread_queue_create() might fail.
Actually it does fail on Mac OS X under
some circumstances.
Jean Guyomarc'h [Tue, 23 Aug 2016 14:31:24 +0000 (16:31 +0200)]
eina: fix eina_btlog for older osx versions
Older Mac OS X deprecated the default atos.
This patch adds support for Mavericks (and
maybe Yosemite as well).
Jean Guyomarc'h [Tue, 23 Aug 2016 11:51:14 +0000 (13:51 +0200)]
ecore_con: use F_CLOEXEC instead of SOCK_CLOEXEC
Mac OS X does not provide SOCK_CLOEXEC. Instead, we can use
fcntl() with F_CLOEXEC.
Fixes Mac OS X build.
Jean Guyomarc'h [Tue, 23 Aug 2016 09:32:21 +0000 (11:32 +0200)]
ecore_con: fix compiling on OSX and BSD
TCP_CORK is Linux only. TCP_NOPUSH is supposed to
do the same thing than TCP_CORK, but on BSD (including
Mac OS X).
We now check for the existance of TCP_CORK or TCP_NOPUSH,
and use the right option. If none exist, cork_{set,get}
will just fail.
Jean Guyomarc'h [Tue, 23 Aug 2016 09:31:52 +0000 (11:31 +0200)]
autotools: add macro to easily check for defines in headers
Dave Andreoli [Tue, 23 Aug 2016 17:04:25 +0000 (19:04 +0200)]
FDO icons: correctly list the intl icons in theme description file
@fix
Gustavo Sverzut Barbieri [Tue, 23 Aug 2016 14:58:19 +0000 (11:58 -0300)]
examples: add efl_io_copier_simple_example.c
a simpler example to be listed in wiki.
Tom Hacohen [Tue, 23 Aug 2016 13:47:36 +0000 (14:47 +0100)]
Efl object: Remove creation of event structure and passing it to eo.
This was never used and will probably never be used. It was just wasting
memory and making things more complicated.
Just to give some more concrete numbers, this change alone reduced the
number of dirty pages used by elementary by two. So quite significant.
BREAKS ABI
@feature
Tom Hacohen [Tue, 23 Aug 2016 13:42:09 +0000 (14:42 +0100)]
Eolian: Fix tests according to recent eolian changes.
Daniel Kolesa [Tue, 23 Aug 2016 13:04:45 +0000 (14:04 +0100)]
eolian gen: don't generate events in eo.c
Tom Hacohen [Tue, 23 Aug 2016 13:11:38 +0000 (14:11 +0100)]
Efl object: Don't pass events to eo class creation.
This was never used and there is no plan to ever use it. I'm going to
soon add a different mechanism with which it will be possible to provide
them again to Eo if ever needed without breaking ABI. Though it's
unlikely it will ever be.
Gustavo Sverzut Barbieri [Tue, 23 Aug 2016 13:12:47 +0000 (10:12 -0300)]
remove EINA_ERROR_TIMEOUT
As pointed out in the mailing list, it was introduced in this release,
so it's better to remove the symbol instead of deprecating it.
People should use ETIMEDOUT directly.
Daniel Kolesa [Tue, 23 Aug 2016 12:43:46 +0000 (13:43 +0100)]
eolian: enforce no get/set as method/property name rule
Fixes T3849.
Daniel Kolesa [Tue, 23 Aug 2016 11:06:28 +0000 (12:06 +0100)]
eolian gen: include return type in event docs
Fixes T4393.
Jihoon Kim [Tue, 23 Aug 2016 08:11:01 +0000 (17:11 +0900)]
elm_entry: Add more description about key event in return_key_type_set
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
Jihoon Kim [Tue, 23 Aug 2016 08:09:37 +0000 (17:09 +0900)]
ecore_imf: Add more description about key event in return_key_type_set
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
Jihoon Kim [Tue, 23 Aug 2016 05:54:27 +0000 (14:54 +0900)]
elput: Fix typo in doxygen
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
Carsten Haitzler (Rasterman) [Tue, 23 Aug 2016 02:59:37 +0000 (11:59 +0900)]
efreet - save about 240-300k or so of memory used by efreet mime
so efreet mime was loading a bunch of mime type info files, parsing
them on startup and allocating memory to store all this mime info -
globs, mimetype strings and more. all a big waste of memory as its
allocated on the heap per process where its the SAME data files loaded
every time.
so make an efreet mime cache file and a tool to create it from mime
files. mmap this file with all the hashes/strings in it so all that
data is mmaped once in memory and shared between all processes and it
is only paged in on demand - as actually read/needed so if your
process doesnt need to know about mime stuff.. it wont touch it anyway.
this saves about 240-300k or so of memory in my tests. this has not
covered the mime MAGIC files which still consume memory and are on the
heap. this is more complex so it will take more time to come up with a
nice file format for the data that is nicely mmaped etc.
@optimize
Carsten Haitzler (Rasterman) [Mon, 22 Aug 2016 02:16:33 +0000 (11:16 +0900)]
efreet - fix efreet_*_dir_get() to support the xdg env vars
these api's didnt respect the env vars xdg dictates should override
the xdg dirs for that process. this fixes this and uses them if set
@fix
Gustavo Sverzut Barbieri [Mon, 22 Aug 2016 22:24:13 +0000 (19:24 -0300)]
fixup: http
Gustavo Sverzut Barbieri [Mon, 22 Aug 2016 21:51:38 +0000 (18:51 -0300)]
fixup: http
Gustavo Sverzut Barbieri [Mon, 22 Aug 2016 21:51:19 +0000 (18:51 -0300)]
fixup: efl-net
Gustavo Sverzut Barbieri [Sat, 20 Aug 2016 03:55:26 +0000 (00:55 -0300)]
WIP: efl.net: Introduce Efl.Net.Dialer.Http
This class implements the Efl.Net.Dialer interface using libcurl to
perform HTTP requests. That means it's an Efl.Net.Dialer,
Efl.Net.Socket, Efl.Io.Reader, Efl.Io.Writer and Efl.Io.Closer, thus
being usable with Efl.Io.Copier as demonstrated in the
efl_io_copier_example.c
Gustavo Sverzut Barbieri [Thu, 18 Aug 2016 04:53:16 +0000 (01:53 -0300)]
efl.net: socket, server and dialer for TCP.
Efl.Net.Server defines how to accept new connections, doing the
bind(), listen() and accept() for protocols such as TCP.
Efl.Net.Dialer defines to to reach a server.
Both are based on Efl.Net.Socket as communication interface that is
based on Efl.Io.Reader, Efl.Io.Writer and Efl.Io.Closer, thus being
usable with code such as Efl.Io.Copier.
The Server will emit an event "client,add" with the established
Socket, which is a child and can be closed by both the server or the
user.
The Dialer extends the Socket and allows for creating one given an
address, that will be resolved and connected.
TCP is the initial implementation so we an validate the
interfaces. UDP, Unix-Local and SSL will come later as derivate
classes.
The examples are documented and should cover the basic principles:
- efl_io_copier_example can accept "tcp://IP:PORT" and will work as a
"netcat", can send data from socket, file or stdin to a socket,
file, stdout or stderr.
- efl_net_server_example listens for connections and can either reply
"Hello World!" and take some data or work as an echo-server,
looping back all received data to the user.
More complex interactions that require a "chat" between client and
server will be covered with new classes later, such as a queue that
empties itself once data is read.
Gustavo Sverzut Barbieri [Sat, 13 Aug 2016 07:50:29 +0000 (04:50 -0300)]
efl.io: introduce basic interfaces and classes.
These interfaces allows generic operations on objects that can store
or provide data, such as a file or a buffer.
With well defined interfaces and events we can create code such as
Efl.Io.Copier, that will link a source with a destination and
progressively copy data as they appear.
Gustavo Sverzut Barbieri [Fri, 12 Aug 2016 21:55:37 +0000 (18:55 -0300)]
binbuf, strbuf and ustrbuf: add slice_get() and rw_slice_get().
Gustavo Sverzut Barbieri [Fri, 12 Aug 2016 21:54:26 +0000 (18:54 -0300)]
eina_stringshare: add slice_get()
Gustavo Sverzut Barbieri [Fri, 12 Aug 2016 20:08:38 +0000 (17:08 -0300)]
eina: introduce Eina_Slice and Eina_Rw_Slice.
A plain simple pointer + length describing a linear memory region.
Gustavo Sverzut Barbieri [Tue, 16 Aug 2016 16:11:12 +0000 (13:11 -0300)]
eina_types.eot: expose Eina.Binbuf
Gustavo Sverzut Barbieri [Thu, 4 Aug 2016 16:45:37 +0000 (13:45 -0300)]
eina_types.eot: expose Eina.Error
Gustavo Sverzut Barbieri [Mon, 22 Aug 2016 21:23:45 +0000 (18:23 -0300)]
eina_error: provide a fallback when strerror_r() is not available.
Prateek Thakur [Fri, 19 Aug 2016 23:12:41 +0000 (16:12 -0700)]
ecore_con: add '\0' termination to path.
Summary:
Copying from string 'buf' of length 4095 to '&socket_unix.sun_path[0]'
may form a non-terminated C string of size 108. So added null termination.
Signed-off-by: Prateek Thakur <prateek.th@samsung.com>
Reviewers: cedric, thiepha
Subscribers: jpeg
Differential Revision: https://phab.enlightenment.org/D4247
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Artem Popov [Fri, 19 Aug 2016 22:39:52 +0000 (15:39 -0700)]
ecore_evas_ews: add proper clean up when quit the func
@fix
Summary: add proper clean up when quit the func (as per Raster comment)
Reviewers: cedric, raster, jpeg, barbieri
Reviewed By: barbieri
Subscribers: raster, NikaWhite, myoungwoon, jpeg
Differential Revision: https://phab.enlightenment.org/D4175
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Jean Guyomarc'h [Mon, 22 Aug 2016 12:06:47 +0000 (14:06 +0200)]
eina: fix use of strerror_r()
So, first, the wrong strerror_r() was detected on
Mac OS X. Instead of using a complex set of macros
to try to detect which strerror_r() to use, when
it is defined, let the autotools handle that clerverness
for us.
Jean Guyomarc'h [Mon, 22 Aug 2016 12:44:43 +0000 (14:44 +0200)]
edje: fix warning raised by clang
Clang was not happy with the initialization of
the structure.
Jean Guyomarc'h [Mon, 22 Aug 2016 17:52:49 +0000 (19:52 +0200)]
evas-gl_cocoa: fix crashes at engine startup
Recently, the gl_cocoa engine started to crash at
startup. glGetIntegerv() in gl_common was called
without any gl context, and therefore segfaulted.
We now make sure it is called after a gl context
has been created and used.
Thanks jpeg for troubleshooting.
Fixes T4402
Derek Foreman [Mon, 22 Aug 2016 13:39:44 +0000 (08:39 -0500)]
evas_engines: Update remaining enges for damage_region_set callback
I missed several engines when I changed this.
Make sure they all build.
Marcel Hollerbach [Mon, 22 Aug 2016 07:22:34 +0000 (09:22 +0200)]
edje_cc: add snapshot to the lazedc symbols
there where comments and documentation about it, but no code.
This is some kind on follow up on
a7fd98f8f6d411c120e9c1c8ceeedbeb54d675a5.
@fix
Carsten Haitzler (Rasterman) [Sun, 21 Aug 2016 02:37:22 +0000 (11:37 +0900)]
edje - cut another 120k or so off memory usage by using direct hash add
so every collection we add to the eina has of collections... we just
did eina_hash_add - this isn't quite good. because we use eina_file
and mmap the edje file. we COULd use the strings straigh fromt he edje
filer dictionary and not actually allocate private heap memory - thus
sharing all those strings. this was silly, and this saves about
another 120k of memory with the default theme as it has about 1500 or
so collections in it... and these strings add up fast.
@optimize
Carsten Haitzler (Rasterman) [Sun, 21 Aug 2016 02:30:45 +0000 (11:30 +0900)]
edje - fix missing vector field frees, copies, handling etc.
it seems vector type parts were not handled all that well. we had at
least one mem leak with the vector mempool never being freed... so i
filled in various missing points where vector parts were not being
handled right.
@fix
Carsten Haitzler (Rasterman) [Sun, 21 Aug 2016 02:14:28 +0000 (11:14 +0900)]
edje - reduce anothr 400k or so of memory usage (esp hello world)
so edje was allocating 32 pointers per collection. this is per
collection inside an edje file even if we just use one collection from
that edje file. it consumes 32 pointers. on 64bit thats 256 bytes...
just for pointers to mempools so we can "optimize" freeing and
allocation of parts. this was simply rediculous. i moved it to a
sub-struct allocated on demand (so now only for collections we
actually use) and this nuked 400k of "base memory usage youcant get
rid of).
note that our current default theme has something like 1100 or so
images, 1500 or so collections in it. as theme gorws, memory footprint
goes up if we dont allocation only on demand (when needed/used) and we
aren't careful about the size of our data structs and their content.
@optimize
Dave Andreoli [Sat, 20 Aug 2016 13:13:45 +0000 (15:13 +0200)]
FDO icon theme: correct Inherits value
This should have been done this way from the start...my bad
@fix
Jean Guyomarc'h [Sat, 20 Aug 2016 12:03:15 +0000 (14:03 +0200)]
evas-engines: fix compiling of the fb engine
Build was broken after commit
0c21a926a322f810352a654b82455a41e85f06b2
which changed an internal API.
Derek Foreman [Fri, 19 Aug 2016 19:22:46 +0000 (14:22 -0500)]
wayland_egl: Fix EGL_KHR_Partial_Update usage
Use the new damage region set callback to do partial updates that actually
work. Fixes gl rendering on mali.
@fix
Derek Foreman [Fri, 19 Aug 2016 19:14:38 +0000 (14:14 -0500)]
engines: Add a damage_region_set callback
To properly implement EGL_KHR_partial_update we need to know the buffer
damage before any drawing operations take place. Add a new callback to
software_generic that takes place after combining of surface damage and
swap mode when we actually have this available.
Note: This means the three copy pasta implementations of
EGL_KHR_partial_update scattered around the tree are all wrong. bummer.
Derek Foreman [Fri, 19 Aug 2016 19:51:55 +0000 (14:51 -0500)]
wayland_shm: Fix dmabuf orientation
So apparently when dmabuf support went into weston it went in with a
Y axis inversion that has since been corrected.
This updates our code to match.
Cedric BAIL [Fri, 19 Aug 2016 17:17:15 +0000 (10:17 -0700)]
eina_cxx: change strings to match new returned system string.
Daniel Kolesa [Fri, 19 Aug 2016 13:39:37 +0000 (14:39 +0100)]
docs: generate reference pages for codelink
Daniel Kolesa [Fri, 19 Aug 2016 13:19:09 +0000 (14:19 +0100)]
docs: generate keyword-link.txt for codelink
Daniel Kolesa [Fri, 19 Aug 2016 12:59:42 +0000 (13:59 +0100)]
docs: fix invalid links in class reference table
Jean-Philippe Andre [Fri, 19 Aug 2016 06:07:37 +0000 (15:07 +0900)]
elm: Install elm test images in the right place
This moves g_layer images to their folder.
Some kind of dark magic managed to install the base images
in the proper folder already.
This fixes elementary_test -to "Gesture Layer 2"
@fix
jiin.moon [Fri, 19 Aug 2016 03:09:31 +0000 (12:09 +0900)]
emile: fix jpeg loader broken with orientation
Summary:
After applying a patch regarding region, side-effect detected.
Fixes T4390
Test Plan: make check
Reviewers: jpeg, cedric, jypark
Maniphest Tasks: T4390
Differential Revision: https://phab.enlightenment.org/D4245
Carsten Haitzler (Rasterman) [Fri, 19 Aug 2016 02:48:29 +0000 (11:48 +0900)]
efreetd - only open log file is env var is set to do so
set EFREETD_LOG to something to get efreetd to log. otherwise efretd
log files can end up rather larth and since they go in xdg_runtimedir
- thats mostly a ramdisk... they eat actual ram. so save a lot of
memory and only log if asked to.
@fix
Carsten Haitzler (Rasterman) [Fri, 19 Aug 2016 02:04:50 +0000 (11:04 +0900)]
evas software downscaler - get about 1.8x to 3x speedups for cases
this speeds up downscaling of images by somewhere between 1.8 to 3x
dpeending on case and cpu etc. - this is ONLY for downscaling of an
image buffer betweeb 50% width and/or height up to 100% of width and
height. it's a special case optimization that cuts down the complexity
of the full super sampling filter to just do a bilinear interpolation
which is actually strictly correct for this size range and shouldn't
drop quality. it uses fixed point (16.16) to do the sup pixel sampling.
no mmx/asse or neon, but we could actually easily use it as we do use
mmx/ee and neon in the bilinear upscaler to do interpolation so this
would work here too. it just requires time and effort to make yet 2x
more special cases and use the ASM to do the hard slog here.
@optimize
Gustavo Sverzut Barbieri [Thu, 18 Aug 2016 16:36:05 +0000 (13:36 -0300)]
eina_error: allow errno.h codes.
we have some duplication of errors between Eina_Error and errno.h,
however we should use Eina_Error to extend the traditional errno.h
system.
then change eina_error_msg_register() and
eina_error_msg_static_register() to return a magic bit to state the
number was registered, and on other functions test this bit in order
to operate on registered values, otherwise fallback to errno.h, such
as strerror().
It also deprecates 2 clear duplicated errors:
- EINA_ERROR_OUT_OF_MEMORY -> ENOMEM
- EINA_ERROR_TIMEOUT -> ETIMEDOUT
There are two details when using strerror():
- old behavior did not return strings for non-error, such as
"Success" or "Unknown error ${N}"
- thread-safety issues: since we must be thread safe, then use
strerror_r() and eina_stringshare_add() that value, keeping a hash
of cached values
Daniel Kolesa [Thu, 18 Aug 2016 14:12:24 +0000 (15:12 +0100)]
docs: add include flag verification
Daniel Kolesa [Thu, 18 Aug 2016 13:50:24 +0000 (14:50 +0100)]
docs: add writer support for include plugin
Youngbok Shin [Thu, 18 Aug 2016 11:39:40 +0000 (14:39 +0300)]
Evas text: fix RTL text ellipsis issues
Summary:
Visual position of ellipsis item should be set according to
its bidi direction. But, by setting visual position in same way
as logical position, the end ellipsis could be put opposite side.
Also, start ellipsis must placed on left side of RTL text.
@fix T3187
Test Plan: Test an sample on T3187
Reviewers: tasn, woohyun, herdsman
Subscribers: raster, Blackmole, z-wony, cedric, jpeg, minudf
Maniphest Tasks: T3187
Differential Revision: https://phab.enlightenment.org/D3769
Youngbok Shin [Thu, 18 Aug 2016 11:09:16 +0000 (14:09 +0300)]
Elementary: Load image for image item with proper orientation
Summary:
Image files can have orientation information. Elm Entry have to
call evas_object_image_load_orientation_set() for showing image
with proper orientation.
Test Plan: N/A
Reviewers: herdsman, raster, jpeg
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D4244
Youngbok Shin [Thu, 18 Aug 2016 10:33:08 +0000 (13:33 +0300)]
Evas Text: parse font string everytime for updating lang properly
Summary:
We can't assume the given font is same with current fdesc by comparing string.
Since Evas starts to supporting "auto" for language,
the given font string should be parsed once before comparing it.
@fix
Test Plan: N/A
Reviewers: tasn, raster, cedric, herdsman
Subscribers: jpeg, minudf, z-wony, Blackmole, woohyun
Differential Revision: https://phab.enlightenment.org/D4227
Carsten Haitzler (Rasterman) [Thu, 18 Aug 2016 05:19:25 +0000 (14:19 +0900)]
ejde - fix recalc single min n edje for h eval
this fixes a seemingly small typo that would only turn up with fixed
point, but not floats as we have by default whwere we had
x = 999;
instead of
x = FROM_INT(999);
shouldn't be visibule unless you disable float support and use fixed
point in edje.
Carsten Haitzler (Rasterman) [Thu, 18 Aug 2016 05:18:06 +0000 (14:18 +0900)]
edje - solve crash issues brought on by optimization of edje mem usage
this solves a crash brought on by
1d6a58cfc9f3bbe821eb04150e2b1e0ede7b32eb
that optimized mem usage but seems to have created issues in empc.
fixes T4382
Gustavo Sverzut Barbieri [Thu, 18 Aug 2016 04:01:25 +0000 (01:01 -0300)]
efl_loop_user: error if parent is not a loop provider.
it was silently ignoring the parent, which led me to hours trying to
investigate why my code wasn't working just to realize my parent
wasn't being assigned and refcounts were screwed.
Gustavo Sverzut Barbieri [Wed, 17 Aug 2016 00:41:26 +0000 (21:41 -0300)]
eolian: gracefully handle incorrect case of inherit.
If you use "EFl" instead of "Efl", it will find the proper file, but
won't find the type... crashing.
Handle that case and hint the user about it.
Jihoon Kim [Thu, 18 Aug 2016 01:40:24 +0000 (10:40 +0900)]
edje_entry: Make a result of retrieve_surrounding_cb secure
Summary:
Regardless of the password mode of Entry,
_edje_entry_imf_retrieve_surrounding_cb alwalys passes plain_text
to any callers who register that callback.
This commit replace plain text with '*'
because current behavior could be a security hole in some case.
Reviewers: woohyun, id213sin, jihoon
Reviewed By: jihoon
Subscribers: cedric, jsuya, z-wony, jpeg
Differential Revision: https://phab.enlightenment.org/D4238
Lauro Moura [Wed, 17 Aug 2016 23:53:56 +0000 (20:53 -0300)]
eolian_cxx: Fix behavior with explicit void return
Only perform the single value/return type substitution on properties if the
void return type is implicit (i.e. NULL return from function_return_type_get),
following the eolian-C implementation as we use the generated headers.
Also update example after Eo-Efl changes.
Derek Foreman [Wed, 17 Aug 2016 21:22:54 +0000 (16:22 -0500)]
wayland_egl: Fix rendering on systems without buffer age
If buffer age isn't present we really want to return MODE_FULL, but we were
previously returning MODE_AUTO.
On recent mali drivers this resulted in accidental partial updates leading
to incorrect rendering.
Derek Foreman [Wed, 17 Aug 2016 21:21:29 +0000 (16:21 -0500)]
wayland_egl: Remove swap_mode from engine info
This was never set anywhere and always defaulted to 0, or AUTO
Stefan Schmidt [Wed, 17 Aug 2016 12:37:56 +0000 (14:37 +0200)]
examples: evas: ensure filter example lua files land in tarball
These are needed for a make doc run and have been missing the tarball before.
@fix
Stefan Schmidt [Wed, 17 Aug 2016 12:35:15 +0000 (14:35 +0200)]
doc: put shot.sh into dist to allow make doc run from tarball
This was missing in the release tarballs before breaking a make doc run from
them.
@fix
Daniel Kolesa [Wed, 17 Aug 2016 12:50:01 +0000 (13:50 +0100)]
docs: move all of serializers to doctree
Daniel Kolesa [Wed, 17 Aug 2016 12:42:29 +0000 (13:42 +0100)]
docs: move type serializer into doctree
Daniel Kolesa [Wed, 17 Aug 2016 12:34:20 +0000 (13:34 +0100)]
docs: move type cstr retrieval to doctree
Tom Hacohen [Wed, 17 Aug 2016 10:24:48 +0000 (11:24 +0100)]
Efl Object: Make event description arrays const.
This was an oversight. They should have been const arrays, and not just arrays
of pointers to const items.
Minkyoung Kim [Wed, 17 Aug 2016 08:50:18 +0000 (17:50 +0900)]
evas/gl_x11 : Add multiple_buffer member in native surface x11 type union.
Summary:
If native surface is multiple buffer pixmap such as named pixmap, Evas should recreate eglImage everyframe.
Because DDK get the buffer ID once at eglImageCreate time.
So if internal buffer ID is changed, should recreate eglImage.
Test Plan: Wearable Tizen.
Reviewers: wonsik, raster, cedric, jpeg
Reviewed By: jpeg
Subscribers: spacegrapher, dkdk, cedric
Differential Revision: https://phab.enlightenment.org/D4211
Jean-Philippe Andre [Wed, 17 Aug 2016 08:21:33 +0000 (17:21 +0900)]
evas: Fix BMP load with region set and scale down
This fixes usage of photocam on large BMP images.
Follows previous commits by @jiin.moon.
Jean-Philippe Andre [Wed, 17 Aug 2016 07:45:16 +0000 (16:45 +0900)]
evas: Fix region test in jpeg load with region + zoom
The previous commit exposed an issue with the region test
does not take into account the scale down factor.
Not a @fix in itself, as it depends on the previous patch.
jiin.moon [Wed, 17 Aug 2016 07:39:13 +0000 (16:39 +0900)]
emile: region_set does not working in jpeg loader if scale_down has set
Summary:
If both region and scale_down has set, ERR would be returned by loader of jpeg.
@fix
Test Plan: sample code
Reviewers: raster, jypark, cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4200
Jean-Philippe Andre [Wed, 17 Aug 2016 07:23:16 +0000 (16:23 +0900)]
photocam: Fix region load + scale down options
I have no idea how photocam even worked before. @jiin.moon
exposed a major issue in photocam by fixing how the jpg loader
scale down + region load combination works.
@fix
jiin.moon [Wed, 17 Aug 2016 07:07:22 +0000 (16:07 +0900)]
evas: Add support for region load with PNG files
Summary:
PNG loader support region_set when decoding
@feature
Reviewers: cedric, jpeg, jypark, raster
Subscribers: raster
Differential Revision: https://phab.enlightenment.org/D4165
jiin.moon [Wed, 17 Aug 2016 07:06:05 +0000 (16:06 +0900)]
evas: Support region_set for BMP image
Summary:
1) BMP loader support region decoding.
@feature
2) Fix an issue what BMP loader can't decode an 16bit image with bit field
@fix
Test Plan: attached sample codes
Reviewers: cedric, jpeg, jypark
Differential Revision: https://phab.enlightenment.org/D4228
Stefan Schmidt [Tue, 16 Aug 2016 15:05:04 +0000 (17:05 +0200)]
evas: mark unused function parameter as such
Jean-Philippe Andre [Wed, 17 Aug 2016 05:37:50 +0000 (14:37 +0900)]
evas: Fix hold events
This fixes a crash with thumbscroll.
Fixes https://phab.enlightenment.org/T4378
Jean-Philippe Andre [Wed, 17 Aug 2016 04:08:03 +0000 (13:08 +0900)]
evas: Fix mouse inputs when also listening to multi
Since the new event type is the same for multi and single
touch (finger id is the only difference), multi touch listeners
would get triggered even for single mouse events.
Fixes https://phab.enlightenment.org/T4345
Fixes https://phab.enlightenment.org/T4378
This raises a question though: How do we want to differentiate
between single & multi touch events in the eo interfaces?