summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-14ci: travis: switch exactness build to Fedora32 imageStefan Schmidt
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
2020-05-12Efl.Ui.Button_Legacy: Prevent duplicate signal emit of contentsJunsuChoi
Summary: When call elm_button_add, theme_apply of layout is called and _efl_ui_button_legacy_efl_ui_widget_theme_apply is called. Then it calls the signal emit for the icon. In the button theme, the default of the icon is hidden, so this call is unnecessary. Test Plan: Evas_Object *bt; clock_t start, finish; start = clock(); bt = elm_button_add(win); finish = clock(); printf("duration : %f\n", (double)(finish-start)/CLOCKS_PER_SEC); 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_button_add(win); finish = clock(); sum += (double)(finish-start)/CLOCKS_PER_SEC; } avg = sum / cnt ; printf("button avg : %f %f\n",avg, sum); [before] button avg : 0.000215 [after] button avg : 0.000138 Reviewers: Hermet, YOhoho, Jaehyun_Cho, zmike Reviewed By: zmike Subscribers: zmike, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11810
2020-05-12build: enable -Wpointer-arith for dev buildsMike Blumenkrantz
Summary: this is a useful warning to avoid errors when calculating pointer offsets Depends on D11816 Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11817
2020-05-12build: fix void* use in pointer mathsMike Blumenkrantz
Summary: void* is an invalid type for calculating pointer offsets, so ensure that this is always cast to something else (e.g., char*) in the few cases where it's been misused Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11816
2020-05-12build: enable -Wfloat-compare by default for dev buildsMike Blumenkrantz
Summary: Depends on D11799 Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11800
2020-05-12static/triangulator: resolve float compare warningsMike Blumenkrantz
Summary: Depends on D11798 Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11799
2020-05-12edje: resolve float compare warningsMike Blumenkrantz
Summary: Depends on D11797 Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11798
2020-05-12exactness: resolve float compare warningsMike Blumenkrantz
Summary: Depends on D11796 Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11797
2020-05-12examples: resolve float compare warningsMike Blumenkrantz
Summary: Depends on D11795 Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11796
2020-05-12evas/gl: resolve float compare warningsMike Blumenkrantz
Summary: Depends on D11794 Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11795
2020-05-12evas/filter: resolve float compare warningsMike Blumenkrantz
Summary: Depends on D11793 Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11794
2020-05-12evas: resolve float compare warningsMike Blumenkrantz
Summary: Depends on D11792 Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11793
2020-05-12Efl.Canvas.Object.Animation: Prevent crash when called .animation_pause_set.JunsuChoi
Summary: When call efl_canvas_object_animation_animation_pause_set, pd->in is freed by calling efl_canvas_object_animation_stop in _animator_cb. So when set pause_state, crash occurred This patch add null check to prevent null access. Test Plan: N/A Reviewers: Hermet, kimcinoo, herb, bu5hm4n Reviewed By: Hermet, bu5hm4n Subscribers: bu5hm4n, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11815
2020-05-12evas_object_textblock: reduce layout calculationsAli Alzyod
Summary: This patch reduces calculations for layouting textblock when it is not needed. Exactly in **evas_object_textblock_render_pre**, layouting was done (if needed) regardless of object visibility. evas_object_render_pre will async called if object status is changed, for example show->hide In short words: **We do not layout textblock content if textblock t is hidden.** ``` // suppose textblock is shown // and user want to hide it and set content in it // to be visible later on if needed evas_object_hide(textblock); evas_object_textblock_text_markup_set(textblock, "Hello World"); //Layouting will be done on textblock regardless of its visiblity, becase render_pre //will be called and will make it relayout ``` Reviewers: woohyun, zmike, tasn, raster, bu5hm4n Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11508
2020-05-12build: ensure we set ENABLE_LUA_OLD when using a lua interpreterStefan Schmidt
We missed to actually set the ENABLE_LUA_OLD. Ross run into some problems with Lua 5.2 builds and we hope this fixes the issue for him. Found and fixed by Marcel Hollerbach (only put in the system by me). Fixes T8705