Skip to content

Commit

Permalink
register shared mem with Servo (#964)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrouget authored and MortimerGoro committed Feb 20, 2019
1 parent 0ed1461 commit 25cacd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion servo/build.gradle
Expand Up @@ -47,6 +47,6 @@ if (gradle.hasProperty('servoViewLocal')) {
dependencies {
// To see what the latest servoview version is go here:
// https://download.servo.org/nightly/maven/org/mozilla/servoview/servoview-armv7/maven-metadata.xml
implementation 'org.mozilla.servoview:servoview-armv7:0.0.1.20190205.871fe93'
implementation 'org.mozilla.servoview:servoview-armv7:0.0.1.20190220.cc8a9fa'
}
}
2 changes: 2 additions & 0 deletions servo/src/main/java/org/mozilla/servo/ServoSession.java
Expand Up @@ -6,6 +6,7 @@
import android.util.Log;
import android.view.Surface;

import org.mozilla.gecko.GeckoVRManager;
import org.mozilla.geckoview.GeckoDisplay;
import org.mozilla.geckoview.GeckoRuntime;
import org.mozilla.geckoview.GeckoSession;
Expand Down Expand Up @@ -42,6 +43,7 @@ public void onSurfaceChanged(Surface surface, int left, int top, int width, int
mServo = new ServoSurface(surface, width, height);
mServo.setClient(new ServoCallbacks());
mServo.setActivity(mActivity);
mServo.setVRExternalContext(GeckoVRManager.getExternalContext());
mServo.runLoop();
}

Expand Down

0 comments on commit 25cacd5

Please sign in to comment.