summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/Ecore_Drm.h (follow)
AgeCommit message (Collapse)Author
2018-01-04efl: remove _MSC_VER (Visual Studio macro) usage in source codeVincent Torri
2017-02-27docs: Fix typos and some wrong expressionsMyoungwoon Roy, Kim
Covers: Ecore_Drm, Ecore_Evas, Ecore_File, Ecore_IMF, and Ecore_IMF_Evas API reference doxygen. Summary: I had fixed some typos and wrong expressions, such as capital letters, singular Etc. in Ecore_Drm, Ecore_Evas, Ecore_File, Ecore_IMF, and Ecore_IMF_Evas API reference doxygen. Test Plan: Doxygen Revision Reviewers: stefan, cedric, raster, jpeg, Jaehyun_Cho Subscribers: conr2d Differential Revision: https://phab.enlightenment.org/D4680
2016-05-31ecore-drm: Deprecate Ecore_Drm libraryChris Michael
Small patch to deprecate Ecore_Drm. This patch also adds a configure option to enable ecore_drm for older code. This option is disabled by default, so must be explicitly specified during build. Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-21ecore-drm: Fix typo in doxygenChris Michael
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-02-18ecore_drm: Add pointer warping APIDerek Foreman
Adds a new API: ecore_drm_device_pointer_warp() which warps the pointer to the specified location. All libinput seats with pointers are warped.
2016-02-18ecore_drm: Change page flipping logic so we can't tearDerek Foreman
Summary: Previously if we ever tried to queue up two page flips in less than a retrace interval (which can easily happen since the evas clock isn't based on vblank) we'd give up on ever using page flips again, and tear on every screen update. This fixes that by using a vblank callback for custom ticks and using page flips whenever possible. If a page flip fails it means a page flip raced with the vblank ticker, so we need to queue up that frame when the current page flip completes. This ensures that while we might drop interim frames, we will never lose the most recent. Now it should only be possible to tear if two ticks fire during the wait for a page flip to complete. This would result in rendering taking place in the front buffer. I don't think this can happen, but an error is logged if it does. Reviewers: zmike, devilhorns Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D3594
2016-02-04This should not have been pushed. Unsure what happened here, butChris Michael
revert this Revert "ecore-drm: Add opaque type for Plane support" This reverts commit 94082f54e8ce7d47402ea5d8d57e3871f8fa98a4.
2016-02-04ecore-drm: Add opaque type for Plane supportChris Michael
This adds an opaque structure to represent a hardware plane for use in rotation, setting cursor/overlay/primary plane content, etc Signed-off-by: Chris Michael <cpmichael@osg.samsung.com> ecore-drm: Add API functions for rotation support This adds 2 new API functions for getting supported rotations from an output, and for setting rotation on an output. @feature Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-02-04ecore-drm: Add API function to set rotation on an outputChris Michael
This patch adds an API function to allow the Screen Setup dialog in Enlightenment to support setting rotations on an output when running under drm @feature Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-02-04ecore-drm: Add API function to get supported rotations from an outputChris Michael
This patch adds an API function so that we can get the supported rotations from an output. This is needed so that the Screen Setup dialog in Enlightenment can list the rotations supported for the user to choose from while running using drm @feature Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-02-04ecore-drm: Add opaque structure for Ecore_Drm_PlaneChris Michael
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-01-04ecore-drm: Add a new API for keymap cacheJengHyun Kang
Summary: Originally, each keyboard devices could have their own keymap. The one keyboard's keymap could different with others. But for this, Ecore_Drm compile a new keymap when a keyboard is connected. But this is a burden for some people who doesn't manage keymap for each keyboard. They want to maintain only one keymap for system. So, I added cached context/keymap and just ref/unref for each keyboard device. People who want to different keymap for each keyboard just do not set cached context/keymap. Then Ecore_Drm maintain keymaps about each keyboard devices. Test Plan: Connect a keyboard device and watch flow of ioctl. Originally Ecore_Drm opened xkb data and compile keymap, but after patch, that ioctl is disppeared. @feature Reviewers: raster, devilhorns, ManMower Reviewed By: devilhorns, ManMower Subscribers: cedric, input.hacker, ohduna, jpeg Differential Revision: https://phab.enlightenment.org/D3503
2015-12-29Add a new Ecore_Drm API for setting left-handed mouseJengHyun Kang
Summary: Add a new Ecore_Drm API named ecore_drm_device_left_handed_set(). Libinput support various input options. Left handed mode is one of options. Right-handed people and left-handed people use a mouse using different button mapping. So if a left handed option is enabled, libinput change right mouse button and left mouse button. So support this option, I added this api using libinput's left handed option. @feature Test Plan: After set left handed mode, left mouse button generate button numbered 3, and right mouse button generate button numbered 1. Reviewers: raster, ManMower, devilhorns Subscribers: ohduna, cedric, jpeg, input.hacker Differential Revision: https://phab.enlightenment.org/D3431
2015-12-28ecore-drm: Add APIs to support key remap functionalitySung-Jin Park
Summary: This adds two new APIs to enable/set key remap functionality and a number of keys to be remapped to the other keys. As of now there is no api to do this therefore we need to remap using linux utility such as 'setkeycodes'. By adding/calling these apis, each Ecore_Drm_Evdev device will have its specific key remap hash and we can apply each remapping keys for each key/keyboard device. Test Plan: (1) Enable key remap and set remapping of a key on a specific keyboard device (2) Plug in the keyboard device and check the key is being remapped or not (3) Check the other keys are coming normally (4) Check the the remapping key on a specific keyboard doesn't affect to any other devices Signed-off-by: Sung-Jin Park <input.hacker@gmail.com> Reviewers: raster, zmike, gwanglim, ManMower, devilhorns Subscribers: JHyun, ohduna, cedric, jpeg Differential Revision: https://phab.enlightenment.org/D3463
2015-05-13ecore-drm: Add API function to set a new mode on an outputChris Michael
Summary: This adds a new API function (ecore_drm_output_mode_set) that we can use from within RandR code to set the resolution of an output (or disable an output if NULL is passed in). @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-13ecore-drm: Fix purpose of ecore_drm_output_enable/disable functionsChris Michael
Summary: These API functions should be used for enable/disable of a given output. They were previously being misused to stop/start rendering on an output when we VT switch away so now we add an internal function we can call to disable/enable rendering. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-12ecore-drm: Add a 'name' field to Ecore_Drm_Event_OutputChris Michael
Summary: This adds a new 'name' field to the Ecore_Drm_Event_Output structure so that when we catch drm output events in E, we can compare this name to find an e_randr screen and update compositor's outputs. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-12ecore-drm: Add API function to test if an output can go on a given crtcChris Michael
Summary: This adds a new API function to test if a given Ecore_Drm_Output can be used on a given crtc. This is needed for DRM RandR support @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-07ecore-drm: Add new API function to mark an output as primaryChris Michael
Summary: This adds a new API function which we can use to mark a given Ecore_Drm_Output as being the primary output. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-07ecore-drm: Add API function to find an output given a nameChris Michael
Summary: This adds a new API function to find an Ecore_Drm_Output which matches a given name. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-07ecore-drm: Fix formattingChris Michael
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-07ecore-drm: Add API function to get an output's crtc sizeChris Michael
Summary: This adds a new API function to return an output's crtc size. This is mainly used for drm RandR config in E @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-07ecore-drm: Add API function to return primary outputChris Michael
Summary: This adds a new API function to return the output which is marked as the primary output. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-07ecore-drm: Add API function to return output modesChris Michael
Summary: This adds a new API function to return a list of modes supported on a given output @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-07ecore-drm: Add API function to return the edid of a given outputChris Michael
Summary: This adds a new API function to return the EDID string of a given output. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-07ecore-drm: Add API function to return if a given output has a backlightChris Michael
Summary: This adds a new API function to call so we can check if a given Ecore_Drm_Output has a backlight @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-07ecore-drm: Add API function to return the connector type of a given outputChris Michael
Summary: This adds a new API function to return the connector type of an Ecore_Drm_Output @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-07ecore-drm: Add API function to return output connected stateChris Michael
Summary: This adds a new API function to check if a given output is connected or not. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-07ecore-drm: Add API function to return the name of an outputChris Michael
Summary: This adds a new API function to turn the name of a given Ecore_Drm_Output. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-07ecore-drm: Add API function to return screen size rangeChris Michael
Summary: This adds new API function to return the min & max width & height of valid screen range for an Ecore_Drm_Device @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-07ecore: remove the need to order the header correctly for Windows.Cedric BAIL
2015-05-05ecore-drm: Add missing doxy for ecore_drm_output_enableChris Michael
Summary: This adds missing doxygen for function ecore_drm_output_enable @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-22ecore-drm: fix ecore_drm_devices_get() to return a const valueMike Blumenkrantz
this is the internal device list, we're pretty hosed if someone decides to free it because there's no const
2015-04-16ecore-drm: Add pending_flip field to Ecore_Drm_FbChris Michael
Summary: This adds a pending_flip field to Ecore_Drm_Fb structure so that when we schedule a pageflip event we can wait until the flip is complete before trying to reuse the buffer again. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-10ecore-drm: Change @since 1.15 to @since 1.14 for newly added APIsChris Michael
Summary: As requested by stefan, change newly added APIs to be @since 1.15 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-10ecore-drm: Add 2 new API functions for setting and sending framebuffersChris Michael
Summary: This adds 2 new API functions we can use from within the evas drm engine to set framebuffers as current, and to call a pageflip on given buffers. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-10ecore-drm: Add an API function to return the connector id of an outputChris Michael
Summary: This adds an API function to return the connector id of a given output. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-10ecore-drm: Whitespace removalChris Michael
Summary: No functional changes, just removing whitespace Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-10ecore-drm: Add API function to return an output's crtc idChris Michael
Summary: This adds an API function to return the crtc id of an output @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-10ecore-drm: Add API function to return an output crtc buffer idChris Michael
Summary: This adds an API function to return an output's crtc buffer id @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-10ecore-drm: Add API function to find an output at given coordinatesChris Michael
Summary: This commit adds an API function that can be used to find an output given an x/y coordinate pair. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-10ecore-drm: Move doxygen documentation to main Ecore_Drm headerChris Michael
Summary: This moves all doxygen to the main Ecore_Drm header to match rest of efl. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-10ecore-drm: Remove unused API function that should not have been committedChris Michael
Summary: This API was added in the header while testing a theory, and should not have been committed. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-10ecore-drm: Move drm headers to Ecore_DrmChris Michael
Summary: Since we only create one drm context in the drm_device structure now, we need the drm headers to be included in Ecore_Drm.h @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-10ecore-drm: Create drmEventContext Once during device openChris Michael
Summary: This changes allows us to reuse the same drmEventContext once so that when we get drm events, we are not constantly recreating the drmEventContext. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-10ecore-drm: Add API function to disable an outputChris Michael
Summary: This adds a new API function we can call to disable an Ecore_Drm_Output @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-10ecore-drm: Add API to setup the drm device for software renderingChris Michael
Summary: This adds an API we can call from ecore_evas to setup the device for software rendering which will cause dumb buffers to be created in the Ecore_Drm_Device structure. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-10ecore-drm: Add API function to mark a Framebuffer as dirtyChris Michael
Summary: This adds an API function used to mark a framebuffer as dirty @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-10ecore-drm: Add API function to set output gammaChris Michael
Summary: This commit adds new API for setting gamma of an Ecore_Drm_Output @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-10ecore-drm: Add support for DPMS on an outputChris Michael
Summary: This commit adds support for setting DPMS level of an output. This adds a new API function 'ecore_drm_output_dpms_set' to set the level. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>