forked from enlightenment/efl
ecore-drm2: Add API to return current fb used on a given output
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
This commit is contained in:
parent
d08d7e18e3
commit
253f88b3ec
|
@ -368,6 +368,18 @@ EAPI unsigned int ecore_drm2_output_crtc_get(Ecore_Drm2_Output *output);
|
|||
*/
|
||||
EAPI Ecore_Drm2_Fb *ecore_drm2_output_next_fb_get(Ecore_Drm2_Output *output);
|
||||
|
||||
/**
|
||||
* Return the current Ecore_Drm2_Fb used on a given output
|
||||
*
|
||||
* @param output
|
||||
*
|
||||
* @return The current Ecore_Drm2_Fb used on this output, or NULL otherwise
|
||||
*
|
||||
* @ingroup Ecore_Drm2_Output_Group
|
||||
* @since 1.18
|
||||
*/
|
||||
EAPI Ecore_Drm2_Fb *ecore_drm2_output_current_fb_get(Ecore_Drm2_Output *output);
|
||||
|
||||
/**
|
||||
* Set the next Ecore_Drm2_Fb to be used on a given output
|
||||
*
|
||||
|
|
|
@ -899,6 +899,13 @@ ecore_drm2_output_next_fb_set(Ecore_Drm2_Output *output, Ecore_Drm2_Fb *fb)
|
|||
output->next = fb;
|
||||
}
|
||||
|
||||
EAPI Ecore_Drm2_Fb *
|
||||
ecore_drm2_output_current_fb_get(Ecore_Drm2_Output *output)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(output, NULL);
|
||||
return output->current;
|
||||
}
|
||||
|
||||
EAPI void
|
||||
ecore_drm2_output_crtc_size_get(Ecore_Drm2_Output *output, int *w, int *h)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue