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

Unified Diff: ui/gl/gl_angle_util_win.cc

Issue 2864523002: Rename ScopedComPtr::QueryInterface to ScopedComPtr::CopyTo (Closed)
Patch Set: Created 3 years, 7 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/gfx/win/direct_write.cc ('k') | ui/views/accessibility/native_view_accessibility_win_unittest.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.cc
diff --git a/ui/gl/gl_angle_util_win.cc b/ui/gl/gl_angle_util_win.cc
index 179b9712c6be51cd4eb8e39925942c4ffff88227..29d8dcfe5be3ff3bf47fb22d919920804929bd33 100644
--- a/ui/gl/gl_angle_util_win.cc
+++ b/ui/gl/gl_angle_util_win.cc
@@ -119,14 +119,14 @@ base::win::ScopedComPtr<IDCompositionDevice2> QueryDirectCompositionDevice(
return dcomp_device;
base::win::ScopedComPtr<IDXGIDevice> dxgi_device;
- d3d11_device.QueryInterface(dxgi_device.Receive());
+ d3d11_device.CopyTo(dxgi_device.Receive());
base::win::ScopedComPtr<IDCompositionDesktopDevice> desktop_device;
hr = create_device_function(dxgi_device.Get(),
IID_PPV_ARGS(desktop_device.Receive()));
if (FAILED(hr))
return dcomp_device;
- hr = desktop_device.QueryInterface(dcomp_device.Receive());
+ hr = desktop_device.CopyTo(dcomp_device.Receive());
CHECK(SUCCEEDED(hr));
d3d11_device->SetPrivateDataInterface(kDirectCompositionGUID,
dcomp_device.Get());
« no previous file with comments | « ui/gfx/win/direct_write.cc ('k') | ui/views/accessibility/native_view_accessibility_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698