Index: ui/gl/gl_angle_util_win.h |
diff --git a/ui/gl/gl_angle_util_win.h b/ui/gl/gl_angle_util_win.h |
index 6f08f9132a4537c135afd9e4cc6330546e9f7eaa..b0a4a802181ee8afca7e9f7c2cf1f4142927908f 100644 |
--- a/ui/gl/gl_angle_util_win.h |
+++ b/ui/gl/gl_angle_util_win.h |
@@ -7,6 +7,7 @@ |
#include <d3d11.h> |
#include <d3d9.h> |
+#include <dcomp.h> |
#include "base/win/scoped_comptr.h" |
#include "ui/gl/gl_export.h" |
@@ -18,6 +19,12 @@ QueryD3D11DeviceObjectFromANGLE(); |
GL_EXPORT base::win::ScopedComPtr<IDirect3DDevice9> |
QueryD3D9DeviceObjectFromANGLE(); |
+// Query the DirectComposition device associated with a D3D11 device. May |
+// create a new one if none exists. |
+GL_EXPORT base::win::ScopedComPtr<IDCompositionDevice2> |
+QueryDirectCompositionDevice( |
+ base::win::ScopedComPtr<ID3D11Device> d3d11_device); |
+ |
} // namespace gl |
#endif // UI_GL_GL_ANGLE_UTIL_WIN_H_ |