DescriptionAndroid: 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 #Messages
Total messages: 13 (7 generated)
|