Chromium Code Reviews
Descriptionaw: Avoid livelock bouncing between zero and non-zero memory
The assumption that compositor will produce a new frame immediately
after assigned memory is wrong. Which means resetting memory back to 0
if compositor does not produce a frame can cause a livelock. See bug for
a specific case where this actually happens.
Easy fix is just stop setting memory back to 0 at end of draw in this
case. This is safe because |hardware_enabled_| is only an internal state
of BrowserViewRenderer, and ReleaseHardware still guarantees memory set
back to 0 even if |hardware_enabled_| is false before the call. Remove
the getter to ensure nothing else can use |hardware_enabled_|.
Also revert unsetting |hardware_enabled_|, basically reverting the
original fix. This is no longer needed since RTM does not use this
condition to check whether it should clean up content on GL on render
thread.
BUG=611729
Committed: https://crrev.com/7a7e615adc82dad9642eacf1002f681cd5fb584b
Cr-Commit-Position: refs/heads/master@{#393730}
Patch Set 1 #
Total comments: 1
Patch Set 2 : revert fix #
Messages
Total messages: 11 (6 generated)
|
||||||||||||||||||||||||||||