Cogl.OnscreenDirtyCallback

function onOnscreenDirtyCallback(onscreen: Cogl.Onscreen, info: Cogl.OnscreenDirtyInfo): void {
}
  

Is a callback that can be registered via Cogl.Onscreen.prototype.add_dirty_callback to be called when the windowing system determines that a region of the onscreen window has been lost and the application should redraw it.

Since 1.16

onscreen

The onscreen that the frame is associated with

info

A Cogl.OnscreenDirtyInfo struct containing the details of the dirty area