summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* EvasGL: Do internal make current if context changed.devs/devilhorns/planesMinkyoung Kim2017-04-111-1/+6
| | | | | | | | | | | | | | | | | Summary: Before, rsc->current_ctx is always same with ctx. So checking context change was meaningless. From now, it has meaning. Test Plan: App call evas_gl_make_current more than twice in pixels callback. Those surfaces are indirect rendering surface. Reviewers: jpeg, dkdk, wonsik Reviewed By: jpeg Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D4773
* evas: If there isn't clipper when recalcing clip, set mask.clip = NULL.Minkyoung Kim2017-04-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Summary: There's problem in Tizen3.0. 1. Clip set mask_obj to obj for masking. 2. Unset mask_obj from obj, and del mask_obj. 3. obj has clip.mask still. So obj is trying to do mask_subrender() for freeed mask_obj. So reset clip.mask to NULL, If there isn't clipper. Now, there's no routine for reseting clip.mask when clipper object is freed. isn't it? Actually I'm not sure that clip.mask=NULL should be there as this patch. Test Plan: Tizen3.0 wearable Reviewers: cedric, raster, wonsik, jpeg Subscribers: scholb.kim, dkdk Differential Revision: https://phab.enlightenment.org/D4721 Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
* elementary - efl ui flip - fix map apply for page flipCarsten Haitzler (Rasterman)2017-04-111-1/+2
| | | | | | | this mirrors the fix in fd69113f6a9e2735a3e1ad2d0830982c722f453e by jp into the elm flip widget too. @fix
* wayland_imf: Fix bug in shutdownDerek Foreman2017-04-112-10/+6
| | | | | | | | | | | | | | | Theoretical bug that may become real in the coming days - ecore_imf's wayland module has the interface for the text input protocol. The imf module gets unloaded after destroying the protocol object but before receiving all events from the server destined for it. Currently that's fine, but I've posted some wayland patches for review that require the interface to remain present while the text input object is a zombie. These patches cause some EFL apps to crash on shutdown when they unmap the wayland imf module. This moves the wayland interface bits into ecore_wl2 which doesn't get unmapped.
* evas map: Fix test case "Flip Page"Jean-Philippe Andre2017-04-112-5/+8
| | | | | | | | | | | | | Since 9b7ac51943ba0d6391b75cf evas map tries to avoid recalculating stuff when the map parameters have not changed. Unfortunately the code in elementary_test -to "Flip Page" was badly written. It was modifying a constant's internal value (after ugly cast). So the memcmp() and all other checks would return successfully, as the exact same pointer was being compared to itself. So, I've fixed the comparison by adding some forgotten parameters (perspective) but most importantly I fixed the map API usage in the test case.
* evas filters: Fix a rare crash in text render (SW)Jean-Philippe Andre2017-04-111-2/+15
| | | | | | | | | | There are reports of crashes when y < 0. This case seems abnormal in case of filters, as I don't know how to reproduce it, but it's happened. Thanks Youngbok Shin for the report. @fix
* edje: Add workaround for misuses of clip_setJean-Philippe Andre2017-04-113-15/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | An unfortunately very common misuse of clip is as follows: - Layout A is created (edje object / elm_layout) - Object B is swallowed inside A - Clipper C is set to clip B This is a invalid usage, as layout A takes control over the clip property of B (just like it does for geometry, visibility, color...). Since 75ec3a7338c9c2406d4 edje_recalc resets the clip at every calc loop, as it can change between states. In the past, edje_recalc did not reset the clip so anyone could (wrongly) swallow an object and then change its clip from C to modify its color, mask it, blend it, etc... Even though this was not proper use of the API, this is not very clearly documented, and since it worked, it has been (ab)used a lot already. The result now is that a clipper set from C will become visible as an opaque white rectangle covering the entire UI. Booh. This patch is a workaround that should have no impact on well written applications. As a bonus this avoids an extra call to clip_set() from edje. @fix
* evas: give width offset when Evas tries to find ellipsis positionYoungbok Shin2017-04-116-22/+30
| | | | | | | | | | | | | | | | | | | | | | Summary: If the last item before ellipsis item has bigger width than its advance, evas_common_font_query_last_up_to_pos() function can find wrong ellipsis position. When Evas finds a position for non last item, Evas must care about additionally available space for glyph's width of the given x position. ex) the last item's glyph before ellipsis item has a tail to draw above the ellipsis item. @fix Test Plan: Test case will added as comment. (Becasue of font license problem.) Reviewers: herdsman, raster, jpeg, woohyun Subscribers: cedric, Blackmole Differential Revision: https://phab.enlightenment.org/D4727
* elm config - reload at runtime - fix env var overrides being lostCarsten Haitzler (Rasterman)2017-04-111-1/+7
| | | | | | | | if you set config via environment variables then sa config update/reload may end up overriding these again whenever it is updated and thus may result in scaling or other things suddely changing @fix
* evas - async preload cancel fix - don't double delete/freeCarsten Haitzler (Rasterman)2017-04-111-3/+2
| | | | | | | | | just match the ref with the drop anddon't also manually free the image as this leads to accessing of freed memory which is not a good thing. this should fix T5374 @fix
* efl_net_socket_ssl (dialer): emit "resolved"Gustavo Sverzut Barbieri2017-04-111-4/+17
| | | | | | | | | for dialers we should also monitor "resolved" from inner TCP socket and emit that ourselves, letting people know that we have an IP address. this is important for ecore_con_legacy.c, since the svr->ip is only decoded and stored once when this signal is emitted.
* ecore_con_legacy: fix legacy compatibility for ecore_con_server_send()Gustavo Sverzut Barbieri2017-04-111-2/+50
| | | | | | | | | | | | | | | | | | | | Since efl_net_ssl_context is immutable for a dialer and we create the dialer with the context, the SSL cases uses a trick to postpone dialer creation using a job, then it allows one main loop iteration for the user to call various ecore_con_server_ssl_*() methods. However this breaks immediate ecore_con_server_send() after ecore_con_server_connect() as used to be allowed and used by azy/erssd. Most people wouldn't notice that, since the most common case is to either use ecore_con_url (which uses cURL and a complete different code path) OR they would wait for ECORE_CON_EVENT_SERVER_ADD prior to sending data. Nonetheless it was a compatibility issue and must be fixed. Fixes T5339
* elm_code: trigger user change event on applying an undo/redoAndy Williams2017-04-111-0/+2
| | | | @fix
* ecore-wl2: do not reconnect on protocol error for non-server processesMike Blumenkrantz2017-04-111-10/+15
| | | | | | this is not a recoverable state @fix
* elm_win: set wl window type during finalizeMike Blumenkrantz2017-04-111-3/+29
| | | | @fix
* ecore-wl2: create window surfaces immediately when windows are createdMike Blumenkrantz2017-04-111-0/+1
|
* ecore-wl2: stop setting all windows as toplevels on creationMike Blumenkrantz2017-04-111-2/+0
| | | | | | | this is not a valid assumption since toplevel is a shell-specific concept and it's possible to run a shell which does not implement such windows @fix
* ecore-wl2: CRI when attempting to create a window from a server display objectMike Blumenkrantz2017-04-111-0/+1
|
* elementary: fix test breakage.Cedric BAIL2017-04-111-2/+2
| | | | It is perfectly valid to call this API with no pointer provided.
* elm_code: Expose whether or not undo and redo can operateAndy Williams2017-04-112-0/+23
| | | | | A quick peek at the stack will allow us to inform users of the widget if operations will apply.
* ecore_drm2: Use correct drm context versionDerek Foreman2017-04-111-1/+1
| | | | | | | | | | We should be setting this to the context version we understand, not the highest version supported by the library. From Daniel Stone's recent intel-gpu-tools commit fixing the same bug: With libdrm 2.4.78, setting a higher context version than 2 will attempt to call the page_flip_handler2 vfunc if it was non-NULL, which being a random chunk of stack memory, it might well have been.
* ecore-drm2: Add fields to plane structure for current, next, pendingChris Michael2017-04-072-4/+3
| | | | | | FBOs Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore-drm2: Free any previous atomic requestChris Michael2017-04-071-1/+6
| | | | | | | If we fail the atomic request merge, cleanup any previous request and just use the new one. Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore-drm2: Add API functions for atomic commit test and commitChris Michael2017-04-072-1/+163
| | | | | | | | | | This patch adds 2 new API functions, one which we can use to test atomic commits before actually applying them, and another which does the actual Atomic commit. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore-drm2: Add library symlink to merge atomic commit requestsChris Michael2017-04-072-0/+4
| | | | | | | | | Small commit to symlink to drmModeAtomicMerge function so we can use that for atomic commit tests. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore-drm2: Add API function to set plane destinationChris Michael2017-04-072-0/+25
| | | | | | | | | | When we do an atomic commit, we need to know where to place a given plane (in the case of overlays) in relation to the CRTC, so provide an API function that can be used for that purpose. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore-drm2: Store plane src values on assignChris Michael2017-04-071-0/+8
| | | | | | | | As we will need the plane state source values when we do an atomic commit, we can store them when plane_assign is called as we already have the FBO available. Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore-drm2: Add hardware plane functionsChris Michael2017-04-073-0/+126
| | | | | | | | | | | This patch adds a new file where we can store any additional functions we may need to work with hardware planes. Currently the file contains a public function that can be used to assign a given Ecore_Drm2_Fb to a hardware plane @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore-drm2: Cleanup list of output planes on output_destroyChris Michael2017-04-072-1/+6
| | | | | | | Small patch to make sure we free memory previously allocated for hardware planes when we destroy an output Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore-drm2: Move defines for CAP_CURSOR sizes to private headerChris Michael2017-04-072-8/+8
| | | | | | | | | As we may need these defines in other files, move them to the private header so there is access to them. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore-drm2: Store cursor size on deviceChris Michael2017-04-072-2/+15
| | | | | | | | | | As we will need these values later to determine if an FBO can go onto the cursor plane, we should store this in the device structure to avoid having to refetch them later. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore-drm2: Support multiple planes on a given outputChris Michael2017-04-072-30/+76
| | | | | | | | | | Various hardware can support multiple planes on a given output. As such, we need to be able to store multiple plane states per-output. This small patch adds support for that. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore-drm2: Add support for plane formatsChris Michael2017-04-072-0/+6
| | | | | | | | | | Small patch to store supported formats on a given plane state. This will be used for assigning dmabuf clients to a hardware plane based on size and supported format. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore-drm2: Remove old atomic flipping codeChris Michael2017-04-071-186/+66
| | | | | | | | | | As we are refactoring the usage of hardware planes and atomic commits, we need to remove the old usage of atomic flipping for ecore_drm2_fb because atomic flipping will be handled differently. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore-drm2: Add opaque structure to represent a hardware planeChris Michael2017-04-072-0/+13
| | | | Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore-drm2: Disable driver whitelist testsChris Michael2017-04-071-2/+10
| | | | | | | | | | | While having the ability to test for specific driver and kernel versions is nice to ensure that Atomic is supported, it quickly can get out of hand trying to maintain this whitelist so (for now) disable it and rely on the kernel results from drmSetCap. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore_drm2: Add ecore_drm2_fb_dmabuf_importDerek Foreman2017-04-074-0/+50
| | | | Imports a set of dmabuf buffers as a single Ecore_Drm2_Fb
* ecore_drm2: store 4 handles, strides, and planesDerek Foreman2017-04-072-27/+23
| | | | | | We're going to support multi-planar formats soon. It'll be great, you'll love it.
* ecore_drm2: Use library function instead of ioctl for addfb2Derek Foreman2017-04-073-18/+9
| | | | Minor clean up.
* elementary: win - override atspi component get interfaceShinwoo Kim2017-04-072-4/+23
| | | | | | | | The efl_ui_win overrides _elm_interface_atspi_component_extents_get to give correct value if screen_coord is EINA_FALSE which means relative position. The efl_ui_win has given its object geometry value + ecore evas geometry value. The object geometry value was equal to the ecore evas geometry value, so the relative position was not correct(twice of ecore evas geometry value).
* evas_clip: fix bug _clipper_del_cb function unset current clipperJiyoun Park2017-04-071-1/+2
| | | | | | | | | old_clipper = evas_object_clip_get(objA); evas_object_clip_unset(obj_A); evas_object_clip_set(obj_A, new_clipper); evas_object_del(old_clipper); when old_clipper deleted, _clipper_del_cb unset the current new_clipper of obj_A.
* elm_code: Don't refresh if fonts did not changeAndy Williams2017-04-061-0/+3
|
* edje: remove invalid macro-check regarding coreaudioJiwon Kim2017-04-061-9/+3
| | | | | | | | | | | | | | | Summary: By 403b0ecfa66530e9cd598bd013aeda76df7ee98c the coreaudio support was dropped. So 'HAVE_COREAUDIO' define is invalid. Reviewers: jpeg Subscribers: cedric, woohyun Differential Revision: https://phab.enlightenment.org/D4732 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* elm.hoversel: adjust alignment correctly in mirror modeJeeyong Um2017-04-061-2/+10
| | | | | | | | | | | | Test Plan: elementary_test "hoversel" Reviewers: cedric, jpeg Reviewed By: cedric Differential Revision: https://phab.enlightenment.org/D4751 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* edje_program: add NULL check for ed->callbacks in edje_programJEONGHYUN YUN2017-04-061-0/+2
| | | | | | | | | | | | | | | Summary: Pointer ed->callbacks may have NULL value in callback add functions. This reduce the chance of continue to kind of work for longer in case of memory constrain. Maybe using Eina macro would be better. Reviewers: jpeg, jypark Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4761 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* edje: fix name check matching correctlyJEONGHYUN YUN2017-04-061-2/+2
| | | | | | | | | | | | | | | Reviewers: jpeg, jypark This could lead to a crash as we were checking against NULL on the wrong pointer. @fix Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4762 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* edje_edit: add NULL check for eina_mempool_malloc in _edje_edit_state_alloc()JEONGHYUN YUN2017-04-061-1/+6
| | | | | | | | | | | | | | Summary: Pointer eina_mempool_malloc return value may have NULL value when module aren't properly installed. This reduce the chance of a crash and increase the likelyness of properly handling the failure. Reviewers: jpeg, jypark Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4763 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* evas: fix typo 'initializer to' to 'initialize to'Bryce Harrington2017-04-061-8/+8
| | | | | | | | Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4767 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* ecore_evas: Fix several typos in doxygenBryce Harrington2017-04-061-8/+8
| | | | | | | | | | | | Reviewers: cedric Reviewed By: cedric Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4772 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
* elm_code: fix copy/paste bug that slipped throughAndy Williams2017-04-061-2/+2
|