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

Issue 2875123002: Check internal display RootWindow before getting the compositor. (Closed)

Created:
3 years, 7 months ago by wutao
Modified:
3 years, 7 months ago
Reviewers:
oshima, kylechar, sadrul
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Check internal display RootWindow before getting the compositor. When we find the id for the internal display it gets set and Display::HasInternalDisplay() returns true. The internal display id isn't reset, even when an internal display is removed. So even though we might have an internal display id, there is no guarantee there is a RootWindow for it. BUG=721452 TEST=local device Review-Url: https://codereview.chromium.org/2875123002 Cr-Commit-Position: refs/heads/master@{#471167} Committed: https://chromium.googlesource.com/chromium/src/+/afd793fce0cf63ed0ac18a37a5a5f2f92e92d9a4

Patch Set 1 #

Total comments: 3

Patch Set 2 : Use ShellPort. #

Total comments: 2

Patch Set 3 : Fix nits. #

Patch Set 4 : Revert to patch 1 using Shell. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -8 lines) Patch
M ash/wallpaper/wallpaper_controller.cc View 2 3 1 chunk +9 lines, -8 lines 0 comments Download

Messages

Total messages: 30 (20 generated)
wutao
Hi kylechar@, Please take a look. Thank you, Tao
3 years, 7 months ago (2017-05-11 18:42:57 UTC) #2
oshima
Sorry for not being able to catch this early. https://codereview.chromium.org/2875123002/diff/1/ash/wallpaper/wallpaper_controller.cc File ash/wallpaper/wallpaper_controller.cc (right): https://codereview.chromium.org/2875123002/diff/1/ash/wallpaper/wallpaper_controller.cc#newcode421 ash/wallpaper/wallpaper_controller.cc:421: ...
3 years, 7 months ago (2017-05-11 21:03:45 UTC) #7
wutao
Hi Oshima, PTAL. Thank you, Tao https://codereview.chromium.org/2875123002/diff/1/ash/wallpaper/wallpaper_controller.cc File ash/wallpaper/wallpaper_controller.cc (right): https://codereview.chromium.org/2875123002/diff/1/ash/wallpaper/wallpaper_controller.cc#newcode421 ash/wallpaper/wallpaper_controller.cc:421: display::Display::InternalDisplayId()); On 2017/05/11 ...
3 years, 7 months ago (2017-05-11 21:34:35 UTC) #8
oshima
lgtm https://codereview.chromium.org/2875123002/diff/20001/ash/wallpaper/wallpaper_controller.cc File ash/wallpaper/wallpaper_controller.cc (right): https://codereview.chromium.org/2875123002/diff/20001/ash/wallpaper/wallpaper_controller.cc#newcode423 ash/wallpaper/wallpaper_controller.cc:423: root_window->aura_window() GetLayer()
3 years, 7 months ago (2017-05-11 22:29:26 UTC) #11
wutao
Thanks. https://codereview.chromium.org/2875123002/diff/20001/ash/wallpaper/wallpaper_controller.cc File ash/wallpaper/wallpaper_controller.cc (right): https://codereview.chromium.org/2875123002/diff/20001/ash/wallpaper/wallpaper_controller.cc#newcode423 ash/wallpaper/wallpaper_controller.cc:423: root_window->aura_window() On 2017/05/11 22:29:26, oshima wrote: > GetLayer() ...
3 years, 7 months ago (2017-05-11 22:39:28 UTC) #12
sadrul
https://codereview.chromium.org/2875123002/diff/1/ash/wallpaper/wallpaper_controller.cc File ash/wallpaper/wallpaper_controller.cc (right): https://codereview.chromium.org/2875123002/diff/1/ash/wallpaper/wallpaper_controller.cc#newcode421 ash/wallpaper/wallpaper_controller.cc:421: display::Display::InternalDisplayId()); On 2017/05/11 21:34:35, wutao wrote: > On 2017/05/11 ...
3 years, 7 months ago (2017-05-11 23:41:12 UTC) #16
oshima
On 2017/05/11 23:41:12, sadrul wrote: > https://codereview.chromium.org/2875123002/diff/1/ash/wallpaper/wallpaper_controller.cc > File ash/wallpaper/wallpaper_controller.cc (right): > > https://codereview.chromium.org/2875123002/diff/1/ash/wallpaper/wallpaper_controller.cc#newcode421 > ...
3 years, 7 months ago (2017-05-11 23:50:03 UTC) #19
wutao
On 2017/05/11 23:50:03, oshima wrote: > On 2017/05/11 23:41:12, sadrul wrote: > > > https://codereview.chromium.org/2875123002/diff/1/ash/wallpaper/wallpaper_controller.cc ...
3 years, 7 months ago (2017-05-12 00:50:04 UTC) #22
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/2875123002/60001
3 years, 7 months ago (2017-05-12 01:24:30 UTC) #27
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 01:39:06 UTC) #30
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/afd793fce0cf63ed0ac18a37a5a5...

Powered by Google App Engine
This is Rietveld 408576698