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

Unified Diff: ui/gl/gl_angle_util_win.h

Issue 2646243002: Use IDCompositionSurface to implement DirectCompositionSurfaceWin. (Closed)
Patch Set: rebase Created 3 years, 10 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 | « ui/compositor/test/in_process_context_factory.cc ('k') | ui/gl/gl_angle_util_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « ui/compositor/test/in_process_context_factory.cc ('k') | ui/gl/gl_angle_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698