Descriptiongpu/linux: create a child window to control resize and avoid flashes
When the window is resized, some drivers clobber the back buffer.
Unfortunately that can happen in the middle of a frame, and so we lose part
of what we've drawn and don't know it until we swapped (resulting in
flashes).
So instead, we create a child window, with a CopyFromParent visual (to avoid
inducing extra blits in the driver), that we can resize exactly in Resize(),
correctly ordered with GL, so that the buffer clobber is at the beginning of the
frame, before we will draw anything to it.
BUG=326995
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272290
Patch Set 1 #
Total comments: 1
Messages
Total messages: 8 (0 generated)
|