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

Issue 2498253002: Fix three causes of blank thumbnails. (Closed)

Created:
4 years, 1 month ago by aelias_dont_use
Modified:
4 years, 1 month ago
CC:
agrieve+watch_chromium.org, chromium-reviews, Jinsuk Kim, mdjones
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix three causes of blank thumbnails. All three of these fixes are required to address the devil case http://crbug.com/659459, and some of them also help with some of the other flickers. 1. In onPageLoadStarted, the URL can be the same as before, in particular because history-item scroll offset restores count as load starts. These history restores often fire late in page load, *after* the thumbnail was taken, leading to immediately throwing out the thumbnail we just took earlier in page load. Switch to the "invalidate" path which only ejects the thumbnail if the URL changed. 2. In CacheTab, which is often called just to refresh the thumbnail with the latest state, if readback is currently impossible, we used to remove the old thumbnail. Keep it instead. 3. Switch to the more reliable Surfaces-based mechanism for readback. The layer-based mechanism often outputs black screenshots in difficult racy cases like onStop readbacks. The Surface-based mechanism had been reverted because it tickles a driver bug on Nexus 7 2013 that itself causes some flickers, but I verified that the repro scenario for that is quite niche, and even on Nexus 7 it's probably less severe than the black screenshot problem this fixes. NOTRY=true BUG=636630, 640561, 659459, 646336 Committed: https://crrev.com/834bda0d8d9e1f244539e898b211542ba061db25 Cr-Commit-Position: refs/heads/master@{#432322}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -18 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelSelectorImpl.java View 2 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/android/compositor/tab_content_manager.cc View 1 chunk +10 lines, -11 lines 0 comments Download
M ui/android/delegated_frame_host_android.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 16 (9 generated)
aelias_OOO_until_Jul13
Hi tedchoc@, PTAL.
4 years, 1 month ago (2016-11-15 04:21:36 UTC) #3
Ted C
lgtm
4 years, 1 month ago (2016-11-15 17:18:41 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2498253002/1
4 years, 1 month ago (2016-11-16 00:33:09 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-16 00:43:21 UTC) #12
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/834bda0d8d9e1f244539e898b211542ba061db25 Cr-Commit-Position: refs/heads/master@{#432322}
4 years, 1 month ago (2016-11-16 00:45:34 UTC) #14
horo
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/2505753003/ by horo@chromium.org. ...
4 years, 1 month ago (2016-11-16 01:13:14 UTC) #15
findit-for-me
4 years, 1 month ago (2016-11-16 01:37:03 UTC) #16
Message was sent while issue was closed.
FYI: Findit identified this CL at revision 432322 as the culprit for
failures in the build cycles as shown on:
https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb...

Powered by Google App Engine
This is Rietveld 408576698