Chromium Code Reviews
DescriptionFix tab switch time regression from backgrounded renderers change
Switching between tabs is slightly slower after making it possible for
the browser to background hidden renderers. It appears the current
event sequence is to background the renderer and then have it free up
its resources in the GPU process. However in the background state it
runs slower and has its I/O throttled, slowing its interaction with
the GPU process. This slowdown in turn delays the newly-foregrounded
tab's GPU commands, resulting in increased tab switch times.
This change reverses the sequence of events that occur when a tab
is no longer foreground, freeing resources with the GPU before
putting the renderer in the background. This allows the renderer
to interact with the GPU at full speed, and complete its cleanup
before the newly-foregrounded tab begins issuing commands to the GPU,
restoring original tab switch times.
BUG=502502
Committed: https://crrev.com/a57db5090fe6a56c17a73bb5adc7562411840ae4
Cr-Commit-Position: refs/heads/master@{#335525}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Add comment. #Patch Set 3 : Edit comment. #Messages
Total messages: 8 (3 generated)
|