Commit dfdafaea authored by magjed's avatar magjed Committed by Commit bot

Android video capture: suppress deprecated warnings while migrating to new API

Suppress most deprecated warnings except for imports.

BUG=398669

Review URL: https://codereview.chromium.org/555113002

Cr-Commit-Position: refs/heads/master@{#293968}
parent ba90edc1
......@@ -25,6 +25,7 @@ import java.util.concurrent.locks.ReentrantLock;
* Video Capture Device base class to interface to native Chromium.
**/
@JNINamespace("media")
@SuppressWarnings("deprecation")
public abstract class VideoCapture implements PreviewCallback {
protected static class CaptureFormat {
......
......@@ -19,6 +19,7 @@ import java.util.List;
* Java-allocated buffers. It also includes class BuggyDeviceHack to deal with
* troublesome devices.
**/
@SuppressWarnings("deprecation")
public class VideoCaptureAndroid extends VideoCapture {
// Some devices don't support YV12 format correctly, even with JELLY_BEAN or
......
......@@ -26,6 +26,7 @@ import org.chromium.media.VideoCapture;
* takes into account the mentioned special devices.
**/
@JNINamespace("media")
@SuppressWarnings("deprecation")
class VideoCaptureFactory {
static class CamParams {
......
......@@ -20,6 +20,7 @@ import java.util.Arrays;
* |id| passed on constructor, according to the index correspondence in
* |s_CAM_PARAMS|; all devices |id| are index 0 towards the parent VideoCapture.
**/
@SuppressWarnings("deprecation")
public class VideoCaptureTango extends VideoCapture {
private ByteBuffer mFrameBuffer = null;
private final int mTangoCameraId;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment