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

Unified Diff: gpu/ipc/service/direct_composition_surface_win.cc

Issue 2958143002: Fix some bugs in the HDR detection code (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/direct_composition_surface_win.cc
diff --git a/gpu/ipc/service/direct_composition_surface_win.cc b/gpu/ipc/service/direct_composition_surface_win.cc
index 8f30ca668dfd34983c9be881e2e3c29f8e83645b..706fa86e2f402fc45f1a2089b44fd4926071858b 100644
--- a/gpu/ipc/service/direct_composition_surface_win.cc
+++ b/gpu/ipc/service/direct_composition_surface_win.cc
@@ -999,7 +999,7 @@ bool DirectCompositionSurfaceWin::AreOverlaysSupported() {
// static
bool DirectCompositionSurfaceWin::IsHDRSupported() {
- bool hdr_monitor_found = true;
+ bool hdr_monitor_found = false;
#if defined(ENABLE_HDR_DETECTION)
base::win::ScopedComPtr<ID3D11Device> d3d11_device =
gl::QueryD3D11DeviceObjectFromANGLE();
@@ -1031,14 +1031,11 @@ bool DirectCompositionSurfaceWin::IsHDRSupported() {
if (desc.ColorSpace == DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020) {
hdr_monitor_found = true;
- return true;
}
}
UMA_HISTOGRAM_BOOLEAN("GPU.Output.HDR", hdr_monitor_found);
- return hdr_monitor_found;
-#else
- return false;
#endif
+ return hdr_monitor_found;
}
bool DirectCompositionSurfaceWin::InitializeNativeWindow() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698