summaryrefslogtreecommitdiff
path: root/src/modules
Commit message (Collapse)AuthorAgeFilesLines
* evas: Fix compilation after @cedric's "fix"Jean-Philippe Andre2016-12-092-0/+95
| | | | Don't forget git add!
* evas: refactor swap mode info get.Cedric Bail2016-12-088-241/+18
|
* evas-gl_cocoa: fix complete b0rkage of the engineJean Guyomarc'h2016-12-082-6/+10
| | | | | 73b308fb66f871b93ef8e324997872e3bf175906 slaughtered the gl_cocoa engine. It's now back to life, lighter and shinier.
* evas-wayland-egl: Remove unused field from Outbuf structureChris Michael2016-12-081-1/+0
| | | | | | | | This patch just removes the 'evas' field from the Outbuf structure. This should have actually gone in on the previous patch but I missed removing it :( Signed-off-by: Chris Michael <cp.michael@samsung.com>
* evas-wayland-shm: Remove unused variblesChris Michael2016-12-081-4/+1
| | | | | | | These variables are unused (as reported by gcc), and 'ob' is not really needed in eng_update so remove that also. Signed-off-by: Chris Michael <cp.michael@samsung.com>
* evas-wayland-egl: Cleanup wayland_egl engine and fix build breakChris Michael2016-12-083-10/+15
| | | | | | | | | | | | A previous patch to refactor setup stage and reduce complexity actually introduced several build breaks. This patch fixes the build break for wayland-egl. ref 73b308fb66f871b93ef8e324997872e3bf175906 BAD CEDRIC !!!!! Signed-off-by: Chris Michael <cp.michael@samsung.com>
* evas-gl-drm: Cleanup evas-gl-drm engine build and fix build breakChris Michael2016-12-082-22/+17
| | | | | | | | | | A previous patch from some french guy broke building of the gl_drm engine. This patch fixes the build break and cleans up unused variables, etc. ref 73b308fb66f871b93ef8e324997872e3bf175906 Signed-off-by: Chris Michael <cp.michael@samsung.com>
* evas-drm: Remove unused variables and fix build breakChris Michael2016-12-081-5/+2
| | | | | | | | | Seems Cedric's patch for refactoring setup stage broke building for the evas drm engine. This patches fixes the issue. ref 73b308fb66f871b93ef8e324997872e3bf175906 Signed-off-by: Chris Michael <cp.michael@samsung.com>
* gl_drm: Check for the correct dma_buf extensionDerek Foreman2016-12-081-1/+1
| | | | We're importing, not exporting
* evas: fix software_gdi engine compilationAndrii Kroitor2016-12-081-1/+2
|
* evas fb engine - fix build break cedric added...Carsten Haitzler (Rasterman)2016-12-081-2/+3
|
* evas: do not rely on Evas canvas no longer passed during setup.Cedric BAIL2016-12-075-11/+19
|
* evas: refactor setup stage and reduce complexity for engine.Cedric BAIL2016-12-0718-1013/+847
|
* gl_drm: Only use dmabuf if the extension is presentDerek Foreman2016-12-071-0/+4
| | | | | Need to check for the extension string instead of just the presence of the function pointers.
* gl_drm: Query eglGetProcAddress with dlsymDerek Foreman2016-12-071-10/+3
| | | | | | | | | | eglGetProcAddress should be queried with dlsym unconditionally. What we had could query it with other extended forms of eglGetProcAddress, which is probably not what anyone wants. Also, throwing away the weird extended forms because there's a good chance our other gl bits don't run on any stacks that don't support normal eglGetProcAddress.
* gl_drm: simplify outbuf_reconfigureDerek Foreman2016-12-072-15/+4
| | | | | Calling render_engine_software_generic_update from eng_setup lets us remove a bunch of stuff from evas_outbuf_reconfigure.
* gl_drm: Don't destroy the outbuf in reconfigureDerek Foreman2016-12-071-20/+9
| | | | | | Cedric tells me this is bad, and I never argue with Cedric. We now re-use the same outbuf and just reconfigure the gbm/gl stuff.
* evas - software generic - fix crashDerek Foreman2016-12-071-5/+2
| | | | | | | | | Commit fcef8d8392b8c8d1d7b96baacaf5e7e89fcf6b45 breaks any evas engine that frees/NULLs its own outbuf before calling evas_render_engine_software_generic_update() We should unconditionally set the outbuf, we only need to do the free conditionally.
* evas - software generic - fix crash when buffer is freed when its the sameCarsten Haitzler (Rasterman)2016-12-071-2/+5
| | | | | | | | evas_render_engine_software_generic_update(0 definitely is wrong where it wants to always free the outbuf even if the buffer passed in is the same one and thus it ends up being freed and now invalid. fix it @fix
* evas: as an example make PMAPS decoding interruptible.Cedric BAIL2016-12-061-7/+12
|
* evas: use emile and evas new infrastructure to interrupt decoding of JPEG early.Cedric BAIL2016-12-061-1/+11
|
* wayland_shm: track mappings more effectivelyDerek Foreman2016-12-061-0/+2
| | | | | Unmap any active mappings from buffer_destroy. This also means we need to clear the mapping after unmapping in fallback.
* wayland_shm: Refcount the dmabuf buffer managerDerek Foreman2016-12-061-12/+63
| | | | | | | | | Because we async render into buffers before the compositor has told us we can use them, we can end up kicking over to fallback while still rendering into a buffer. Refcount the manager to let us clean up properly without crashing when this happens.
* wayland_shm: clear busy bit for buffers during dmabuf fallbackDerek Foreman2016-12-061-0/+3
| | | | | | If we pre-rendered then we have a busy buffer - we need to clear that busy bit after reading from the buffer or buffer_destroy won't clean it up.
* wayland_shm: Clear busy status when replacing an unassigned bufferDerek Foreman2016-12-061-0/+1
| | | | | | If we render fast enough we can use more than one buffer before the compositor assigns us buffer ids. We need to be careful to clear the busy bit on all but the most recent one.
* gl_drm: Allow testing of dmabuf objectsDerek Foreman2016-12-061-0/+17
| | | | | | Enlightenment needs to know if a specific dmabuf format is supported before it lets clients use it. This lets E test commit a wayland dmabuf object without assigning it a buffer.
* evas-wayland-shm: Keep tile buffers in sync with size changesChris Michael2016-12-061-1/+7
| | | | | | | | | | Previous patch to not destroy Outbuf on resize should not have removed this line else software generic tilebuffers will not be in sync with the updated size. ref 5ebba4463 Signed-off-by: Chris Michael <cp.michael@samsung.com>
* evas-drm: Keep tile buffers in sync with size changesChris Michael2016-12-061-0/+5
| | | | | | | This line should not have been removed from the previous patch. Thanks to Cedric for catching this. Signed-off-by: Chris Michael <cp.michael@samsung.com>
* evas-drm: Don't destroy Outbuf on resizeChris Michael2016-12-061-7/+2
| | | | | | | | | On an engine resize, we previously would destroy the Outbuf structure. This patch modifies the code so that on a resize we no longer have to destroy the old Outbuf and reallocate a new one. Instead, we will just reconfigure the existing one and update it's properties. Signed-off-by: Chris Michael <cp.michael@samsung.com>
* evas-wayland-shm: Don't destroy Outbuf on resizeChris Michael2016-12-063-11/+8
| | | | | | | | | | On an engine resize, rather than destroy & recreate the Outbuf structure (and the associated surface) we can just call the eng_output_resize function (which in turn will call outbuf_reconfigure) to update Outbuf with new properties. This saves us from having to create a whole new Outbuf every time we resize. Signed-off-by: Chris Michael <cp.michael@samsung.com>
* all: use void if we really want to make sure we do not accept parametersStefan Schmidt2016-12-061-1/+1
| | | | | | In C we need this to make clear that we really do not accept parameters. Found by the smatch source code matcher. I had run and fixed this before but it seems to creep in again over time.
* evas: native_dmabuf: make sure we check for NULL before not after we dereferenceStefan Schmidt2016-12-061-5/+7
| | | | | Same change as just done in evas_native_tbm in commit 38dbe932db5c12f66ff2e045ac74107e149c14da.
* evas: native_tbm: make sure we check for NULL before not after we dereferenceStefan Schmidt2016-12-061-5/+7
| | | | | | | | Using *im and dereferencing it before doing the actual NULL check does not make much sense. I kept the checks as they have been there before so the intent was probably that they could be NULL and should be checked. CID: 1270030, 1270029, 1270028
* elm_map: add copyright_cb for osm tile source.Sungtaek Hong2016-12-061-0/+6
| | | | | | | | | | | | | | | | | | | Summary: - According to Copyright and license in Openstreetmap (https://www.openstreetmap.org/copyright/en) credit has to be in the corner of map. - Add copyright_cb which returns an object to show copyright. Test Plan: 1. Excecute elementary_test->map 2. Right click->source->set any tile source 3. Observe copyright is added. Reviewers: cedric, Hermet, jpeg Subscribers: conr2d Differential Revision: https://phab.enlightenment.org/D4449
* evas - protect against outbuf alloc fail possibilityCarsten Haitzler (Rasterman)2016-12-061-1/+2
| | | | this should fix T4967
* evas: refactor initialisation and shutdown of evas_common.Cedric BAIL2016-12-0514-49/+2
|
* evas-wayland-shm: Don't recreate Outbuf if we are hiddenChris Michael2016-12-051-1/+1
| | | | | | | | If the hidden flag is set, then we don't need to recreate the Outbuf for a given canvas as the window is hidden and we are not going to render there until it's shown again. Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore-evas-wayland: Remove unused includesChris Michael2016-12-022-4/+0
| | | | | | | | As most of the "hard work" has been moved into ecore_evas_wayland_common file, these includes are no longer needed here. Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore-evas-wayland: Minor formatting fixChris Michael2016-12-021-23/+24
| | | | | | NB: No functional changes, just formatting Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore-evas-wayland: Set all evas engine info fields before updatingChris Michael2016-12-021-9/+3
| | | | | | | Small patch to set all fields of the Evas Engine Info structure before calling evas_engine_info_set function Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore-evas-wayland: Use engine 'hidden' field for ecore_evas_hide operationsChris Michael2016-12-021-7/+8
| | | | | | | | | This patch allows us to set a 'hidden' flag in the Evas Engine information structure instead of setting a NULL surface. Setting this flag allows us to hide/show a canvas without having to destroy/recreate a wl_surface every time. Signed-off-by: Chris Michael <cp.michael@samsung.com>
* evas-wayland-shm: Fix issue of destroying & recreating wl_surfaces on hideChris Michael2016-12-024-15/+32
| | | | | | | | | When a canvas gets hidden, we don't need to destroy & recreate the wl_surface. We can simply attach a NULL wl_buffer to the surface which achieves the same result. This saves us from having to always destroy & recreate surfaces when we hide/show. Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore-evas-wayland: Add a 'hidden' field to engine structureChris Michael2016-12-021-0/+1
| | | | Signed-off-by: Chris Michael <cp.michael@samsung.com>
* Ecore Input Evas: Add ecore_event_evas_seat_modifier_lock_update().Guilherme Iscaro2016-12-021-2/+3
| | | | | | This function will set the modifiers/lock per seat in Evas. Some places will still use ecore_event_evas_modifier_lock_update(), since multi-seat is not supported.
* Ecore Evas VNC: Properly set/unset the key locks.Guilherme Iscaro2016-12-021-8/+28
| | | | | Key locks must be unset only another they down is received, otherwise they must remain active.
* ecore_evas/x: Fix window size when framespace != 0Jean-Philippe Andre2016-12-021-34/+40
| | | | | | | | This fixes the sizing of EDI. And elm_test "States 2" The sizes stored in ecore_evas are the "window content" sizes, excluding the framespace which thus must be added to all calls to ecore_x / Xlib.
* gl drm/x11: Fix compilation for EGL < 1.5Jean-Philippe Andre2016-12-022-0/+8
| | | | | | | This is an attempt at fixing compilation for systems with old EGL headers (version < 1.5). Thanks Roy for the report!
* gl_drm: Fix eglCreateImage for 32-bit systemsDerek Foreman2016-12-011-9/+36
| | | | | eglCreateImageKHR and eglCreateImage have different prototypes, but we treated them the same. Fix that so 32-bit users can have them too.
* gl_drm: Don't query gl functions that don't exist anywhereDerek Foreman2016-12-011-4/+0
| | | | | | | We're just making stuff up now and hoping they magically match existing prototypes, I guess. Hardly the weirdest thing in this file.
* wayland_shm: enable dmabuf by defaultDerek Foreman2016-12-011-1/+1
| | | | | | | | | Software rendered wayland clients will now attempt to use dmabuf on some platforms. This results in a window that a compositor may be able to drop into a plane without a copy. Disable it with the env var EVAS_WAYLAND_SHM_DISABLE_DMABUF but if you need to disable it, please ping me or file a bug report.