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

Issue 1992853002: Create a LayerDelegate for recreated layers to draw when their content is invalidated. (Closed)

Created:
4 years, 7 months ago by oshima
Modified:
4 years, 7 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, kalyank, sadrul, dcheng, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/e1dbe8e0ce560e5e2979e44b39268ac24bc3fc25 Cr-Commit-Position: refs/heads/master@{#394993}

Patch Set 1 : #

Total comments: 21

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -22 lines) Patch
M ash/rotator/screen_rotation_animator.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/aura/wm_window_aura.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/drag_window_controller.h View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M ash/wm/drag_window_controller.cc View 1 2 3 7 chunks +88 lines, -6 lines 0 comments Download
M ash/wm/drag_window_resizer_unittest.cc View 1 2 4 chunks +37 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/contents_web_view.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/view_unittest_aura.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/wm/core/window_animations.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/wm/core/window_util.h View 1 2 chunks +18 lines, -1 line 0 comments Download
M ui/wm/core/window_util.cc View 3 chunks +17 lines, -5 lines 0 comments Download
M ui/wm/core/window_util_unittest.cc View 1 3 chunks +87 lines, -1 line 0 comments Download

Messages

Total messages: 50 (30 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1992853002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1992853002/1
4 years, 7 months ago (2016-05-18 16:48:28 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device-gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-gn/builds/7794) ios-simulator-gn on ...
4 years, 7 months ago (2016-05-18 16:53:12 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1992853002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1992853002/20001
4 years, 7 months ago (2016-05-18 17:11:30 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device-gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-gn/builds/7844)
4 years, 7 months ago (2016-05-18 17:18:22 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1992853002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1992853002/60001
4 years, 7 months ago (2016-05-18 17:43:25 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1992853002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1992853002/120001
4 years, 7 months ago (2016-05-18 23:54:30 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-19 01:28:45 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1992853002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1992853002/140001
4 years, 7 months ago (2016-05-19 18:40:47 UTC) #25
oshima
4 years, 7 months ago (2016-05-19 18:45:27 UTC) #30
sky
https://codereview.chromium.org/1992853002/diff/140001/ash/wm/drag_window_controller.cc File ash/wm/drag_window_controller.cc (right): https://codereview.chromium.org/1992853002/diff/140001/ash/wm/drag_window_controller.cc#newcode32 ash/wm/drag_window_controller.cc:32: class DragWindowLayerDelegate : public ui::LayerDelegate { Description https://codereview.chromium.org/1992853002/diff/140001/ash/wm/drag_window_controller.cc#newcode34 ash/wm/drag_window_controller.cc:34: ...
4 years, 7 months ago (2016-05-19 20:06:49 UTC) #31
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-19 20:56:48 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1992853002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1992853002/180001
4 years, 7 months ago (2016-05-19 23:28:31 UTC) #36
oshima
https://codereview.chromium.org/1992853002/diff/140001/ash/wm/drag_window_controller.cc File ash/wm/drag_window_controller.cc (right): https://codereview.chromium.org/1992853002/diff/140001/ash/wm/drag_window_controller.cc#newcode32 ash/wm/drag_window_controller.cc:32: class DragWindowLayerDelegate : public ui::LayerDelegate { On 2016/05/19 20:06:49, ...
4 years, 7 months ago (2016-05-19 23:32:22 UTC) #37
sky
LGTM https://codereview.chromium.org/1992853002/diff/200001/ash/wm/drag_window_controller.cc File ash/wm/drag_window_controller.cc (right): https://codereview.chromium.org/1992853002/diff/200001/ash/wm/drag_window_controller.cc#newcode49 ash/wm/drag_window_controller.cc:49: if (IsDelegateValid(drag_window_->layer())) This is subtle and worth a ...
4 years, 7 months ago (2016-05-20 00:05:24 UTC) #38
oshima
https://codereview.chromium.org/1992853002/diff/200001/ash/wm/drag_window_controller.cc File ash/wm/drag_window_controller.cc (right): https://codereview.chromium.org/1992853002/diff/200001/ash/wm/drag_window_controller.cc#newcode49 ash/wm/drag_window_controller.cc:49: if (IsDelegateValid(drag_window_->layer())) On 2016/05/20 00:05:24, sky wrote: > This ...
4 years, 7 months ago (2016-05-20 03:16:08 UTC) #39
oshima
tbr'ing sadrul for trivial change in content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
4 years, 7 months ago (2016-05-20 03:17:44 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1992853002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1992853002/220001
4 years, 7 months ago (2016-05-20 03:18:16 UTC) #45
sadrul
lgtm (sky@ should maybe be back in c/b/OWNERS :) )
4 years, 7 months ago (2016-05-20 03:27:19 UTC) #46
commit-bot: I haz the power
Committed patchset #4 (id:220001)
4 years, 7 months ago (2016-05-20 04:08:29 UTC) #48
commit-bot: I haz the power
4 years, 7 months ago (2016-05-20 04:10:24 UTC) #50
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e1dbe8e0ce560e5e2979e44b39268ac24bc3fc25
Cr-Commit-Position: refs/heads/master@{#394993}

Powered by Google App Engine
This is Rietveld 408576698