mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Support for ExternalVR implementation
This commit is contained in:
parent
b7e9bab267
commit
c055b74e13
11 changed files with 66 additions and 13 deletions
|
@ -73,6 +73,7 @@ public class JNIServo {
|
|||
public int height = 0;
|
||||
public float density = 1;
|
||||
public boolean enableSubpixelTextAntialiasing = true;
|
||||
public long VRExternalContext = 0;
|
||||
public String logStr;
|
||||
public boolean enableLogs = false;
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ public class ServoSurface {
|
|||
private Surface mASurface;
|
||||
private int mWidth;
|
||||
private int mHeight;
|
||||
private long mVRExternalContext;
|
||||
private Servo mServo;
|
||||
private Client mClient = null;
|
||||
private String mServoArgs;
|
||||
|
@ -69,6 +70,10 @@ public class ServoSurface {
|
|||
mActivity = activity;
|
||||
}
|
||||
|
||||
public void setVRExternalContext(long context) {
|
||||
mVRExternalContext = context;
|
||||
}
|
||||
|
||||
public void runLoop() {
|
||||
mGLThread.start();
|
||||
}
|
||||
|
@ -265,6 +270,7 @@ public class ServoSurface {
|
|||
options.logStr = mServoLog;
|
||||
options.enableLogs = true;
|
||||
options.enableSubpixelTextAntialiasing = false;
|
||||
options.VRExternalContext = mVRExternalContext;
|
||||
|
||||
mServo = new Servo(options, this, mSurface, mClient, mActivity);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue