Commit Graph

46686 Commits

Author SHA1 Message Date
Carsten Haitzler f56e33f429 evas - gif loader - be a little more optimal in pixel lookups on decode 2016-04-02 13:32:36 +09:00
Carsten Haitzler dd90b6afad evas: gif loader - fix out of bounds access on cmap of invalid pixels
if gif has example 4 colors in colormap, pixels provided still can
hold values higher than 3 (4, 8, 255 etc.) ass a pixel is still a
byte. it should not, but it could. technically it'd be nice for gitlib
to pad its palette out to 256 entires to ensure this cant be a
problem, but it doesn't have to , so make a local copy of the cmap
when decoding pixels and pad out to 256 entires (using color 0 as any
value > pallette ize is invalid anyway so any color will do).

this fixes a possible security attack vector in reading memory out of
bounds of an allocated array. not very far out of bounds - but enough
to cause a crash - ie a dos attack, (not to inject code though).

@fix
2016-04-02 13:32:28 +09:00
Cedric BAIL 8330c20868 elementary: install elementary cxx pkgconfig file.
T3397
2016-04-01 13:55:11 -07:00
Cedric BAIL cf81840db5 elementary: install desktop files in the correct directory.
Fix for T3397.
2016-04-01 13:55:11 -07:00
Mike Blumenkrantz 56fcdd5150 theme: fix a bunch of the fixed: X Y edje errors 2016-04-01 16:22:45 -04:00
Mike Blumenkrantz c854b91c5a ecore-drm: do not attempt to destroy sprite outputs which have never repainted
silences a surprisingly large number of errors on shutdown

@fix
2016-04-01 15:55:41 -04:00
Chris Michael 5713463ff3 ecore-wl2: Enable releasing keyboard, pointer, and touch if supported
This removes a fixme where we were not using wl_(pointer, keyboard,
touch)_release functions as they rely on newer versions of the wayland
protocol. As we now rely on 1.10 of wayland, these can be enabled now.

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-01 12:22:02 -04:00
Stefan Schmidt dac047a5fc ecore_timer: remove redundancy in property docs
Streamline this a bit to document the property itself and only extra information
the the methods if needed.
2016-04-01 15:40:01 +02:00
Stefan Schmidt 1a4674dfc8 ecore_timer: document properties
Make sure that we actually document the property itself and not only the
property methods.
2016-04-01 15:03:46 +02:00
Chris Michael e84b2e50f7 evas-software-generic: remove native.func.data variable and data argument of native calblacks.
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.

ref f10672dd74

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-01 07:56:54 -04:00
Chris Michael 2035931ba7 ecore-wl2: Move structures above functions
NB: This is just a cosmetic issue, no functional changes

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-01 07:34:43 -04:00
Derek Foreman c67f50b40a evas-wayland-egl: Add www protocol handling to wayland-egl engine
Use the new post-processing API and www extension to implement
CSS effects for wayland-egl applications.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Signed-off-by: Mike Blumenkrantz <zmike@osg.samsung.com>
2016-04-01 06:49:50 -04:00
Derek Foreman 0f7f4b6de0 gl_common: Add API for redirecting render to texture
New API allows a context to be redirected to texture.  When rendering is
complete the texture can be unbound from the frame buffer and used for
post-processing effects.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Signed-off-by: Mike Blumenkrantz <zmike@osg.samsung.com>
2016-04-01 06:49:50 -04:00
Mike Blumenkrantz 17bb2d60ca ecore_evas wayland: store relevant www data in engine info
this accumulates all data relevant to client-side www into
the Evas_Engine_Info_Wayland_Egl struct so the client can react to it.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
2016-04-01 06:49:49 -04:00
Mike Blumenkrantz afd083788b ecore-evas wayland: use www protocol when available
handle www protocol events and store the provided data into engine data

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
2016-04-01 06:49:49 -04:00
Mike Blumenkrantz eb1a422d63 ecore_wl2: implement www extension for client-side use
handling for global binding and signal prop

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
2016-04-01 06:49:49 -04:00
Carsten Haitzler b132ce65ec evas - fix leak because cutouts_fre .. doesnt free - it just resets to 0
this works with 7166e6b859 and fixes a
leak added because ... free does not free!
evas_common_draw_context_cutouts_real_free(0 now actually frees the
rects, but evas_common_draw_context_cutouts_free() before did not.

@fix (follow on from 7166e6b859)
2016-04-01 17:54:37 +09:00
Ji-Youn Park e438bd09b2 Elm_image: remove object_get from eo and object_size_get to view.size.get
remove elm_image_object_get frome eo.
    change elm_image_object_size_get to efl_gfx_view_size_get
2016-04-01 17:19:14 +08:30
SangHyeon Lee c0bbf53cb9 support elm_object_item_style_set/get on genlist items 2016-04-01 16:53:57 +09:00
SangHyeon Lee fc2f341e41 fix item_class refcount bug when class updated 2016-04-01 16:40:16 +09:00
SangHyeon Lee e8c3346379 fix genlist content leak in reausable case 2016-04-01 16:26:57 +09:00
Ji-Youn Park 1dc9741d0f Elm_image: remove Elm_Image_Orient and orient property from EO. 2016-04-01 14:42:01 +08:30
Ji-Youn Park 66b9884ab3 Elm_image: move preload_disabled API from eo to legacy. 2016-04-01 14:36:58 +08:30
Ji-Youn Park 5be49ace8f Elm_image: remove elm_image_fill_outside_get
This api will be removed.
   elm_image_fill_outside_get is same as !elm_image_fill_inside_get.
   elm_image_fill_outside_set function is too.
2016-04-01 14:14:51 +08:30
Jean-Philippe Andre 78bb21a2d9 Eolian: Mark all EO class_get() as weak
This follows the previous commit for the same reasons.
2016-04-01 12:09:06 +09:00
Jean-Philippe Andre a1a506e13e Eo: Mark all Eo APIs as weak
This marks all EOAPI functions with GCC weak attribute.
This allows two things:
- replace functions
- link at runtime and check if functions exist

The purpose of this patch is to exploit these two features
of weak symbols. The first goal is to allow applications
to build binaries against later versions and run on earlier
versions of EFL without any run-time link error. Those errors
simply prevent applications to even start if they were using
any function that's not present in the old version of EFL.

Now all that needs to be done on the application side is to
do either of:
- if (efl_version > xx) { call_weak_symbol() }
- if (call_weak_symbol) { call_weak_symbol() }

In the future, we can also imagine providing a compatibility
library that would replace EFL's internal APIs with a newer
version. This would let apps use new EFLs on platforms that
don't update fast enough.

I am now pushing this patch as an experiment to see what breaks,
but I expect no problem.

@feature
2016-04-01 12:09:06 +09:00
Minkyoung Kim f10672dd74 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
2016-04-01 12:09:06 +09:00
Cedric Bail 998adbb312 Revert "po: disable edje_external files from elementary until they are integrated"
This reverts commit 5517a23cde.

edje_external are back in, so this is not needed anymore.
2016-03-31 19:45:26 -07:00
Cedric Bail 78475cc87e elementary: add edje_external back in. 2016-03-31 19:45:26 -07:00
Carsten Haitzler 7166e6b859 evas sw render: fix previous thread fix to be portable
this fixes the fix 4d6a8a7fce 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
2016-04-01 11:29:50 +09:00
Carsten Haitzler 13ecefe670 Revert "XXX - reword me when done"
This reverts commit bc23814614.
2016-04-01 09:58:02 +09:00
Carsten Haitzler e446fcc2db Revert "XXX"
This reverts commit 5e9d838e60.
2016-04-01 09:58:02 +09:00
Carsten Haitzler 4dee873ab6 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
2016-04-01 08:57:09 +09:00
Carsten Haitzler 5e9d838e60 XXX 2016-04-01 08:57:09 +09:00
Carsten Haitzler bc23814614 XXX - reword me when done 2016-04-01 08:57:09 +09:00
Jean Guyomarc'h 66baee9af0 elementary: fix internal dependencies
Ecore_Cocoa was not handled properly.
2016-04-01 00:08:59 +02:00
Stefan Schmidt 5517a23cde 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.
2016-03-31 20:11:59 +02:00
Mike Blumenkrantz bcad71f4fa 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 9281fb5537

@fix
2016-03-31 13:28:50 -04:00
Stefan Schmidt 0a03e63350 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
2016-03-31 16:29:32 +02:00
Jihoon Kim 0876135260 edje entry: fix bug not to call ecore_imf_context_cursor_position_set when deleteing surrounding text 2016-03-31 11:34:01 +09:00
Cedric BAIL 71482d63ba 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...
2016-03-30 15:55:06 -07:00
Cedric BAIL 196455c7a3 elementary: add config back in. 2016-03-30 14:15:15 -07:00
Andrii Kroitor 1f4c7f171b 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>
2016-03-30 14:15:15 -07:00
Mike Blumenkrantz a6924ced9d wayland: add comment for ref T3396 2016-03-30 16:00:10 -04:00
Mike Blumenkrantz 18cbf953d6 Revert "theme: undo recent changes to elm window border shadow_spacer part"
This reverts commit aaf8b86179.

it turns out that this was irrelevant and there was some less-than-competent
engine code trying to manhandle surface sizes
2016-03-30 15:45:06 -04:00
Mike Blumenkrantz f70649a13d 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
2016-03-30 15:42:21 -04:00
Cedric BAIL ac64e26b2d elementary: cleanup module generated files. 2016-03-30 11:05:00 -07:00
Cedric BAIL 4a29e3e058 elementary: always include web test as this is now an external module. 2016-03-30 11:04:37 -07:00
SangHyeon Lee f15dfe5594 fix other gengrid elemetary test bugs 2016-03-30 19:16:02 +09:00
SangHyeon Lee 01c1fcb3c3 fix gengrid restore sample in elementary_test 2016-03-30 17:47:56 +09:00