Chromium Code Reviews
DescriptionFix screen flicker when resizing CRD window in split-screen mode
This problem had two sources:
1.) The default background color for Android apps is white, but we use
black to clear our canvas. When dragging, this white background is
shown when the window is resized past the boundaries of the image we
render. When the user stops dragging and the window is resized, white
is briefly shown followed by black.
The fix here is to use black for our default background color. DEBUG
builds will show a flash since the debug color is green, but Release
builds will look clean.
2.) When resizing, we received events in a different order than when we
first start the Desktop activity. These events could cause a premature
reposition of the canvas (due to either screen or image dimensions not
being set). If we didn't have both, our calculations would be off and
we would render the image incorrectly for one frame before receiving the
rest of the info and correctly drawing the image. The differences in
these two frames would cause a flash.
The fix here is to ensure we have both screen and image dimensions
before repositioning the image and requesting the frame to be rendered.
BUG=662456
Committed: https://crrev.com/41c6db6d1a394e6e3a12c60ad7a4696045c527bf
Cr-Commit-Position: refs/heads/master@{#430378}
Patch Set 1 #Patch Set 2 : Fixing some comments before the review. #
Total comments: 2
Depends on Patchset: Messages
Total messages: 15 (8 generated)
|
|||||||||||||||||||||||||||||||||||||