New issue
Advanced search Search tips

Issue 604868 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: May 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Bookmarks bar is transparent if you drag a New Tab off a primary-monitor window to a window on secondary monitor

Project Member Reported by w...@chromium.org, Apr 19 2016

Issue description

Version: 51.0.2704.0 dev
OS: ChromeOS

What steps will reproduce the problem?
(1) Configure a system with two monitors. Mine has secondary to left of primary.
(2) Open a window on primary monitor, and open several tabs in it.
(3) Open a New Tab in that window.
(4) Drag that New Tab out of the window, across to the secondary monitor.

Observe that the bookmarks area of the window is transparent once it reaches the secondary monitor.
 

Comment 1 by w...@chromium.org, Apr 19 2016

Cc: danakj@chromium.org
Attaching a screenshot to illustrate the issue.
Screenshot 2016-04-19 at 13.36.58 - Display 2.png
19.7 KB View Download

Comment 2 by danakj@chromium.org, Apr 19 2016

Cc: sadrul@chromium.org osh...@chromium.org
Painting problem?

You can take a trace to see what the recording looks like: https://www.chromium.org/developers/how-tos/trace-event-profiling-tool/frame-viewer
Labels: -Pri-3 Pri-1
Owner: osh...@chromium.org
Status: Assigned (was: Untriaged)

Comment 4 by osh...@chromium.org, May 13 2016

Status: Started (was: Assigned)
I had a fix, which was buried in other changes. I just need to resurrect it.
Project Member

Comment 5 by bugdroid1@chromium.org, May 20 2016

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

commit e1dbe8e0ce560e5e2979e44b39268ac24bc3fc25
Author: oshima <oshima@chromium.org>
Date: Fri May 20 04:08:16 2016

Create a LayerDelegate for recreated layers to draw when their content is invalidated.

This is to mitigate the issue where the content of the layer has to be redrawn while dragging a window in another display. This can draw the display items recorded for different device scale factor which can have artifacts, but it's better than empty layer.

The same issue can happen during hiding/showing animation in theory, but I'm leaving them as is because that's very rare and most likely not noticeable.

BUG= 604868 
TEST=WindowUtilTest.RecreateLayersWithDelegate
TBR=sadrul@chromium.org

Review-Url: https://codereview.chromium.org/1992853002
Cr-Commit-Position: refs/heads/master@{#394993}

[modify] https://crrev.com/e1dbe8e0ce560e5e2979e44b39268ac24bc3fc25/ash/rotator/screen_rotation_animator.cc
[modify] https://crrev.com/e1dbe8e0ce560e5e2979e44b39268ac24bc3fc25/ash/wm/aura/wm_window_aura.cc
[modify] https://crrev.com/e1dbe8e0ce560e5e2979e44b39268ac24bc3fc25/ash/wm/drag_window_controller.cc
[modify] https://crrev.com/e1dbe8e0ce560e5e2979e44b39268ac24bc3fc25/ash/wm/drag_window_controller.h
[modify] https://crrev.com/e1dbe8e0ce560e5e2979e44b39268ac24bc3fc25/ash/wm/drag_window_resizer_unittest.cc
[modify] https://crrev.com/e1dbe8e0ce560e5e2979e44b39268ac24bc3fc25/chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc
[modify] https://crrev.com/e1dbe8e0ce560e5e2979e44b39268ac24bc3fc25/chrome/browser/ui/views/frame/contents_web_view.cc
[modify] https://crrev.com/e1dbe8e0ce560e5e2979e44b39268ac24bc3fc25/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
[modify] https://crrev.com/e1dbe8e0ce560e5e2979e44b39268ac24bc3fc25/ui/views/view_unittest_aura.cc
[modify] https://crrev.com/e1dbe8e0ce560e5e2979e44b39268ac24bc3fc25/ui/wm/core/window_animations.cc
[modify] https://crrev.com/e1dbe8e0ce560e5e2979e44b39268ac24bc3fc25/ui/wm/core/window_util.cc
[modify] https://crrev.com/e1dbe8e0ce560e5e2979e44b39268ac24bc3fc25/ui/wm/core/window_util.h
[modify] https://crrev.com/e1dbe8e0ce560e5e2979e44b39268ac24bc3fc25/ui/wm/core/window_util_unittest.cc

Comment 6 by osh...@chromium.org, May 20 2016

Labels: Merge-Request-51

Comment 7 by tin...@google.com, May 21 2016

Labels: -Merge-Request-51 Merge-Review-51 Hotlist-Merge-Review
[Automated comment] Less than 2 weeks to go before stable on M51, manual review required.

Comment 8 by osh...@chromium.org, May 26 2016

Labels: Merge-Request-52

Comment 9 by tin...@google.com, May 26 2016

Labels: -Merge-Request-52 Merge-Approved-52 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M52 (branch: 2743)
Project Member

Comment 10 by bugdroid1@chromium.org, May 27 2016

Labels: -merge-approved-52 merge-merged-2743
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c81fdc9edfb72dd0826075e2f77478f53577aea8

commit c81fdc9edfb72dd0826075e2f77478f53577aea8
Author: Mitsuru Oshima <oshima@chromium.org>
Date: Fri May 27 00:18:45 2016

Create a LayerDelegate for recreated layers to draw when their content is invalidated.

This is to mitigate the issue where the content of the layer has to be redrawn while dragging a window in another display. This can draw the display items recorded for different device scale factor which can have artifacts, but it's better than empty layer.

The same issue can happen during hiding/showing animation in theory, but I'm leaving them as is because that's very rare and most likely not noticeable.

BUG= 604868 
TEST=WindowUtilTest.RecreateLayersWithDelegate
TBR=sadrul@chromium.org

Review-Url: https://codereview.chromium.org/1992853002
Cr-Commit-Position: refs/heads/master@{#394993}
(cherry picked from commit e1dbe8e0ce560e5e2979e44b39268ac24bc3fc25)

Review URL: https://codereview.chromium.org/2020493002 .

Cr-Commit-Position: refs/branch-heads/2743@{#95}
Cr-Branched-From: 2b3ae3b8090361f8af5a611712fc1a5ab2de53cb-refs/heads/master@{#394939}

[modify] https://crrev.com/c81fdc9edfb72dd0826075e2f77478f53577aea8/ash/rotator/screen_rotation_animator.cc
[modify] https://crrev.com/c81fdc9edfb72dd0826075e2f77478f53577aea8/ash/wm/aura/wm_window_aura.cc
[modify] https://crrev.com/c81fdc9edfb72dd0826075e2f77478f53577aea8/ash/wm/drag_window_controller.cc
[modify] https://crrev.com/c81fdc9edfb72dd0826075e2f77478f53577aea8/ash/wm/drag_window_controller.h
[modify] https://crrev.com/c81fdc9edfb72dd0826075e2f77478f53577aea8/ash/wm/drag_window_resizer_unittest.cc
[modify] https://crrev.com/c81fdc9edfb72dd0826075e2f77478f53577aea8/chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc
[modify] https://crrev.com/c81fdc9edfb72dd0826075e2f77478f53577aea8/chrome/browser/ui/views/frame/contents_web_view.cc
[modify] https://crrev.com/c81fdc9edfb72dd0826075e2f77478f53577aea8/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
[modify] https://crrev.com/c81fdc9edfb72dd0826075e2f77478f53577aea8/ui/views/view_unittest_aura.cc
[modify] https://crrev.com/c81fdc9edfb72dd0826075e2f77478f53577aea8/ui/wm/core/window_animations.cc
[modify] https://crrev.com/c81fdc9edfb72dd0826075e2f77478f53577aea8/ui/wm/core/window_util.cc
[modify] https://crrev.com/c81fdc9edfb72dd0826075e2f77478f53577aea8/ui/wm/core/window_util.h
[modify] https://crrev.com/c81fdc9edfb72dd0826075e2f77478f53577aea8/ui/wm/core/window_util_unittest.cc

Labels: -Merge-Review-51 Merge-Rejected-51
We should probably punt this to R52, we are too close to stable if this is not a blocker. 
Labels: -Hotlist-Merge-review
Status: Fixed (was: Started)
Status: Verified (was: Fixed)
Verified on M52 beta (8350.37.0, 52.0.2743.46)  and TOT (8481.0.0, 53.0.2773.0)

Sign in to add a comment