Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compositing: Don't count the root layer when checking to see when to take the screenshot. #6863

Merged
merged 1 commit into from Jul 31, 2015
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

compositing: Don't count the root layer when checking to see when to

take the screenshot, as it isn't painted after first layout comes in.
  • Loading branch information
pcwalton committed Jul 31, 2015
commit 1589fe54047e0363db6b404aa1ba87fd76fd1a52
@@ -1324,7 +1324,12 @@ impl<Window: WindowMethods> IOCompositor<Window> {
// have not requested a paint of the current epoch.
// If a layer has sent a request for the current epoch, but it hasn't
// arrived yet then this layer is waiting for a paint message.
if layer_data.requested_epoch == current_epoch && layer_data.painted_epoch != current_epoch {
//
// Also don't check the root layer, because the paint task won't paint
// anything for it after first layout.
if layer_data.id != LayerId::null() &&
layer_data.requested_epoch == current_epoch &&
layer_data.painted_epoch != current_epoch {
return true;
}

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.