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

Unified Diff: chrome/browser/media/webrtc/native_desktop_media_list.cc

Issue 2752373002: Use PrintWindow() to implement snapshots on windows 8.1+ (Closed)
Patch Set: rebase Created 3 years, 8 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 | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/webrtc/native_desktop_media_list.cc
diff --git a/chrome/browser/media/webrtc/native_desktop_media_list.cc b/chrome/browser/media/webrtc/native_desktop_media_list.cc
index 7db6e322ad29d53c8951b99fb5d9b71c147a5eb6..d6039e15a0bcd2d49a4d18ee8c483139f2138959 100644
--- a/chrome/browser/media/webrtc/native_desktop_media_list.cc
+++ b/chrome/browser/media/webrtc/native_desktop_media_list.cc
@@ -27,6 +27,10 @@
#include "ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h"
#endif // defined(USE_X11) && !defined(OS_CHROMEOS)
+#if defined(USE_AURA)
+#include "ui/snapshot/snapshot_aura.h"
+#endif
+
using content::BrowserThread;
using content::DesktopMediaID;
@@ -342,7 +346,7 @@ void NativeDesktopMediaList::CaptureAuraWindowThumbnail(
gfx::Rect(thumbnail_size_), window_rect.size());
pending_aura_capture_requests_++;
- ui::GrabWindowSnapshotAndScaleAsync(
+ ui::GrabWindowSnapshotAndScaleAsyncAura(
window, window_rect, scaled_rect.size(), BrowserThread::GetBlockingPool(),
base::Bind(&NativeDesktopMediaList::OnAuraThumbnailCaptured,
weak_factory_.GetWeakPtr(), id));
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698