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

Unified Diff: ui/snapshot/snapshot_android.cc

Issue 2688113002: Make ViewRoot the top of the ViewAndroid tree (Closed)
Patch Set: comments 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
Index: ui/snapshot/snapshot_android.cc
diff --git a/ui/snapshot/snapshot_android.cc b/ui/snapshot/snapshot_android.cc
index 3de1f5ad8393824473d20287d1fc6c8d04f42042..174aa3a1c135bb21f525f98a0986b1c7b1316d1b 100644
--- a/ui/snapshot/snapshot_android.cc
+++ b/ui/snapshot/snapshot_android.cc
@@ -43,7 +43,7 @@ static void MakeAsyncCopyRequest(
cc::CopyOutputRequest::CreateBitmapRequest(callback);
const display::Display& display =
- display::Screen::GetScreen()->GetDisplayNearestWindow(window);
+ display::Screen::GetScreen()->GetDisplayNearestWindowAndroid(window);
float scale = display.device_scale_factor();
request->set_area(gfx::ScaleToEnclosingRect(source_rect, scale));
window->GetCompositor()->RequestCopyOfOutputOnRootLayer(std::move(request));

Powered by Google App Engine
This is Rietveld 408576698