Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Unified Diff: media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera2.java

Issue 2169013002: Change class VideoCaptureDevice::Name to struct VideoCaptureDeviceDescriptor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build errors Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera2.java
diff --git a/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera2.java b/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera2.java
index 6103c14669d4462e1ba43d4b8e56e513e7d5a0fa..e4da6be548da68bc5412162a7c76bc0a543e1710 100644
--- a/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera2.java
+++ b/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera2.java
@@ -366,20 +366,20 @@ public class VideoCaptureCamera2 extends VideoCapture {
final CameraCharacteristics cameraCharacteristics =
getCameraCharacteristics(appContext, id);
if (cameraCharacteristics == null) {
- return CaptureApiType.API_TYPE_UNKNOWN;
+ return VideoCaptureApi.UNKNOWN;
}
final int supportedHWLevel =
cameraCharacteristics.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL);
switch (supportedHWLevel) {
case CameraMetadata.INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY:
- return CaptureApiType.API2_LEGACY;
+ return VideoCaptureApi.ANDROID_API2_LEGACY;
case CameraMetadata.INFO_SUPPORTED_HARDWARE_LEVEL_FULL:
- return CaptureApiType.API2_FULL;
+ return VideoCaptureApi.ANDROID_API2_FULL;
case CameraMetadata.INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED:
- return CaptureApiType.API2_LIMITED;
+ return VideoCaptureApi.ANDROID_API2_LIMITED;
default:
- return CaptureApiType.API2_LEGACY;
+ return VideoCaptureApi.ANDROID_API2_LEGACY;
}
}

Powered by Google App Engine
This is Rietveld 408576698