summaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)Author
2020-05-26benchmarks: use EFL_BUILD=1 in c_argsStefan Schmidt
Original patch by Vincent Torri. Reviewed-by: Vincent Torri <vincent.torri@gmail.com> Reviewed-by: João Paulo Taylor Ienczak Zanette <joao.tiz@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D11853
2020-05-26canvas vg: fix dangling vector containers.Hermet Park
These duplicated containers are not going removed since its refernece is always more than 0. We need to unref explicity when they have to @fix
2020-05-26edje: fix animation memory leak.Hermet Park
if object is destructed on canvas animation, its internal resource is leaked. Here simple fix brings stopping animation before deleting obj. @fix
2020-05-25libs: headers: ensure we include headers in the correct order for EAPIStefan Schmidt
We need to ensure this order to make sure EAPI is working correctly on windows. Original patch by Vincent Torri. Differential Revision: https://phab.enlightenment.org/D11856 Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>
2020-05-25benchmark: fix ident in meson.build fileStefan Schmidt
Use two spaces indent as in other files. Differential Revision: https://phab.enlightenment.org/D11852 Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>
2020-05-25build: set DLL_EXPORT when on a windows systemStefan Schmidt
No need to have this elementary specific, we can do this globally. Original patch by Vincent Torri. Differential Revision: https://phab.enlightenment.org/D11850 Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>
2020-05-25eina - dont use SCHED_BATCH or SCHED_IDLE unless they are definedCarsten Haitzler (Rasterman)
2020-05-25ecore_evas_wayland_common: keep the backword compatibility for wayland dnd ↵Taehyub Kim
handler Keep the backword compatibility for wayland ECORE_WL2_EVENT_DATA_SOURCE_END event handler. If we don't use this handler, the dnd is not ended when the drop item is dropped. @fix Reviewed-by: Christopher Michael <devilhorns@comcast.net> Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D11846
2020-05-25elm_dnd: do not register widgets twiceMarcel Hollerbach
we have to support none widgets, but we should not register widgets twice because of that. Differential Revision: https://phab.enlightenment.org/D11877
2020-05-25evas image: reload after alpha_setShinwoo Kim
Summary: The alpha_set cancels preload, and do not try to load it again. So the image is not showing, if the alpha_set is called while preloading. [Sample] Evas_Object *image = elm_image_add(box); elm_box_pack_end(box, image); evas_object_show(image); elm_image_file_set(image, "img.png", NULL); // start preloading Evas_Object *eimg = elm_image_object_get(image); evas_object_image_alpha_set(eimg, EINA_TRUE); // cancel preloading Reviewers: Hermet, jsuya, herb Reviewed By: Hermet Subscribers: zmike, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11864
2020-05-23elm test: include evil_private.h to declare realpath() on WindowsVincent Torri
Reviewers: raster, zmike Reviewed By: raster Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11872
2020-05-23ecore_evas: fix uninitialized variable warningVincent Torri
Test Plan: compilation Reviewers: raster, zmike Reviewed By: raster Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11871
2020-05-23ecore - another systemd header - go away. don't need it now.Carsten Haitzler (Rasterman)
2020-05-23ecore evas - tick printf debugs - disabled right now so no noiseCarsten Haitzler (Rasterman)
this is here so it can be turned on and off to see what's happening with ticking and tick latency
2020-05-23ecore-x : move x vsync device back to mainloop from threadCarsten Haitzler (Rasterman)
after i noticed some jitters, it seesms one thread to listen for vsync events then to wake up the mainloop can suffer from irregular scheduling jitters. it seems to be highly depenedent on both gpu driver and cpu but it seemed the vsync thread itself was more reliably woken than the mainlooop it then signalled, so merging this back is just batter. it's configurable via an environment variable so we can try either right now and see, but default is now to be in main loop.
2020-05-23ecore thread - feedback threads should not be background threads...Carsten Haitzler (Rasterman)
if try_no_queue is used - its a thread that clearly wantt to be out of the queue to run on its own so probably wants to wake up accurately and thus not be a backgroun rpriority task but and urgent one. ensure we set up priority accordingly as we didn't before. this should fix scheduling when under load for vsync @fix
2020-05-23ecore-x expose some debug times like the exact time the vsync wokeCarsten Haitzler (Rasterman)
this is for finding and eliminating jank in the vsync scheduling etc. - as its underscore it's clearly a private api.
2020-05-23ecore - expose "hidden" internal api for debugging to get wakeup timeCarsten Haitzler (Rasterman)
get the real time at which main loop woke up for purposes of debugging and finding jank/scheduling jitter.
2020-05-22evas_vg_container: return NULL in evas_vg_container_add when the parent of ↵Taehyub Kim
container is NULL Summary: evas_vg_container should return NULL when the parent is NULL because the function does not allot NULL parent @fix Reviewers: kimcinoo, jsuya, Hermet Reviewed By: kimcinoo Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11867
2020-05-21elua: prepare for compatibility with cffi-lua (use ffi.nullptr)Daniel Kolesa
This is necessary because the LuaJIT FFI implements the null pointer to nil equality behavior, which is not possible to do in standard Lua (as equality metamethod needs identical types to trigger). So replace it with ffi.nullptr as cffi-lua implements; in luajit ffi.nullptr will just become nil and it'll work like before.
2020-05-21elua: remove old lua bindings generatorDaniel Kolesa
2020-05-21elm_genlist/elm_gengrid: fix memory leak caused by efl_wref_del.Hosang Kim
Summary: efl_wref_del makes pointer to NULL. So we should copy pointer before efl_wref_del is called. Reviewers: SanghyeonLee, cedric Reviewed By: SanghyeonLee Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11866
2020-05-20meson: Changed meson build to support address sanitizer buildSubhransu Mohanty
As we run some intermediate binary like edje_cc during efl build , and due to those binary has some memory leaks the address sanitizer build of efl fails. This Patch runs those binary with 'ASAN_OPTIONS=detect_leak=false' to disable the memory leak check for those binaries. Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D11137
2020-05-20efl_ui_layout: remove group_calcualte to respect legacy min sizeYeongjong Lee
Summary: For legacy elm_layout, the size should be calculated based on `hint_size_combined_min` instead of `hint_size_min` in the group_calculate. Also, `_efl_ui_layout_efl_canvas_group_group_calculate` is unnecessary because it is added to allow finger size policy differentiation between inherited layout and layout object (see also, 46cf288d32f06a0c82ef227c65e55062bf494672), however, it can be set by `finger_size_multiplier` proeprty in constructor. Test Plan: Check `evas_object_size_hint_min_set` is respected. layout_example.c ``` //Compile with: //edje_cc layout_example.edc && gcc -g layout_example.c -o layout_example `pkg-config --cflags --libs elementary` #include <Elementary.h> EAPI_MAIN int elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { Evas_Object *win, *layout, *box; elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); win = elm_win_util_standard_add("layout", "Layout"); elm_win_autodel_set(win, EINA_TRUE); box = elm_box_add(win); evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(box, EVAS_HINT_FILL, EVAS_HINT_FILL); evas_object_show(box); elm_win_resize_object_add(win, box); layout = elm_layout_add(box); evas_object_size_hint_min_set(layout, 300, 200); elm_layout_file_set(layout, "./layout_example.edj", "mylayout"); evas_object_show(layout); elm_box_pack_end(box, layout); evas_object_resize(win, 300, 300); evas_object_show(win); elm_run(); return 0; } ELM_MAIN() ``` layout_example.edc ``` collections { group { name: "mylayout"; parts { part { name: "bg"; type: RECT; description { state: "default" 0.0; color: 100 190 100 255; } } part { name: "mytext1"; type: TEXT; description { state: "default" 0.0; text { size: 30; text: "my text1"; min: 1 0; } color: 0 255 0 255; rel1.relative: 0.0 0.0; rel2.relative: 1.0 0.3; } } } parts { part { name: "mytext2"; type: TEXT; description { state: "default" 0.0; text { size: 30; text: "my text2"; min: 1 0; } color: 0 255 255 255; rel1.relative: 0.0 0.3; rel2.relative: 1.0 0.6; } } } } } ``` Reviewers: zmike, Jaehyun_Cho, woohyun Reviewed By: Jaehyun_Cho Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11858
2020-05-19ecore-x - ensure we fully look at all xkb events and refresh all bindsCarsten Haitzler (Rasterman)
this ensures for sure that we rebind known key/mouse grabs too for xkb mapping changes and force a get of the keymaps too @fix
2020-05-19evas: gesture_manager: fix usage of long on WindowsVincent Torri
On Windows 64bits, long is a 4 bytes type. Declare count as being a intptr_t instead of long Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D11836
2020-05-19tests: eina: fix usage of long on WindowsVincent Torri
On Windows 64bits, long is a 4 bytes type. Declare i as being a uintptr_t instead of unsigned long Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Reviewed-by: Felipe Magno de Almeida <felipe@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D11837
2020-05-19ecore_con: Fix unused argument warningVincent Torri
Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D11849
2020-05-19evas: do not call evas_object_change in reneder_postShinwoo Kim
Summary: evas_render_updates_internal > eina_array_remove is calling pending_change pending_change > render_post could call evas_object_change > evas_render_object_recalc. The eina_array is removing its item from pending_objects, while the evas_object_change that is calling evas_render_object_recalc is adding item to pending_objects. As a result, the pending_objects.count is incorrect, and it breaks render. Reviewers: Hermet, jsuya, herb Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11835
2020-05-19ecore_anim: rework bezier curve functionWonki Kim
Summary: current cubic bezier function isn't accurate at sometime. to make it more accurate, this patch rework bezier curve by using a cardano's algorithm. (refer to https://pomax.github.io/bezierinfo/) Reviewers: Hermet, bu5hm4n Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11819
2020-05-19png: handle file name .9.pngShinwoo Kim
Summary: .9.png is not 9 patch file, but a png file which name is .9 Test Plan: evas_object_image_file_set(image, "./.9.png", NULL); Reviewers: Hermet, jsuya, herb Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11848
2020-05-18elput: Rmove empty pub_eo_file_target in meson.buildChristopher Michael
2020-05-18elput: Fix formattingChristopher Michael
NB: No functional changes
2020-05-18ecore-evas-drm: Remove duplicate config set in meson.build fileChristopher Michael
2020-05-18ecore-evas-wayland: Fix formatting according to coding conventionsChristopher Michael
"80 column code whenever possible - Wrap longer lines where required." NB: No functional changes
2020-05-18Revert "Fix EAPI definition by defining EFL_BUILD for each built DLL"Carsten Haitzler (Rasterman)
This reverts commit 3ade45cbc82bea1772c7ad1afb7e1ba5dd67d930.
2020-05-18elgind - it's apparently libelogind-shared ...Carsten Haitzler (Rasterman)
2020-05-18ecore - systemd - missed an ifdef for sytemd disableCarsten Haitzler (Rasterman)
2020-05-18Fix EAPI definition by defining EFL_BUILD for each built DLLVincent Torri
Summary: EAPI must be defined to dllexport when building DLL, and to dllimport when using these DLL. To achieve this, define EFL_BUILD for each library and module, and set DLL_EXPORT unconditionally. Static library are and will be not supported Test Plan: compilation Reviewers: zmike, raster, jptiz Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11834
2020-05-18systemd - make libsystemd use/supprot entirely runtime "dlopened"Carsten Haitzler (Rasterman)
so i've moved all systemd and elogind support to be runtime only with dlopen (eina_module) of libsystemd.so.0 (or libelogind.so.0 for elput) and finding of symbols manually at runtime (if the right code paths or env vars are set), thus remvoing the need to decide at compile time if efl needs systemd support or not as it no longer needs systemd headers/libs at compile time and just at runtime. this simplifies building a bit and makes efl more adaptive to the final target system at runtime.
2020-05-18efl_ui_image: fix to call "clicked" smart callback when there is no imgWooHyun Jung
Summary: Some applications have used "clicked" smart callback from elm_image which does not have an image in it. To keep backward compatibility, hit_rect needs to be resized properly to call smart callback function. @fix Reviewers: Hermet, jsuya, kimcinoo Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11840
2020-05-15ecore-drm2: Add missing params for doxygenChristopher Michael
2020-05-15ecore-drm2: Add API function to return default depthChristopher Michael
Rather than hard-coding depth & bpp in the evas drm engines, we can use this function to return the default depth & bpp. @feature
2020-05-15evas_vg_shape: return NULL in evas_vg_shape_add when the parent of shape is NULLTaehyub Kim
Summary: evas_vg_shaep_add should returned NULL when the parent is NULL because the function does not allow the NULL parent. @fix Reviewers: jsuya, Hermet Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11839
2020-05-13elm: refactor legacy _icon_signal_emitMike Blumenkrantz
Summary: this was duplicated for a number of widgets in slightly different ways, so it can be unified as a private layout function to reduce maintenance costs Reviewers: Hermet, YOhoho, Jaehyun_Cho, jsuya Reviewed By: jsuya Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11818
2020-05-13edje_calc: Add unload file for already loaded vector lottie file.JunsuChoi
Summary: Users can use multiple jsons per description in one part in edc. At that time, multiple files are loaded, if a file is already loaded, it must be unloaded. Test Plan: edje_cc -beta -id ./ json_edc.edc make ./test Push Change button -> shutdown application {F3882716} Reviewers: Hermet, herb, kimcinoo Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11820
2020-05-13Revert "canvas render: don't apply mask if the objects in the map."Hermet Park
This reverts commit eaafb9e4c53863cfd0ae4aaf24f04d333458ff2b. Found some regression bugs. revert it.
2020-05-12Efl.Ui.Radio_Legacy: Prevent unnecessary signal emit for contentsJunsuChoi
Summary: When call elm_radio_add, theme_apply of layout is called and _efl_ui_radio_legacy_efl_ui_widget_theme_apply is called. Then it calls the signal emit for the icon. this call is unnecessary. Test Plan: Evas_Object *bt; clock_t start, finish; double sum= 0 ; double avg = 0; double cnt = 1000; for(int i =0 ; i<(int)cnt; i++) { start = clock(); bt = elm_radio_add(win); finish = clock(); sum += (double)(finish-start)/CLOCKS_PER_SEC; } avg = sum / cnt ; printf("radio avg : %f\n",avg); [before] radio avg : 0.000232 [after] radio avg : 0.000197 Reviewers: akanad, Jaehyun_Cho, Hermet, YOhoho, zmike Reviewed By: zmike Subscribers: bu5hm4n, zmike, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11813
2020-05-12Efl.Ui.Check_Legacy: Prevent unnecessary signal emit for contentsJunsuChoi
Summary: When call elm_check_add, theme_apply of layout is called and _efl_ui_check_legacy_efl_ui_widget_theme_apply is called. Then it calls the signal emit for the icon. this call is unnecessary. Test Plan: N/A Reviewers: akanad, Jaehyun_Cho, Hermet, YOhoho, zmike Reviewed By: zmike Subscribers: zmike, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11812
2020-05-12Efl.Ui.Progressbar_Legacy: Prevent unnecessary signal emit for contentsJunsuChoi
Summary: When call elm_progressbar_add, theme_apply of layout is called and _efl_ui_progressbar_legacy_efl_ui_widget_theme_apply is called. Then it calls the signal emit for the icon. this call is unnecessary. Test Plan: N/A Reviewers: Hermet, bowonryu, Jaehyun_Cho, YOhoho, zmike Reviewed By: zmike Subscribers: zmike, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11811