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

Issue 2189493002: Android: Fix some tab placeholder/thumbnail readbacks (Closed)

Created:
4 years, 4 months ago by no sievers
Modified:
4 years, 4 months ago
Reviewers:
danakj
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, nona+watch_chromium.org, darin-cc_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Android: Fix some tab placeholder/thumbnail readbacks There is a problem with readbacks when hiding tabs which seems to come from the SurfaceLayer being detach from the tree. I think this was a regression with https://codereview.chromium.org/1732323002/ which previously would be resilient to the actual RWHV's layer being detached. This caused the readback to only complete when you switch back to a tab and the layer gets reattached sometimes. Furthermore, it caused tabs to not have placeholders in the cache at all since TabContentManager has a kMaxReadbacks limit of 1, so the interrupted readback was preventing other ones also. The fix is to use the new Surface readback API which works regardless of the SurfaceLayer's attachment state and bypasses the UI compositor BUG=574537 Committed: https://crrev.com/3e5517a5b9a2c05bc1300539337236ccd969b2b2 Cr-Commit-Position: refs/heads/master@{#407980}

Patch Set 1 #

Patch Set 2 : Android: Fix some tab placeholder/thumbnail readbacks #

Total comments: 2

Patch Set 3 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -3 lines) Patch
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 2 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
no sievers
ptal
4 years, 4 months ago (2016-07-26 23:02:39 UTC) #3
danakj
LGTM :) https://codereview.chromium.org/2189493002/diff/20001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/2189493002/diff/20001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode895 content/browser/renderer_host/render_widget_host_view_android.cc:895: // Make sure the layer doesn't get ...
4 years, 4 months ago (2016-07-26 23:20:12 UTC) #5
no sievers
https://codereview.chromium.org/2189493002/diff/20001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/2189493002/diff/20001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode895 content/browser/renderer_host/render_widget_host_view_android.cc:895: // Make sure the layer doesn't get deleted until ...
4 years, 4 months ago (2016-07-26 23:21:59 UTC) #6
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/2189493002/40001
4 years, 4 months ago (2016-07-26 23:22:21 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-07-27 00:00:25 UTC) #11
commit-bot: I haz the power
4 years, 4 months ago (2016-07-27 00:04:25 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3e5517a5b9a2c05bc1300539337236ccd969b2b2
Cr-Commit-Position: refs/heads/master@{#407980}

Powered by Google App Engine
This is Rietveld 408576698