PebbleOS v4.47.0-512-g5285d4236
Loading...
Searching...
No Matches
Display flush

Copies the dirty region of the system framebuffer to the display driver. More...

Functions

void compositor_display_init (void)
 Check that the display can show the system framebuffer.
 
void compositor_display_update (void(*handle_update_complete_cb)(bool success))
 Flush the dirty region of the system framebuffer to the display.
 
bool compositor_display_update_in_progress (void)
 Check whether a display update is in progress.
 

Detailed Description

Copies the dirty region of the system framebuffer to the display driver.

Function Documentation

◆ compositor_display_init()

void compositor_display_init ( void  )

Check that the display can show the system framebuffer.

Asserts when the display size or format differs from the platform's.

◆ compositor_display_update()

void compositor_display_update ( void(*)(bool success)  handle_update_complete_cb)

Flush the dirty region of the system framebuffer to the display.

Does nothing when the framebuffer is not dirty. On completion the dirty region is reset.

Parameters
handle_update_complete_cbCalled once the update completes, with whether it reached the panel, or NULL.

◆ compositor_display_update_in_progress()

bool compositor_display_update_in_progress ( void  )

Check whether a display update is in progress.

Returns
true while the display driver is still consuming the framebuffer.