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

Unified Diff: chrome/browser/android/vr_shell/vr_shell.cc

Issue 2688413007: Add display::GetDisplayNearestView (Closed)
Patch Set: add missing files 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: chrome/browser/android/vr_shell/vr_shell.cc
diff --git a/chrome/browser/android/vr_shell/vr_shell.cc b/chrome/browser/android/vr_shell/vr_shell.cc
index 2e8fba0709b366f185af5a76031929bcea3cb4e0..7a611b4ac33ce5658cf95de9593cac1e1e334bdd 100644
--- a/chrome/browser/android/vr_shell/vr_shell.cc
+++ b/chrome/browser/android/vr_shell/vr_shell.cc
@@ -473,8 +473,9 @@ void VrShell::RenderViewHostChanged(content::RenderViewHost* old_host,
}
void VrShell::MainFrameWasResized(bool width_changed) {
- display::Display display = display::Screen::GetScreen()
- ->GetDisplayNearestWindow(ui_contents_->GetNativeView());
+ display::Display display =
+ display::Screen::GetScreen()->GetDisplayNearestWindow(
+ ui_contents_->GetNativeView()->GetWindowAndroid());
PostToGlThreadWhenReady(
base::Bind(&VrShellGl::UIBoundsChanged, gl_thread_->GetVrShellGl(),
display.size().width(), display.size().height()));

Powered by Google App Engine
This is Rietveld 408576698