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

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

Issue 2595263002: Introduce ViewRoot forwarding input/view events to native (Closed)
Patch Set: unittest 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
« no previous file with comments | « chrome/browser/android/vr_shell/vr_compositor.h ('k') | chrome/browser/android/vr_shell/vr_shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_compositor.cc
diff --git a/chrome/browser/android/vr_shell/vr_compositor.cc b/chrome/browser/android/vr_shell/vr_compositor.cc
index 882236f53d8c54bc360732be0577f7ce87a000b4..3d3ce4509aeee9a2ea55cd3b8c5042fcf84c973a 100644
--- a/chrome/browser/android/vr_shell/vr_compositor.cc
+++ b/chrome/browser/android/vr_shell/vr_compositor.cc
@@ -8,14 +8,14 @@
#include "content/public/browser/android/compositor.h"
#include "content/public/browser/web_contents.h"
#include "third_party/skia/include/core/SkColor.h"
-#include "ui/android/window_android.h"
+#include "ui/android/view_android.h"
namespace vr_shell {
-VrCompositor::VrCompositor(ui::WindowAndroid* window, bool transparent)
+VrCompositor::VrCompositor(ui::ViewRoot* view_root, bool transparent)
: background_color_(SK_ColorWHITE),
transparent_(transparent) {
- compositor_.reset(content::Compositor::Create(this, window));
+ compositor_.reset(content::Compositor::Create(this, view_root));
compositor_->SetHasTransparentBackground(transparent);
}
« no previous file with comments | « chrome/browser/android/vr_shell/vr_compositor.h ('k') | chrome/browser/android/vr_shell/vr_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698