[client] egl: only copy damaged areas when using dmabuf

This speeds up the copy significantly when the frame only has small
amount of damage.
This commit is contained in:
Quantum
2021-07-18 03:33:53 -04:00
committed by Geoffrey McRae
parent 09893fd728
commit a14de25661
7 changed files with 35 additions and 18 deletions

View File

@@ -583,7 +583,7 @@ bool egl_on_frame(void * opaque, const FrameBuffer * frame, int dmaFd,
{
struct Inst * this = (struct Inst *)opaque;
if (!egl_desktop_update(this->desktop, frame, dmaFd))
if (!egl_desktop_update(this->desktop, frame, dmaFd, damageRects, damageRectsCount))
{
DEBUG_INFO("Failed to to update the desktop");
return false;