summaryrefslogtreecommitdiff
path: root/src/modules (follow)
AgeCommit message (Collapse)Author
2020-03-10evas.image: add evas_object_image_animated_frame_getShinwoo Kim
this adds an api for getting the current frame of an animation Differential Revision: https://phab.enlightenment.org/D11455
2020-03-10ecore-evas-wayland: Check for valid 'fd' before passing to write()Christopher Michael
write() cannot be passed a negative value. If ecore_main_fd_handler_fd_get returns -1, then this is an issue. Check for valid fd being returned from fd_handler_fd_get and if it is negative, then cleanup and get out. Fixes CID1420318
2020-03-10ecore-evas-wayland: Fix resource leakChristopher Michael
If we are going to be exiting this function without setting up the ecore_main_fd_handler (and thus passing forign_slice), then we should free forign_slice as it was previously calloc'd above. Fixes CID1420322
2020-03-10evas_gl_font: free data paths if alloca failsAli Alzyod
Reviewers: Hermet, woohyun, bu5hm4n, zmike Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11473
2020-03-09ecore_evas_x: fix memory leak when enter drag and drop, without a eeMarcel Hollerbach
this is something that can *never* happen otherwise we would have never got this call. But lets make coverity happy.
2020-03-09ecore_evas_x: correctly handle images in X11Marcel Hollerbach
I thought that i explicitly tested this. However, it seems i was wrong, this way now this is handled correctly, and the image is stored and coverted to a path. With this you can now copy images from chromium and firefox to elm apps. The change in elm_entry reverts parts of the rewrite of the elm handling, as initially every path came *without* "file://" in front, so we have to maintain that. fixes T8625
2020-03-08remove vlc, gst-0.10, xine deps, modules as they are brokenCarsten Haitzler (Rasterman)
they dont work. easier to remove than fix, so... remove :) only gst 1.x supported now.
2020-03-08ecore_evas_x: honor forign dnd implementationsMarcel Hollerbach
enlightenment does not use the elm dnd operation implementations. Therefore we have to ensure that we only handle these operations here, when ecore_evas dnd API is used.
2020-03-08evas gl: clip rect with proper size.Hermet Park
gc width/height indicates the main output size, if the target surface(fbo) is larger than this, rect won't be drawn. We should clip this with current context size. @fix
2020-03-08ecore_evas: Use EFL naming convention in cnp & dnd methodsXavi Artigas
Some methods were missing the "Drag" or "Selection" namespaces or the _Cb suffix. Depends on D11219 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D11426
2020-03-08docs: Strengthen docs for Copy&Paste and Drag&DropXavi Artigas
Including Eina.Content And a typo/bugfix in ecore_evas_x. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D11204
2020-03-08port cnp on WindowsMarcel Hollerbach
Test Plan: Ctrl-c and Ctrl-Vworking Reviewers: raster, zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11439
2020-03-08ecore_evas: Introduce cnp support for cocoaMarcel Hollerbach
with this commit you can do limited cnp for cocoa. You still cannot copy and paste pictures or markup arround, only text is supported so far. However, text on its own works quite stable and good. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D11351
2020-03-08ecore_evas: introduce wayland support for cnp & dndMarcel Hollerbach
This adds cnp support, actions are right now only mapped to "ask", further support can be added there, and synchronization can be added to register more available actions. However, i did not find *any* wayland implementation in gtk qt nor chromiumos that even use the action to indicate anything. This here also has a slightly different behaviour to X11 in terms of coordinates for motion,leave,enter. They can contain negative coordinates (which is due to the fact that wl is CSD and X11 is SSD. However, I did not want to fix this in any regard, as you might want to use that, and it would be a none trivial amount of code to fix that. Reviewed-by: Chris Michael <cp.michael@samsung.com> Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D11329
2020-03-08ecore_evas: introduce initial selection & dnd support for x.Marcel Hollerbach
Seats are not implemented, if there is a type mismatch promises are going to be rejected. Most of this code is copied over from selection_manager. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D11195
2020-03-08ecore_evas: Introduce cnp / dnd API for ecore evasMarcel Hollerbach
The idea of copy and paste here is: - The user specifies the content he wants to have in the selection buffer with a Eina_Content, these content pointer ownerships are passed to the called. Internally ecore_evas code will memorieze the pointer, and pass on function callbacks to the modules, which then do not have to deal with the ownership. - In case the module does not specify these APIs, the callback implementation will be called, which only works for cnp *not* dnd. - Action and mime types are handled as strings, which allows way better custom organisations. (The docs needs improvement) Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D11192
2020-03-06evas_gl_drm: Fix incorrect define statement.Christopher Michael
This actually should be #ifndef so that if it's not defined in the system, then we can still compile properly.
2020-02-27evas_model_load_ply: Prevent memory leakJunsuChoi
Summary: If use ein_str_split, have to free the first element of the array and free the array. Test Plan: N/A Reviewers: Hermet, YOhoho, bu5hm4n, zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11419
2020-02-25evas: software_engine: free allocation on error pathStefan Schmidt
When we allocated s but fail to allocate l we need to make sure to free the first allocation before erroring out. CID: 1419874 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D11409
2020-02-14Revert "evas: remove image_load from the engine."Mike Blumenkrantz
Summary: This reverts commit 867d826395f988b9a9cbc3b5f93bf57ce031885d. Depends on D11337 Reviewers: raster Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11338
2020-02-14Revert "evas: remove unused fonction evas_gl_common_image_load."Mike Blumenkrantz
Summary: This reverts commit fc7e244e99bbcaa8303e0e11a533d0d96b7525bd. Depends on D11336 Reviewers: raster Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11337
2020-02-14evas_model_loader: fix 8f3bef248bb0002cbbd40052eb759d1b2ae29ce9Marcel Hollerbach
The commit fixed a mem leak with freeing one element in the array, which was never going to work, as only the array is a pointer you can allocate. This could have been discovered by simply running ninja test.
2020-02-14canvas model_loaders: fix memory leak in ply loader.Hermet Park
eina_str_split() newly allocate memory to return, caller must take over its resource free..
2020-02-14image loaders pmaps: decide data size at the compile time.Hermet Park
2020-02-14canvas engine: + null check for safetyHermet Park
2020-02-14gl image: free the resource properly at the corner case.Hermet Park
2020-02-05software_evas_engine: Remove unnecessary member for ector_surface_setJunsuChoi
Summary: The clear of the Evas_Thread_Command_Ector_Surface structure is an unmanaged variable. When ector calls _draw_thread_ector_surface_set and it checks the clear value. the clear value is garbage value. This can cause the pixels to fail to initialize. This is why afterimages remain after updating shapes while using ector surfaces. Test Plan: ./build/src/examples/evas/efl-canvas-vg-simple 1 - Basic Shape test Scale up 's' or do something Reviewers: Hermet, smohanty, kimcinoo Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11278
2020-01-31evas filter: fix crash issueShinwoo Kim
Summary: If image object geometry is same with image size, then a crash occurs on both GL and SW engine. [Test Code] evas_object_image_size_get(img, &w, &h); evas_object_resize(img, w, h); [GL engine] eng_ector_buffer_wrap should use output instead of engine for calling evas_ector_buffer_engine_image, because it expects the output not the engine. [SW engine] eng_ector_buffer_wrap should check if im->image.data is NULL because _evas_ector_software_buffer_evas_ector_buffer_engine_image_set returns before calling evas_cache_iamge_ref if im->image.data is NULL, and it causes a segmentation fault finally with following backtrace. (#0) evas_cache_image_drop (im=0x0) (#1) _evas_ector_software_buffer_efl_object_destructor (#2) efl_destructor (#3) _efl_del_internal (#4) _efl_unref_internal (#5) _efl_add_internal_end (#6) _efl_add_end (#7) eng_ector_buffer_wrap Test Plan: {F3841366} Reviewers: Hermet, jsuya Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11258
2020-01-31Efl.Canvas.Group: make mask filter work on GL engineShinwoo Kim
Summary: The _gl_filter_mask defines value of gc->dc->clip.mask, and make_color but those are not used at all, because the evas_gl_common_Filter_blend_push calls evas_gl_common_context_image_push which doesn't care of those values. So this patch is using evas_gl_common_image_draw to use mask and mask_color. Test Plan: [Filter Program] efl_gfx_filter_program_set(text, "buffer:a(alpha); buffer:fat(alpha); buffer:rgbfat(rgba); curve (0:255-255:0, dst = a); blend (a, color = #00ca00ff); grow (1, dst = fat); blur (3, src = fat, color=#0000b9ff, ox = -2, oy = -2, dst = rgbfat); mask (a, src = rgbfat);padding_set(t=5);", "name"); [Before] {F3835430} [After] {F3835431} Reviewers: Hermet, jsuya Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11139
2020-01-18elm win + ecore evas - fix csd stuff like base size and min sizingCarsten Haitzler (Rasterman)
this fixes a lot that was broken with csd... but not everything. @fix
2020-01-09evas ector: ++safety.Hermet Park
add return value by ector_begin() for vector safety.
2020-01-03gl native surf - create pixmap failes - make them warnsCarsten Haitzler (Rasterman)
these can be race conditions so really should be warns and not errors. they just are noise we'll never fix as it's racey anyway...
2020-01-02evas: fix compilation with -Dwl=falseBoris Faure
Reviewed-by: Chris Michael <cp.michael@samsung.com> Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D10994
2019-12-31evas gl: enable GL_LINE_SMOOTH only at gles 1.xHermet Park
As the GLES specification, GL_LINE_SMOOTH is not supported since GLES2.
2019-12-17ecore_evas: add double header include safetyStefan Schmidt
Reported-By: https://lgtm.com/projects/g/Enlightenment/efl Reviewed-by: Chris Michael <cp.michael@samsung.com> Differential Revision: https://phab.enlightenment.org/D10887
2019-12-11eeze: remove tizen module support from eeze sensorStefan Schmidt
This has been disabled since the move to meson and unlikely to have built before with autotools either. Tizen never adopted this so we can ease our maintenance burden here. The Eeze sensor API itself is EAPI sadly and can't be removed. We will keep the udev backend (temperature only) and the fake backend for testing for now. Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com> Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D10805
2019-12-06imf - make xim+scim the defaults not xim+ibus due to ibus being brokenCarsten Haitzler (Rasterman)
at leats ibus seems to just not work for me on arch at least - even with gtk apps, but scim does, so maybe make scim the main thing again? also allows glib to be off by default. :)
2019-12-06evas vg: remove build warningJunsuChoi
Remove parameter already deleted
2019-12-06vg ector: Call a pair of ector begin/end for ector buffer drawing.Hermet Park
While we render vector drawing on ector,it uses ector buffers for subsequent compositions. In this sequence, it switches ector buffer with a composition target, while resuing the global ector context. Previously, it trickly switched ector buffer, it broke the ector begin/end pair. Now, it needs to recover global ector buffer once the composition finished. Thus ector buffer need to return the current pixels information for this.
2019-12-04emotion & evas: remove gstreamer 0.10 supportStefan Schmidt
We have Gstreamer 1.x support for a long time already. We used to keep this around as fallback. By now Linux distributions start to actually no longer ship the Gstreamer 0.10.x packages and upstream has not seen a release in in 5 years. Time to remove it on our side as well. Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com> Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D10779
2019-11-21vector json: checking valid pointer before accessing it.Hermet Park
2019-11-18evas vg: improve caching methods for better precise behaviors.Hermet Park
Previously, json file data won't be shared between instances. Now, objects can share the json data if they use the same file resource.
2019-11-15gl_drm: remove dead return statementStefan Schmidt
Summary: This return can never be reached in this function. CID: 1402607 Depends on D10682 Reviewers: raster, devilhorns Reviewed By: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10683
2019-11-13wl_egl : Prevent access to NULL pointerJunsuChoi
Summary: The pointer s can be null. Test Plan: N/A Reviewers: Jaehyun_Cho, raster Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10654
2019-11-12vg_loader: Get markers information form json data.JunsuChoi
Summary: If json data has marker information, it is stored in vg file data. Test Plan: N/A Reviewers: Hermet, smohanty, kimcinoo Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10504
2019-11-12evas_filter: remove shader compile errorShinwoo Kim
Summary: When grayscale fillter works there is a compile error: implicit cast from "float" to "vec3" Test Plan: 1. Create filter_example with following . efl_gfx_filter_program_set(image, "grayscale ()", "grayscale"); 2. Run. ELM_ACCEL=gl ./filter_example Reviewers: Hermet, jsuya Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10595
2019-11-05evas-wayland-common: Move boolean fields to bottom of structureChristopher Michael
2019-11-05evas-wayland-common: Fix variable typeChristopher Michael
The 'resizing' variable here does not need to be an 'int' as it's either true or false, so change to be Eina_Bool.
2019-11-05evas-wayland-common: Add include for ecore_wl2 internal functionsChristopher Michael
2019-11-05ecore-wl2-dmabuf: Add include for internal functionsChristopher Michael