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

Unified Diff: remoting/android/java/src/org/chromium/chromoting/cardboard/DesktopActivity.java

Issue 2132883002: [Remoting Android] Placeholder for DesktopView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase ToT and do same fix for GlDisplay Created 4 years, 5 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: remoting/android/java/src/org/chromium/chromoting/cardboard/DesktopActivity.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/cardboard/DesktopActivity.java b/remoting/android/java/src/org/chromium/chromoting/cardboard/DesktopActivity.java
index e5ac3babc693be38ff369292a238441a2f1fd178..8f42c4ae9156707c9c7acc748ff67d96021ec49b 100644
--- a/remoting/android/java/src/org/chromium/chromoting/cardboard/DesktopActivity.java
+++ b/remoting/android/java/src/org/chromium/chromoting/cardboard/DesktopActivity.java
@@ -44,7 +44,11 @@ public class DesktopActivity extends CardboardActivity {
mSwitchToDesktopActivity = false;
CardboardView cardboardView = (CardboardView) findViewById(R.id.cardboard_view);
- mRenderer = new CardboardRenderer(this, mClient);
+
+ // THE CODE BELOW IS BROKEN.
+ // To make it work, you have to somehow get the reference to the Display object and pass
+ // it into the constructor.
+ mRenderer = new CardboardRenderer(this, mClient, null);
mIsListening = false;
// Associate a CardboardView.StereoRenderer with cardboard view.

Powered by Google App Engine
This is Rietveld 408576698