| Index: media/capture/video/android/java/src/org/chromium/media/VideoCapture.java
|
| diff --git a/media/capture/video/android/java/src/org/chromium/media/VideoCapture.java b/media/capture/video/android/java/src/org/chromium/media/VideoCapture.java
|
| index c862450ef58be43d4f07ab7bb2a36bb523fa7d92..4450cb5587bc8b461c58a06a771c65b5565af9b8 100644
|
| --- a/media/capture/video/android/java/src/org/chromium/media/VideoCapture.java
|
| +++ b/media/capture/video/android/java/src/org/chromium/media/VideoCapture.java
|
| @@ -34,6 +34,8 @@ public abstract class VideoCapture {
|
| // Native callback context variable.
|
| protected final long mNativeVideoCaptureDeviceAndroid;
|
|
|
| + protected boolean mUseBackgroundThreadForTesting = false;
|
| +
|
| VideoCapture(Context context, int id, long nativeVideoCaptureDeviceAndroid) {
|
| mContext = context;
|
| mId = id;
|
| @@ -103,6 +105,11 @@ public abstract class VideoCapture {
|
| }
|
| }
|
|
|
| + @CalledByNative
|
| + public final void setTestMode() {
|
| + mUseBackgroundThreadForTesting = true;
|
| + }
|
| +
|
| protected final int getCameraRotation() {
|
| int rotation = mInvertDeviceOrientationReadings ? (360 - getDeviceRotation())
|
| : getDeviceRotation();
|
|
|