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

Issue 1563183008: Added capability on Windows to get the physical dimensions of your attached monitors. Also added th… (Closed)

Created:
4 years, 11 months ago by Bret
Modified:
4 years, 11 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added capability on Windows to get the physical dimensions of your attached monitors. Also added this information to about:gpu for testing. BUG=547914 TEST=go to the about:gpu URL and check for "Diagonal Monitor Size". it should show the size of your monitors Committed: https://crrev.com/b840e2f4ec9132b931f7ad54fd8fd20285e4eaa3 Cr-Commit-Position: refs/heads/master@{#369635} Committed: https://crrev.com/b2f706f91654deb8ffea59a2be4bdc38c1f2bb7f Cr-Commit-Position: refs/heads/master@{#370180}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 40

Patch Set 4 : addressed comments #

Patch Set 5 : . #

Total comments: 16

Patch Set 6 : review comments 2 #

Total comments: 35

Patch Set 7 : reivew comments 3 #

Total comments: 2

Patch Set 8 : . #

Total comments: 6

Patch Set 9 : . #

Total comments: 9

Patch Set 10 : . #

Patch Set 11 : . #

Total comments: 5

Patch Set 12 : fix gn build and applied guid brace warning fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -0 lines) Patch
M content/browser/gpu/gpu_internals_ui.cc View 1 2 3 4 5 2 chunks +16 lines, -0 lines 0 comments Download
M ui/gfx/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
M ui/gfx/gfx.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A ui/gfx/win/physical_size.h View 1 2 3 4 5 6 7 8 1 chunk +31 lines, -0 lines 0 comments Download
A ui/gfx/win/physical_size.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +162 lines, -0 lines 0 comments Download

Messages

Total messages: 56 (14 generated)
Bret
4 years, 11 months ago (2016-01-09 00:33:48 UTC) #3
scottmg
Cool, looks good. Just some minor stuff. https://codereview.chromium.org/1563183008/diff/40001/content/browser/gpu/gpu_internals_ui.cc File content/browser/gpu/gpu_internals_ui.cc (right): https://codereview.chromium.org/1563183008/diff/40001/content/browser/gpu/gpu_internals_ui.cc#newcode163 content/browser/gpu/gpu_internals_ui.cc:163: std::ostringstream size_stream; ...
4 years, 11 months ago (2016-01-09 01:00:06 UTC) #4
robliao
https://codereview.chromium.org/1563183008/diff/40001/content/browser/gpu/gpu_internals_ui.cc File content/browser/gpu/gpu_internals_ui.cc (right): https://codereview.chromium.org/1563183008/diff/40001/content/browser/gpu/gpu_internals_ui.cc#newcode156 content/browser/gpu/gpu_internals_ui.cc:156: for (size_t i = 0; i < display_sizes.size(); ++i) ...
4 years, 11 months ago (2016-01-11 18:42:20 UTC) #5
Bret
https://codereview.chromium.org/1563183008/diff/40001/content/browser/gpu/gpu_internals_ui.cc File content/browser/gpu/gpu_internals_ui.cc (right): https://codereview.chromium.org/1563183008/diff/40001/content/browser/gpu/gpu_internals_ui.cc#newcode156 content/browser/gpu/gpu_internals_ui.cc:156: for (size_t i = 0; i < display_sizes.size(); ++i) ...
4 years, 11 months ago (2016-01-12 00:23:47 UTC) #6
robliao
Do you also happen to know under what circumstances physical display information is unavailable? https://codereview.chromium.org/1563183008/diff/40001/ui/gfx/win/physical_size.cc ...
4 years, 11 months ago (2016-01-12 01:00:37 UTC) #7
scottmg
(non-owner) LGTM. https://codereview.chromium.org/1563183008/diff/80001/content/browser/gpu/gpu_internals_ui.cc File content/browser/gpu/gpu_internals_ui.cc (right): https://codereview.chromium.org/1563183008/diff/80001/content/browser/gpu/gpu_internals_ui.cc#newcode158 content/browser/gpu/gpu_internals_ui.cc:158: double size_mm = sqrt(w * w + ...
4 years, 11 months ago (2016-01-12 01:03:13 UTC) #8
Bret
On 2016/01/12 01:00:37, robliao wrote: > Do you also happen to know under what circumstances ...
4 years, 11 months ago (2016-01-12 01:11:35 UTC) #9
scottmg
On 2016/01/12 01:11:35, Bret Sepulveda wrote: > On 2016/01/12 01:00:37, robliao wrote: > > Do ...
4 years, 11 months ago (2016-01-12 01:13:18 UTC) #10
robliao
On 2016/01/12 01:13:18, scottmg wrote: > On 2016/01/12 01:11:35, Bret Sepulveda wrote: > > On ...
4 years, 11 months ago (2016-01-12 01:26:04 UTC) #11
robliao
On 2016/01/12 01:26:04, robliao wrote: > On 2016/01/12 01:13:18, scottmg wrote: > > On 2016/01/12 ...
4 years, 11 months ago (2016-01-12 18:13:21 UTC) #12
Bret
made the display.h method changes as well https://codereview.chromium.org/1563183008/diff/80001/content/browser/gpu/gpu_internals_ui.cc File content/browser/gpu/gpu_internals_ui.cc (right): https://codereview.chromium.org/1563183008/diff/80001/content/browser/gpu/gpu_internals_ui.cc#newcode158 content/browser/gpu/gpu_internals_ui.cc:158: double size_mm ...
4 years, 11 months ago (2016-01-12 22:55:17 UTC) #13
robliao
Thanks for the changes! Did a closer reading and we're almost good to go. https://codereview.chromium.org/1563183008/diff/100001/ui/gfx/display.h ...
4 years, 11 months ago (2016-01-13 00:22:11 UTC) #14
Bret
https://codereview.chromium.org/1563183008/diff/100001/ui/gfx/display.h File ui/gfx/display.h (right): https://codereview.chromium.org/1563183008/diff/100001/ui/gfx/display.h#newcode143 ui/gfx/display.h:143: void SetPhysicalSize(int width_mm, int height_mm); On 2016/01/13 00:22:10, robliao ...
4 years, 11 months ago (2016-01-13 18:02:49 UTC) #15
scottmg
https://codereview.chromium.org/1563183008/diff/100001/ui/gfx/win/physical_size.cc File ui/gfx/win/physical_size.cc (right): https://codereview.chromium.org/1563183008/diff/100001/ui/gfx/win/physical_size.cc#newcode35 ui/gfx/win/physical_size.cc:35: device_info_list, device_info, DICS_FLAG_GLOBAL, 0, DIREG_DEV, KEY_READ)); On 2016/01/13 18:02:48, ...
4 years, 11 months ago (2016-01-13 18:08:36 UTC) #16
robliao
https://codereview.chromium.org/1563183008/diff/100001/ui/gfx/win/physical_size.cc File ui/gfx/win/physical_size.cc (right): https://codereview.chromium.org/1563183008/diff/100001/ui/gfx/win/physical_size.cc#newcode35 ui/gfx/win/physical_size.cc:35: device_info_list, device_info, DICS_FLAG_GLOBAL, 0, DIREG_DEV, KEY_READ)); On 2016/01/13 18:08:36, ...
4 years, 11 months ago (2016-01-13 18:15:07 UTC) #17
robliao
Non-Owner LGTM after the below comment is addressed https://codereview.chromium.org/1563183008/diff/100001/ui/gfx/display.h File ui/gfx/display.h (right): https://codereview.chromium.org/1563183008/diff/100001/ui/gfx/display.h#newcode143 ui/gfx/display.h:143: void ...
4 years, 11 months ago (2016-01-13 18:18:23 UTC) #18
Bret
needs review by owners
4 years, 11 months ago (2016-01-13 18:55:46 UTC) #20
robliao
https://codereview.chromium.org/1563183008/diff/120001/ui/gfx/win/physical_size.cc File ui/gfx/win/physical_size.cc (right): https://codereview.chromium.org/1563183008/diff/120001/ui/gfx/win/physical_size.cc#newcode104 ui/gfx/win/physical_size.cc:104: interface_data.cbSize = sizeof(SP_DEVICE_INTERFACE_DATA); sizeof(interface_data)
4 years, 11 months ago (2016-01-13 19:10:32 UTC) #21
sky
https://codereview.chromium.org/1563183008/diff/140001/ui/gfx/display.h File ui/gfx/display.h (right): https://codereview.chromium.org/1563183008/diff/140001/ui/gfx/display.h#newcode139 ui/gfx/display.h:139: bool IsPhysicalSizeAvailable() const; Is there a compelling reason to ...
4 years, 11 months ago (2016-01-13 21:00:10 UTC) #22
sky
https://codereview.chromium.org/1563183008/diff/140001/ui/gfx/win/physical_size.cc File ui/gfx/win/physical_size.cc (right): https://codereview.chromium.org/1563183008/diff/140001/ui/gfx/win/physical_size.cc#newcode55 ui/gfx/win/physical_size.cc:55: *width_mm = ((data[68] & 0xF0) << 4) + data[66]; ...
4 years, 11 months ago (2016-01-13 22:15:54 UTC) #23
Bret
https://codereview.chromium.org/1563183008/diff/120001/ui/gfx/win/physical_size.cc File ui/gfx/win/physical_size.cc (right): https://codereview.chromium.org/1563183008/diff/120001/ui/gfx/win/physical_size.cc#newcode104 ui/gfx/win/physical_size.cc:104: interface_data.cbSize = sizeof(SP_DEVICE_INTERFACE_DATA); On 2016/01/13 19:10:32, robliao wrote: > ...
4 years, 11 months ago (2016-01-14 01:28:23 UTC) #24
sky
https://codereview.chromium.org/1563183008/diff/160001/ui/gfx/screen_win.cc File ui/gfx/screen_win.cc (right): https://codereview.chromium.org/1563183008/diff/160001/ui/gfx/screen_win.cc#newcode30 ui/gfx/screen_win.cc:30: int64_t GenerateDisplayId(const std::string& str) { Is this change still ...
4 years, 11 months ago (2016-01-14 15:36:58 UTC) #25
robliao
https://codereview.chromium.org/1563183008/diff/160001/ui/gfx/win/physical_size.cc File ui/gfx/win/physical_size.cc (right): https://codereview.chromium.org/1563183008/diff/160001/ui/gfx/win/physical_size.cc#newcode77 ui/gfx/win/physical_size.cc:77: SetupDiGetDeviceInterfaceDetail(device_info_list, interface_data, nullptr, 0, On 2016/01/14 15:36:58, sky wrote: ...
4 years, 11 months ago (2016-01-14 18:07:06 UTC) #26
sky
On 2016/01/14 18:07:06, robliao wrote: > https://codereview.chromium.org/1563183008/diff/160001/ui/gfx/win/physical_size.cc > File ui/gfx/win/physical_size.cc (right): > > https://codereview.chromium.org/1563183008/diff/160001/ui/gfx/win/physical_size.cc#newcode77 > ...
4 years, 11 months ago (2016-01-14 20:39:05 UTC) #27
robliao
On 2016/01/14 20:39:05, sky wrote: > On 2016/01/14 18:07:06, robliao wrote: > > > https://codereview.chromium.org/1563183008/diff/160001/ui/gfx/win/physical_size.cc ...
4 years, 11 months ago (2016-01-14 20:50:35 UTC) #28
jbauman
content/browser/gpu lgtm
4 years, 11 months ago (2016-01-14 20:52:42 UTC) #29
sky
On Thu, Jan 14, 2016 at 12:50 PM, <robliao@chromium.org> wrote: > On 2016/01/14 20:39:05, sky ...
4 years, 11 months ago (2016-01-14 21:00:41 UTC) #30
robliao
On 2016/01/14 21:00:41, sky wrote: > On Thu, Jan 14, 2016 at 12:50 PM, <mailto:robliao@chromium.org> ...
4 years, 11 months ago (2016-01-14 21:02:40 UTC) #31
Bret
https://codereview.chromium.org/1563183008/diff/160001/ui/gfx/screen_win.cc File ui/gfx/screen_win.cc (right): https://codereview.chromium.org/1563183008/diff/160001/ui/gfx/screen_win.cc#newcode30 ui/gfx/screen_win.cc:30: int64_t GenerateDisplayId(const std::string& str) { On 2016/01/14 15:36:58, sky ...
4 years, 11 months ago (2016-01-14 21:46:45 UTC) #32
sky
LGTM
4 years, 11 months ago (2016-01-14 23:23:03 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1563183008/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1563183008/200001
4 years, 11 months ago (2016-01-14 23:26:40 UTC) #36
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 11 months ago (2016-01-15 00:49:11 UTC) #38
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/b840e2f4ec9132b931f7ad54fd8fd20285e4eaa3 Cr-Commit-Position: refs/heads/master@{#369635}
4 years, 11 months ago (2016-01-15 00:51:09 UTC) #40
Nico
https://codereview.chromium.org/1563183008/diff/200001/ui/gfx/win/physical_size.cc File ui/gfx/win/physical_size.cc (right): https://codereview.chromium.org/1563183008/diff/200001/ui/gfx/win/physical_size.cc#newcode21 ui/gfx/win/physical_size.cc:21: 0xE6F07B5F, 0xEE97, 0x4A90, 0xB0, 0x76, 0x33, 0xF5, 0x7B, 0xF4, ...
4 years, 11 months ago (2016-01-15 02:16:50 UTC) #42
vasilii
A revert of this CL (patchset #11 id:200001) has been created in https://codereview.chromium.org/1593543002/ by vasilii@chromium.org. ...
4 years, 11 months ago (2016-01-15 09:38:45 UTC) #43
huangs
https://codereview.chromium.org/1563183008/diff/200001/ui/gfx/win/physical_size.cc File ui/gfx/win/physical_size.cc (right): https://codereview.chromium.org/1563183008/diff/200001/ui/gfx/win/physical_size.cc#newcode85 ui/gfx/win/physical_size.cc:85: reinterpret_cast<SP_DEVICE_INTERFACE_DETAIL_DATA*>(malloc(buffer_size))); This mixes malloc() and free, which is undefined ...
4 years, 11 months ago (2016-01-15 15:34:57 UTC) #45
huangs
https://codereview.chromium.org/1563183008/diff/200001/ui/gfx/win/physical_size.cc File ui/gfx/win/physical_size.cc (right): https://codereview.chromium.org/1563183008/diff/200001/ui/gfx/win/physical_size.cc#newcode85 ui/gfx/win/physical_size.cc:85: reinterpret_cast<SP_DEVICE_INTERFACE_DETAIL_DATA*>(malloc(buffer_size))); I mean malloc() and delete.
4 years, 11 months ago (2016-01-15 15:41:05 UTC) #46
scottmg
https://codereview.chromium.org/1563183008/diff/200001/ui/gfx/win/physical_size.cc File ui/gfx/win/physical_size.cc (right): https://codereview.chromium.org/1563183008/diff/200001/ui/gfx/win/physical_size.cc#newcode85 ui/gfx/win/physical_size.cc:85: reinterpret_cast<SP_DEVICE_INTERFACE_DETAIL_DATA*>(malloc(buffer_size))); On 2016/01/15 15:41:05, huangs wrote: > I mean ...
4 years, 11 months ago (2016-01-15 17:39:35 UTC) #47
huangs
https://codereview.chromium.org/1563183008/diff/200001/ui/gfx/win/physical_size.cc File ui/gfx/win/physical_size.cc (right): https://codereview.chromium.org/1563183008/diff/200001/ui/gfx/win/physical_size.cc#newcode85 ui/gfx/win/physical_size.cc:85: reinterpret_cast<SP_DEVICE_INTERFACE_DETAIL_DATA*>(malloc(buffer_size))); Ah. So SP_DEVICE_INTERFACE_DETAIL_DATA needs to talk to C ...
4 years, 11 months ago (2016-01-15 18:35:53 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1563183008/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1563183008/220001
4 years, 11 months ago (2016-01-19 19:09:20 UTC) #52
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 11 months ago (2016-01-19 20:26:33 UTC) #54
commit-bot: I haz the power
4 years, 11 months ago (2016-01-19 20:29:08 UTC) #56
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/b2f706f91654deb8ffea59a2be4bdc38c1f2bb7f
Cr-Commit-Position: refs/heads/master@{#370180}

Powered by Google App Engine
This is Rietveld 408576698