[host] nvfbc: remove rectangles that are entirely contained in others

This makes nvfbc report less useless damage and makes the client run faster.
This commit is contained in:
Quantum 2021-08-13 02:01:31 -04:00 committed by Geoffrey McRae
parent e945955d13
commit d3ea9662bf

View file

@ -428,6 +428,8 @@ static void updateDamageRects(CaptureFrame * frame)
};
}
rectId = rectsRejectContained(frame->damageRects, rectId);
done:
frame->damageRectsCount = rectId;
}