Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

register shared mem with Servo #964

Merged
merged 1 commit into from
Feb 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion servo/build.gradle
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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