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

Issue 10826198: Use persistent ID/names for displays. (Closed)

Created:
8 years, 4 months ago by Jun Mukai
Modified:
8 years, 4 months ago
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, derat+watch_chromium.org, ben+watch_chromium.org
Visibility:
Public.

Description

Use persistent ID/names for displays. Adds to x11_util the API to get device manufacturer's ID, serial#, and human readable name. Use the manufacturer ID and serial# for gfx::Display::id(). BUG=139103 TEST=manually injected debug printing and made sure how the device ID/names would be. The device name would be visible once crbug.com/130385 is fixed. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152519

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : remove persistent_id() and change id() to int64 #

Total comments: 14

Patch Set 8 : #

Total comments: 8

Patch Set 9 : #

Total comments: 22

Patch Set 10 : #

Total comments: 12

Patch Set 11 : #

Total comments: 6

Patch Set 12 : #

Total comments: 4

Patch Set 13 : #

Patch Set 14 : kInvalidID -> kInvalidDisplayID since Mac #define "kInvalidID"... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+301 lines, -38 lines) Patch
M ash/display/display_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -2 lines 0 comments Download
M ash/display/display_controller.cc View 1 2 3 4 5 6 7 8 10 chunks +12 lines, -13 lines 0 comments Download
M ash/display/multi_display_manager.h View 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M ash/display/multi_display_manager.cc View 1 2 3 4 5 6 6 chunks +29 lines, -6 lines 0 comments Download
M ui/aura/display_change_observer_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +22 lines, -3 lines 0 comments Download
M ui/aura/display_manager.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/single_display_manager.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/single_display_manager.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/base/x/x11_util.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +14 lines, -0 lines 0 comments Download
M ui/base/x/x11_util.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +180 lines, -0 lines 0 comments Download
M ui/gfx/display.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +14 lines, -8 lines 0 comments Download
M ui/gfx/display.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +14 lines, -5 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
Jun Mukai
8 years, 4 months ago (2012-08-08 07:38:13 UTC) #1
Jun Mukai
oshima, can you take another look? I modified the code a bit to modify the ...
8 years, 4 months ago (2012-08-09 09:02:06 UTC) #2
oshima
http://codereview.chromium.org/10826198/diff/7021/ash/display/display_controller.h File ash/display/display_controller.h (right): http://codereview.chromium.org/10826198/diff/7021/ash/display/display_controller.h#newcode94 ash/display/display_controller.h:94: // map. // TODO(oshima): remove |is_primary| when non extended ...
8 years, 4 months ago (2012-08-10 03:09:51 UTC) #3
Jun Mukai
http://codereview.chromium.org/10826198/diff/7021/ash/display/display_controller.h File ash/display/display_controller.h (right): http://codereview.chromium.org/10826198/diff/7021/ash/display/display_controller.h#newcode94 ash/display/display_controller.h:94: // map. On 2012/08/10 03:09:51, oshima wrote: > // ...
8 years, 4 months ago (2012-08-10 09:39:52 UTC) #4
Jun Mukai
Hello Rahul and Stephane, oshima is on vacation right now. Could you review this CL?
8 years, 4 months ago (2012-08-14 11:45:14 UTC) #5
rkc
On 2012/08/14 11:45:14, Jun Mukai wrote: > Hello Rahul and Stephane, > > oshima is ...
8 years, 4 months ago (2012-08-14 20:34:03 UTC) #6
marcheu
http://codereview.chromium.org/10826198/diff/7022/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): http://codereview.chromium.org/10826198/diff/7022/ui/base/x/x11_util.cc#newcode1093 ui/base/x/x11_util.cc:1093: if (desc_buf[3] == 0xfc) { maybe replace 0xfc with ...
8 years, 4 months ago (2012-08-14 21:29:53 UTC) #7
sky
LGTM - I'm not a good reviewer for the X side of these changes. Ask ...
8 years, 4 months ago (2012-08-14 22:32:05 UTC) #8
Jun Mukai
http://codereview.chromium.org/10826198/diff/7022/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): http://codereview.chromium.org/10826198/diff/7022/ui/base/x/x11_util.cc#newcode1093 ui/base/x/x11_util.cc:1093: if (desc_buf[3] == 0xfc) { On 2012/08/14 21:29:53, marcheu ...
8 years, 4 months ago (2012-08-15 05:14:08 UTC) #9
Jun Mukai
Dan, can you review the X11 code in this CL?
8 years, 4 months ago (2012-08-15 07:53:42 UTC) #10
Daniel Erat
*x11* mostly looks fine to me; just a few nits. http://codereview.chromium.org/10826198/diff/12002/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): http://codereview.chromium.org/10826198/diff/12002/ui/base/x/x11_util.cc#newcode314 ...
8 years, 4 months ago (2012-08-15 14:13:04 UTC) #11
Jun Mukai
http://codereview.chromium.org/10826198/diff/12002/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): http://codereview.chromium.org/10826198/diff/12002/ui/base/x/x11_util.cc#newcode314 ui/base/x/x11_util.cc:314: display, &randr_version_major, &randr_version_minor); On 2012/08/15 14:13:04, Daniel Erat wrote: ...
8 years, 4 months ago (2012-08-16 07:52:18 UTC) #12
Daniel Erat
http://codereview.chromium.org/10826198/diff/11002/ui/aura/display_change_observer_x11.cc File ui/aura/display_change_observer_x11.cc (right): http://codereview.chromium.org/10826198/diff/11002/ui/aura/display_change_observer_x11.cc#newcode158 ui/aura/display_change_observer_x11.cc:158: &serial_number, NULL)) { maybe also check that manufacturer_id is ...
8 years, 4 months ago (2012-08-16 15:28:49 UTC) #13
Jun Mukai
http://codereview.chromium.org/10826198/diff/12002/ui/base/x/x11_util.cc File ui/base/x/x11_util.cc (right): http://codereview.chromium.org/10826198/diff/12002/ui/base/x/x11_util.cc#newcode1061 ui/base/x/x11_util.cc:1061: On 2012/08/15 14:13:04, Daniel Erat wrote: > check the ...
8 years, 4 months ago (2012-08-17 05:50:09 UTC) #14
Daniel Erat
http://codereview.chromium.org/10826198/diff/8002/ui/aura/display_change_observer_x11.cc File ui/aura/display_change_observer_x11.cc (right): http://codereview.chromium.org/10826198/diff/8002/ui/aura/display_change_observer_x11.cc#newcode162 ui/aura/display_change_observer_x11.cc:162: gfx::Display::GetID(manufacturer_id, serial_number)); Maybe I'm being overly paranoid here, but ...
8 years, 4 months ago (2012-08-17 14:33:46 UTC) #15
Jun Mukai
http://codereview.chromium.org/10826198/diff/8002/ui/aura/display_change_observer_x11.cc File ui/aura/display_change_observer_x11.cc (right): http://codereview.chromium.org/10826198/diff/8002/ui/aura/display_change_observer_x11.cc#newcode162 ui/aura/display_change_observer_x11.cc:162: gfx::Display::GetID(manufacturer_id, serial_number)); On 2012/08/17 14:33:46, Daniel Erat wrote: > ...
8 years, 4 months ago (2012-08-20 05:56:38 UTC) #16
Daniel Erat
lgtm http://codereview.chromium.org/10826198/diff/7025/ash/display/display_controller.h File ash/display/display_controller.h (right): http://codereview.chromium.org/10826198/diff/7025/ash/display/display_controller.h#newcode110 ash/display/display_controller.h:110: std::map<int64, aura::RootWindow*> root_windows_; nit: add a comment describing ...
8 years, 4 months ago (2012-08-20 15:12:07 UTC) #17
Jun Mukai
http://codereview.chromium.org/10826198/diff/7025/ash/display/display_controller.h File ash/display/display_controller.h (right): http://codereview.chromium.org/10826198/diff/7025/ash/display/display_controller.h#newcode110 ash/display/display_controller.h:110: std::map<int64, aura::RootWindow*> root_windows_; On 2012/08/20 15:12:07, Daniel Erat wrote: ...
8 years, 4 months ago (2012-08-21 02:13:11 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/10826198/3039
8 years, 4 months ago (2012-08-21 04:03:13 UTC) #19
commit-bot: I haz the power
Try job failure for 10826198-3039 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-21 04:19:19 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/10826198/14018
8 years, 4 months ago (2012-08-21 04:31:50 UTC) #21
commit-bot: I haz the power
Change committed as 152519
8 years, 4 months ago (2012-08-21 06:46:24 UTC) #22
yurys
After this change I'm getting the following linker errror: ../../third_party/gold/gold64: obj/ui/libui.a(obj/ui/base/x/ui.x11_util.o): in function ui::(anonymous namespace)::IsRandRAvailable():../../ui/base/x/x11_util.cc:319: ...
8 years, 4 months ago (2012-08-21 11:57:17 UTC) #23
mukai1
sorry for that. could you patch the change of http://codereview.chromium.org/10836356/ ? On Aug 21, 2012 ...
8 years, 4 months ago (2012-08-21 12:00:15 UTC) #24
yurys
On 2012/08/21 12:00:15, mukai1 wrote: > sorry for that. could you patch the change of ...
8 years, 4 months ago (2012-08-21 12:07:36 UTC) #25
mukai1
Oops, I do not yet get the LGTM of the owner of UI -- sky ...
8 years, 4 months ago (2012-08-21 12:58:17 UTC) #26
yurys
On 2012/08/21 12:58:17, mukai1 wrote: > Oops, I do not yet get the LGTM of ...
8 years, 4 months ago (2012-08-21 13:06:42 UTC) #27
mukai1
I guess that's why your colleagues synced the tree slightly earlier than my CL? It ...
8 years, 4 months ago (2012-08-21 13:17:00 UTC) #28
yurys
On 2012/08/21 13:17:00, mukai1 wrote: > I guess that's why your colleagues synced the tree ...
8 years, 4 months ago (2012-08-21 14:06:14 UTC) #29
mukai1
Okay, then I will do the dcommit with tbr. Please wait. 2012/8/21 <yurys@chromium.org> > On ...
8 years, 4 months ago (2012-08-21 14:15:01 UTC) #30
mukai1
8 years, 4 months ago (2012-08-21 14:23:35 UTC) #31
Landed as crrev.com/152554



2012/8/21 Jun Mukai <mukai@google.com>

> Okay, then I will do the dcommit with tbr.  Please wait.
>
>
> 2012/8/21 <yurys@chromium.org>
>
> On 2012/08/21 13:17:00, mukai1 wrote:
>>
>>> I guess that's why your colleagues synced the tree slightly earlier than
>>> my
>>> CL?
>>>
>> He (loislo@) managed to build it from r152551 so your change is there.
>>
>>
>>    It hits on tasak@ (an webkit guy in Tokyo office) too.  I do not know
>>> why builders don't report failures, but IIRC DumpRenderTree won't be
>>> built
>>> in chromium builders.  I don't know webkit-side.
>>>
>>
>>  Sorry, I couldn't evaluate the severity of my failure.  If you feel the
>>> patch should be landed ASAP, I would go with TBR.  The change is quite
>>> small so it would be fine.  Please tell me your idea.
>>>
>>
>> Since it breaks compilation and the fix is pretty straightforward I'd
>> commit it
>> with tbr now and resolve possible issues later.
>>
>>
>>
>>
>>  -- Jun Mukai
>>>
>>
>>
>>  2012/8/21 <mailto:yurys@chromium.org>
>>>
>>
>>  > On 2012/08/21 12:58:17, mukai1 wrote:
>>> >
>>> >> Oops, I do not yet get the LGTM of the owner of UI -- sky will
>>> respond in
>>> >> MTV time.
>>> >> How urgent is it?  I would push it as TBR if it breaks some builders
>>> or
>>> >> something.
>>> >>
>>> >
>>> > Although the linker fails on my local machine I don't see any failing
>>> > bots:( I
>>> > can live with the fix manually applied locally. Interesting thing is
>>> that
>>> > my
>>> > colleague on a similar setup couldn't reproduce the problem.
>>> >
>>> >
>>> >  -- Jun Mukai
>>> >>
>>> >
>>> >
>>> >  2012/8/21 <mailto:yurys@chromium.org>
>>> >>
>>> >
>>> >  >
>>> >> > On 2012/08/21 12:00:15, mukai1 wrote:
>>> >> >
>>> >> >> sorry for that.  could you patch the change of
>>> >> >>
>>> >>
>>> >
>>> > http://codereview.chromium.******org/10836356/%253Chttp://**coderev**
>>> > iew.chromium.org/10836356/%3E<**http://codereview.chromium.**
>>> org/10836356/%3E <http://codereview.chromium.org/10836356/%3E>>
>>>
>>> > ?
>>> >
>>> >  >>
>>> >> >
>>> >> > That helps, thanks for quick reply! Should we land that change?
>>> >> >
>>> >> >
>>> >>
>>> >
>>> >
https://chromiumcodereview.****a**ppspot.com/10826198/%**253Chttps:/**<http:/...
>>> >
>>>
>>
>> /chromiumcodereview.appspot.****com/10826198/<http://appspot.**
>>
com/10826198/%3Chttps://**chromiumcodereview.appspot.**com/10826198/<http://appspot.com/10826198/%3Chttps://chromiumcodereview.appspot.com/10826198/>
>> >
>>
>>  > >
>>> >
>>> >> >
>>> >>
>>> >
>>> >
>>> >
>>> >
>>>
>>
>> https://chromiumcodereview.**a**ppspot.com/10826198/%3Chttps:/**
>>
/chromiumcodereview.appspot.**com/10826198/<http://appspot.com/10826198/%3Chttps://chromiumcodereview.appspot.com/10826198/>
>> >
>>
>>> >
>>>
>>
>>
>>
>>
https://chromiumcodereview.**appspot.com/10826198/<https://chromiumcodereview...
>>
>
>

Powered by Google App Engine
This is Rietveld 408576698