| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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_ | 
| OLD | NEW | 
|---|