Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Issue 1985483002: [Merge M51] aw: Avoid livelock bouncing between zero and non-zero memory (Closed)

Created:
4 years, 7 months ago by boliu
Modified:
4 years, 7 months ago
Reviewers:
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@2704
Target Ref:
refs/pending/branch-heads/2704
Project:
chromium
Visibility:
Public.

Description

[Merge M51] aw: 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 Review-Url: https://codereview.chromium.org/1975273003 Cr-Commit-Position: refs/heads/master@{#393730} (cherry picked from commit 7a7e615adc82dad9642eacf1002f681cd5fb584b) Committed: https://chromium.googlesource.com/chromium/src/+/5733e91f080449584a5567c41bd1a4ac5b08fa50

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -5 lines) Patch
M android_webview/browser/browser_view_renderer.h View 1 chunk +0 lines, -1 line 0 comments Download
M android_webview/browser/browser_view_renderer.cc View 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
boliu
4 years, 7 months ago (2016-05-14 14:30:27 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
5733e91f080449584a5567c41bd1a4ac5b08fa50 (tree was closed).

Powered by Google App Engine
This is Rietveld 408576698