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

Issue 2938543002: Detect HDR capability (Closed)

Created:
3 years, 6 months ago by hubbe
Modified:
3 years, 5 months ago
Reviewers:
palmer, Mark P, jbauman
CC:
asvitkine+watch_chromium.org, chromium-reviews, piman+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Detect HDR capability This calls the windows API for detecting if the output display can do HDR output or not. Note that this API depends on a recent version of the WinSDK, but has been guarded by ifdefs to make sure that it compiles even without the new SDK. (But without HDR detection.) BUG=682416 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2938543002 Cr-Commit-Position: refs/heads/master@{#482479} Committed: https://chromium.googlesource.com/chromium/src/+/b9ab2095d1f334506aa74681fa758adf03ab4a13

Patch Set 1 #

Patch Set 2 : didn't mean to include toolchain update #

Patch Set 3 : compile fix #

Total comments: 4

Patch Set 4 : merged #

Patch Set 5 : moved to dc surface #

Total comments: 15

Patch Set 6 : updated histograms #

Total comments: 6

Patch Set 7 : comments addressed #

Patch Set 8 : updated histograms and enums #

Patch Set 9 : histograms updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -1 line) Patch
M gpu/config/gpu_info.h View 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/config/gpu_info.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M gpu/config/gpu_info_collector.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M gpu/ipc/common/gpu_info.mojom View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M gpu/ipc/common/gpu_info_struct_traits.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/ipc/common/gpu_info_struct_traits.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M gpu/ipc/common/gpu_param_traits_macros.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M gpu/ipc/service/direct_composition_surface_win.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/ipc/service/direct_composition_surface_win.cc View 1 2 3 4 5 2 chunks +49 lines, -0 lines 0 comments Download
M gpu/ipc/service/gpu_init.cc View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 5 6 7 1 chunk +29 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 77 (44 generated)
hubbe
Not sure if this got sent before or not. PTAL.
3 years, 6 months ago (2017-06-15 21:23:49 UTC) #16
jbauman
https://codereview.chromium.org/2938543002/diff/40001/gpu/config/gpu_info.h File gpu/config/gpu_info.h (right): https://codereview.chromium.org/2938543002/diff/40001/gpu/config/gpu_info.h#newcode227 gpu/config/gpu_info.h:227: bool hdr = false; Add this to MergeGPUInfoGL, GPUInfo::EnumerateFields, ...
3 years, 6 months ago (2017-06-15 21:45:00 UTC) #17
brucedawson
On 2017/06/15 21:23:49, hubbe wrote: > Not sure if this got sent before or not. ...
3 years, 6 months ago (2017-06-15 21:48:50 UTC) #18
brucedawson
On 2017/06/15 21:48:50, brucedawson wrote: > On 2017/06/15 21:23:49, hubbe wrote: > > Not sure ...
3 years, 6 months ago (2017-06-15 21:57:12 UTC) #19
hubbe
https://codereview.chromium.org/2938543002/diff/40001/gpu/config/gpu_info.h File gpu/config/gpu_info.h (right): https://codereview.chromium.org/2938543002/diff/40001/gpu/config/gpu_info.h#newcode227 gpu/config/gpu_info.h:227: bool hdr = false; On 2017/06/15 21:44:59, jbauman wrote: ...
3 years, 6 months ago (2017-06-20 23:09:34 UTC) #26
hubbe
On 2017/06/20 23:09:34, hubbe wrote: > https://codereview.chromium.org/2938543002/diff/40001/gpu/config/gpu_info.h > File gpu/config/gpu_info.h (right): > > https://codereview.chromium.org/2938543002/diff/40001/gpu/config/gpu_info.h#newcode227 > ...
3 years, 6 months ago (2017-06-22 21:54:27 UTC) #29
chromium-reviews
Hmm, I'm trying to figure out where the right place to make the "hdr mode" ...
3 years, 6 months ago (2017-06-22 23:37:42 UTC) #30
jbauman
lgtm
3 years, 6 months ago (2017-06-23 02:44:56 UTC) #31
jbauman
On 2017/06/22 23:37:42, chromium-reviews wrote: > Hmm, I'm trying to figure out where the right ...
3 years, 6 months ago (2017-06-23 02:47:17 UTC) #32
hubbe
On 2017/06/23 02:47:17, jbauman wrote: > On 2017/06/22 23:37:42, chromium-reviews wrote: > > Hmm, I'm ...
3 years, 6 months ago (2017-06-23 03:46:09 UTC) #33
jbauman
On 2017/06/23 03:46:09, hubbe wrote: > On 2017/06/23 02:47:17, jbauman wrote: > > On 2017/06/22 ...
3 years, 6 months ago (2017-06-23 20:27:22 UTC) #34
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/2938543002/80001
3 years, 6 months ago (2017-06-23 20:48:02 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/472702)
3 years, 6 months ago (2017-06-23 21:02:39 UTC) #38
hubbe
+palmer for security review
3 years, 5 months ago (2017-06-26 18:21:08 UTC) #40
palmer
Your CL description looks like it got truncated. :) Also "APi" -> "API".
3 years, 5 months ago (2017-06-26 19:07:47 UTC) #41
hubbe
On 2017/06/26 19:07:47, palmer wrote: > Your CL description looks like it got truncated. :) ...
3 years, 5 months ago (2017-06-26 19:11:24 UTC) #43
palmer
IPC security LGTM, with note. https://codereview.chromium.org/2938543002/diff/80001/gpu/ipc/service/direct_composition_surface_win.cc File gpu/ipc/service/direct_composition_surface_win.cc (right): https://codereview.chromium.org/2938543002/diff/80001/gpu/ipc/service/direct_composition_surface_win.cc#newcode1015 gpu/ipc/service/direct_composition_surface_win.cc:1015: unsigned int i = ...
3 years, 5 months ago (2017-06-26 19:16:41 UTC) #44
hubbe
https://codereview.chromium.org/2938543002/diff/80001/gpu/ipc/service/direct_composition_surface_win.cc File gpu/ipc/service/direct_composition_surface_win.cc (right): https://codereview.chromium.org/2938543002/diff/80001/gpu/ipc/service/direct_composition_surface_win.cc#newcode1015 gpu/ipc/service/direct_composition_surface_win.cc:1015: unsigned int i = 0; On 2017/06/26 19:16:41, palmer ...
3 years, 5 months ago (2017-06-26 19:20:42 UTC) #45
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/2938543002/80001
3 years, 5 months ago (2017-06-26 19:21:21 UTC) #47
ccameron
On 2017/06/26 19:21:21, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
3 years, 5 months ago (2017-06-26 19:27:49 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/474169)
3 years, 5 months ago (2017-06-26 19:31:04 UTC) #50
hubbe
+mpearson for histograms
3 years, 5 months ago (2017-06-26 19:48:36 UTC) #52
chromium-reviews
That seems like a good place to start. It's needed in a few other places, ...
3 years, 5 months ago (2017-06-26 19:50:02 UTC) #53
Mark P
https://codereview.chromium.org/2938543002/diff/80001/tools/metrics/histograms/enums.xml File tools/metrics/histograms/enums.xml (right): https://codereview.chromium.org/2938543002/diff/80001/tools/metrics/histograms/enums.xml#newcode8706 tools/metrics/histograms/enums.xml:8706: +<enum name="DXGI_COLOR_SPACE_TYPE" type="int"> It looks like these come from ...
3 years, 5 months ago (2017-06-26 20:40:12 UTC) #54
hubbe
https://codereview.chromium.org/2938543002/diff/80001/tools/metrics/histograms/enums.xml File tools/metrics/histograms/enums.xml (right): https://codereview.chromium.org/2938543002/diff/80001/tools/metrics/histograms/enums.xml#newcode8706 tools/metrics/histograms/enums.xml:8706: +<enum name="DXGI_COLOR_SPACE_TYPE" type="int"> On 2017/06/26 20:40:11, Mark P wrote: ...
3 years, 5 months ago (2017-06-26 21:01:21 UTC) #59
Mark P
https://codereview.chromium.org/2938543002/diff/80001/tools/metrics/histograms/enums.xml File tools/metrics/histograms/enums.xml (right): https://codereview.chromium.org/2938543002/diff/80001/tools/metrics/histograms/enums.xml#newcode8706 tools/metrics/histograms/enums.xml:8706: +<enum name="DXGI_COLOR_SPACE_TYPE" type="int"> On 2017/06/26 21:01:21, hubbe wrote: > ...
3 years, 5 months ago (2017-06-26 21:30:59 UTC) #60
hubbe
https://codereview.chromium.org/2938543002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2938543002/diff/80001/tools/metrics/histograms/histograms.xml#newcode23545 tools/metrics/histograms/histograms.xml:23545: + Recorded when the gpu process starts. On 2017/06/26 ...
3 years, 5 months ago (2017-06-26 22:08:59 UTC) #63
Mark P
xml files lgtm modulo one request --mark https://codereview.chromium.org/2938543002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2938543002/diff/80001/tools/metrics/histograms/histograms.xml#newcode23545 tools/metrics/histograms/histograms.xml:23545: + Recorded ...
3 years, 5 months ago (2017-06-26 22:17:49 UTC) #64
hubbe
https://codereview.chromium.org/2938543002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2938543002/diff/80001/tools/metrics/histograms/histograms.xml#newcode23545 tools/metrics/histograms/histograms.xml:23545: + Recorded when the gpu process starts. On 2017/06/26 ...
3 years, 5 months ago (2017-06-26 22:24:19 UTC) #65
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/2938543002/160001
3 years, 5 months ago (2017-06-27 00:04:36 UTC) #72
commit-bot: I haz the power
Committed patchset #9 (id:160001) as https://chromium.googlesource.com/chromium/src/+/b9ab2095d1f334506aa74681fa758adf03ab4a13
3 years, 5 months ago (2017-06-27 00:09:29 UTC) #75
Eric Seckler
This patch is causing a build warning when I try building locally on win10, which ...
3 years, 5 months ago (2017-06-27 14:02:35 UTC) #76
chromium-reviews
3 years, 5 months ago (2017-06-27 15:59:53 UTC) #77
Message was sent while issue was closed.
Apologies, will fix later today when I get to work.


On Tue, Jun 27, 2017 at 7:02 AM, <eseckler@chromium.org> wrote:

> This patch is causing a build warning when I try building locally on win10,
> which makes build fail (warnings treated as error):
>
> d:\eseckler\chromium\src\gpu\ipc\service\direct_
> composition_surface_win.cc(1002):
> error C2220: warning treated as error - no 'object' file generated
> d:\eseckler\chromium\src\gpu\ipc\service\direct_
> composition_surface_win.cc(1002):
> warning C4189: 'hdr_monitor_found': local variable is initialized but not
> referenced
>
> looks like the declaration/definition of hdr_monitor_found should be
> inside the
> ifdef...
>
> https://codereview.chromium.org/2938543002/
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698