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

Side by Side Diff: gpu/ipc/service/direct_composition_surface_win.h

Issue 2938543002: Detect HDR capability (Closed)
Patch Set: histograms updated Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GPU_IPC_SERVICE_DIRECT_COMPOSITION_SURFACE_WIN_H_ 5 #ifndef GPU_IPC_SERVICE_DIRECT_COMPOSITION_SURFACE_WIN_H_
6 #define GPU_IPC_SERVICE_DIRECT_COMPOSITION_SURFACE_WIN_H_ 6 #define GPU_IPC_SERVICE_DIRECT_COMPOSITION_SURFACE_WIN_H_
7 7
8 #include <d3d11.h> 8 #include <d3d11.h>
9 #include <dcomp.h> 9 #include <dcomp.h>
10 #include <windows.h> 10 #include <windows.h>
(...skipping 16 matching lines...) Expand all
27 public: 27 public:
28 DirectCompositionSurfaceWin( 28 DirectCompositionSurfaceWin(
29 std::unique_ptr<gfx::VSyncProvider> vsync_provider, 29 std::unique_ptr<gfx::VSyncProvider> vsync_provider,
30 base::WeakPtr<ImageTransportSurfaceDelegate> delegate, 30 base::WeakPtr<ImageTransportSurfaceDelegate> delegate,
31 HWND parent_window); 31 HWND parent_window);
32 32
33 // Returns true if there's an output on the current adapter that can 33 // Returns true if there's an output on the current adapter that can
34 // use overlays. 34 // use overlays.
35 static bool AreOverlaysSupported(); 35 static bool AreOverlaysSupported();
36 36
37 // Returns true if there is an HDR capable display connected.
38 static bool IsHDRSupported();
39
37 bool InitializeNativeWindow(); 40 bool InitializeNativeWindow();
38 41
39 // GLSurfaceEGL implementation. 42 // GLSurfaceEGL implementation.
40 using GLSurfaceEGL::Initialize; 43 using GLSurfaceEGL::Initialize;
41 bool Initialize(gl::GLSurfaceFormat format) override; 44 bool Initialize(gl::GLSurfaceFormat format) override;
42 void Destroy() override; 45 void Destroy() override;
43 gfx::Size GetSize() override; 46 gfx::Size GetSize() override;
44 bool IsOffscreen() override; 47 bool IsOffscreen() override;
45 void* GetHandle() override; 48 void* GetHandle() override;
46 bool Resize(const gfx::Size& size, 49 bool Resize(const gfx::Size& size,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 102
100 base::win::ScopedComPtr<ID3D11Device> d3d11_device_; 103 base::win::ScopedComPtr<ID3D11Device> d3d11_device_;
101 base::win::ScopedComPtr<IDCompositionDevice2> dcomp_device_; 104 base::win::ScopedComPtr<IDCompositionDevice2> dcomp_device_;
102 105
103 DISALLOW_COPY_AND_ASSIGN(DirectCompositionSurfaceWin); 106 DISALLOW_COPY_AND_ASSIGN(DirectCompositionSurfaceWin);
104 }; 107 };
105 108
106 } // namespace gpu 109 } // namespace gpu
107 110
108 #endif // GPU_IPC_SERVICE_DIRECT_COMPOSITION_SURFACE_WIN_H_ 111 #endif // GPU_IPC_SERVICE_DIRECT_COMPOSITION_SURFACE_WIN_H_
OLDNEW
« no previous file with comments | « gpu/ipc/common/gpu_param_traits_macros.h ('k') | gpu/ipc/service/direct_composition_surface_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698