OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 UI_GL_GL_ANGLE_UTIL_WIN_H_ | 5 #ifndef UI_GL_GL_ANGLE_UTIL_WIN_H_ |
6 #define UI_GL_GL_ANGLE_UTIL_WIN_H_ | 6 #define UI_GL_GL_ANGLE_UTIL_WIN_H_ |
7 | 7 |
8 #include <d3d11.h> | 8 #include <d3d11.h> |
9 #include <d3d9.h> | 9 #include <d3d9.h> |
| 10 #include <dcomp.h> |
10 | 11 |
11 #include "base/win/scoped_comptr.h" | 12 #include "base/win/scoped_comptr.h" |
12 #include "ui/gl/gl_export.h" | 13 #include "ui/gl/gl_export.h" |
13 | 14 |
14 namespace gl { | 15 namespace gl { |
15 | 16 |
16 GL_EXPORT base::win::ScopedComPtr<ID3D11Device> | 17 GL_EXPORT base::win::ScopedComPtr<ID3D11Device> |
17 QueryD3D11DeviceObjectFromANGLE(); | 18 QueryD3D11DeviceObjectFromANGLE(); |
18 GL_EXPORT base::win::ScopedComPtr<IDirect3DDevice9> | 19 GL_EXPORT base::win::ScopedComPtr<IDirect3DDevice9> |
19 QueryD3D9DeviceObjectFromANGLE(); | 20 QueryD3D9DeviceObjectFromANGLE(); |
20 | 21 |
| 22 // Query the DirectComposition device associated with a D3D11 device. May |
| 23 // create a new one if none exists. |
| 24 GL_EXPORT base::win::ScopedComPtr<IDCompositionDevice2> |
| 25 QueryDirectCompositionDevice( |
| 26 base::win::ScopedComPtr<ID3D11Device> d3d11_device); |
| 27 |
21 } // namespace gl | 28 } // namespace gl |
22 | 29 |
23 #endif // UI_GL_GL_ANGLE_UTIL_WIN_H_ | 30 #endif // UI_GL_GL_ANGLE_UTIL_WIN_H_ |
OLD | NEW |