New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 763150 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Sep 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 1
Type: Bug

Blocking:
issue 759310



Sign in to add a comment

Android tab previews broken

Project Member Reported by rlanday@chromium.org, Sep 7 2017

Issue description

On recent Chrome for Android builds, the tab switcher is not showing tab previews for tabs other than the current one. The tab previews are white. See attached screenshot.

I bisected archived builds and landed exactly on this CL:
https://chromium-review.googlesource.com/c/chromium/src/+/637003

Repro steps:

1. Open at least one tab to a page other than the "new tab" page.
2. Switch to the other tab.
3. Tap the tab selector button and view the previews.
 
Tab previews broken.png
299 KB View Download

Comment 1 by wutao@chromium.org, Sep 7 2017

How does this preview work? Calling CopyOutputRequest?

Maybe the Clank does not work with the new CopyOutputRequest/Result API yet?
Description: Show this description
I'm not intimately familiar with how it works, but I believe this is the method that gets called to capture the tab preview:
https://chromium.googlesource.com/chromium/src/+/a33dfc460d880eb254b297c16ad9d56f0a36b211/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/content/TabContentManager.java#168
Cc: wutao@chromium.org rlanday@chromium.org
Labels: ReleaseBlock-Beta M-63
Owner: m...@chromium.org
Status: Assigned (was: Started)

Comment 5 by m...@chromium.org, Sep 7 2017

Looking over the Android-specific parts of the change, I think I may have found the issue. Looks like one call point was accidentally changed to return a bitmap instead of a texture: https://chromium-review.googlesource.com/c/chromium/src/+/637003/14/ui/android/delegated_frame_host_android.cc

And, this breaks things because the callback is bound to a helper function that expects a texture, not a bitmap result: https://cs.chromium.org/chromium/src/content/browser/renderer_host/render_widget_host_view_android.cc?rcl=e8e49e184dbaf840d63be93f2163fa1dafa1e208&l=1164

So, the fix should be as simple as changing from viz::CopyOutputRequest::ResultFormat::RGBA_BITMAP to viz::CopyOutputRequest::ResultFormat::RGBA_TEXTURE in delegated_frame_host_android.cc.

Can someone with an Android set up confirm this fixes the issue?
Let me check real quick
Yes, that fixes the issue :)

Comment 8 by m...@chromium.org, Sep 8 2017

Blocking: 759310
Status: Fixed (was: Assigned)
Project Member

Comment 10 by bugdroid1@chromium.org, Sep 8 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/d7cdcb3e2776e69567d4457099d7af97b48c1ff6

commit d7cdcb3e2776e69567d4457099d7af97b48c1ff6
Author: Ryan Landay <rlanday@chromium.org>
Date: Fri Sep 08 00:47:41 2017

Fix Android tab previews in tab selector

In this CL:
https://chromium-review.googlesource.com/c/chromium/src/+/637003

a call to CopyOutputRequest::CreateRequest() was accidentally changed to return
a bitmap instead of a texture. The passed-in callback is bound to a helper
function that expects a texture, which ended up preventing tabs from being read
into bitmaps. This CL fixes this issue.

Bug:  763150 
Change-Id: I2f2dba76ab129349938a79d151a81ec81b5871c9
Reviewed-on: https://chromium-review.googlesource.com/656511
Reviewed-by: Yuri Wiitala <miu@chromium.org>
Reviewed-by: Ted Choc <tedchoc@chromium.org>
Reviewed-by: Theresa <twellington@chromium.org>
Commit-Queue: Ryan Landay <rlanday@chromium.org>
Cr-Commit-Position: refs/heads/master@{#500458}
[modify] https://crrev.com/d7cdcb3e2776e69567d4457099d7af97b48c1ff6/ui/android/delegated_frame_host_android.cc

Sign in to add a comment