mirror of
https://github.com/servo/servo.git
synced 2025-09-11 23:48:21 +01:00
Allow setting GST_DEBUG on Android through mach
This commit is contained in:
parent
eee2c895f4
commit
11993bb8f5
7 changed files with 26 additions and 6 deletions
|
@ -74,6 +74,7 @@ public class JNIServo {
|
|||
public boolean enableSubpixelTextAntialiasing = true;
|
||||
public long VRExternalContext = 0;
|
||||
public String logStr;
|
||||
public String gstDebugStr;
|
||||
public boolean enableLogs = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -45,6 +45,7 @@ public class ServoView extends GLSurfaceView
|
|||
private boolean mAnimating;
|
||||
private String mServoArgs;
|
||||
private String mServoLog;
|
||||
private String mGstDebug;
|
||||
private GestureDetector mGestureDetector;
|
||||
private ScaleGestureDetector mScaleGestureDetector;
|
||||
|
||||
|
@ -90,9 +91,10 @@ public class ServoView extends GLSurfaceView
|
|||
initGestures(context);
|
||||
}
|
||||
|
||||
public void setServoArgs(String args, String log) {
|
||||
public void setServoArgs(String args, String log, String gstdebug) {
|
||||
mServoArgs = args;
|
||||
mServoLog = log;
|
||||
mGstDebug = gstdebug;
|
||||
}
|
||||
|
||||
public void reload() {
|
||||
|
@ -176,6 +178,7 @@ public class ServoView extends GLSurfaceView
|
|||
String uri = mInitialUri == null ? null : mInitialUri.toString();
|
||||
options.url = uri;
|
||||
options.logStr = mServoLog;
|
||||
options.gstDebugStr = mGstDebug;
|
||||
mServo = new Servo(options, this, this, mClient, mActivity);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue