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

Unified Diff: ui/snapshot/snapshot_android.cc

Issue 2645353004: ViewRoot class for event forwarding on Android (Closed)
Patch Set: fix tests Created 3 years, 11 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
« ui/display/test/test_screen.h ('K') | « ui/display/test/test_screen.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/snapshot/snapshot_android.cc
diff --git a/ui/snapshot/snapshot_android.cc b/ui/snapshot/snapshot_android.cc
index f687aa21daf359ba68c44ed1e1943d416f872b36..99c6b68a1249d81a48c1d7edf97d302fea5eadbe 100644
--- a/ui/snapshot/snapshot_android.cc
+++ b/ui/snapshot/snapshot_android.cc
@@ -44,7 +44,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));
« ui/display/test/test_screen.h ('K') | « ui/display/test/test_screen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698