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

Unified Diff: webrtc/api/java/android/org/webrtc/CameraEnumerationAndroid.java

Issue 2015143004: CameraEnumerationAndroid: Remove Enumerator class (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 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: webrtc/api/java/android/org/webrtc/CameraEnumerationAndroid.java
diff --git a/webrtc/api/java/android/org/webrtc/CameraEnumerationAndroid.java b/webrtc/api/java/android/org/webrtc/CameraEnumerationAndroid.java
index 2fa685d1fbceda2fbb9f7ceac4d2e2bb5bfdb251..0749cd52f6464c5a9662f369d8112bd4e2f92b95 100644
--- a/webrtc/api/java/android/org/webrtc/CameraEnumerationAndroid.java
+++ b/webrtc/api/java/android/org/webrtc/CameraEnumerationAndroid.java
@@ -22,25 +22,6 @@ import java.util.List;
@SuppressWarnings("deprecation")
public class CameraEnumerationAndroid {
private final static String TAG = "CameraEnumerationAndroid";
- // Synchronized on |CameraEnumerationAndroid.this|.
- private static Enumerator enumerator = new CameraEnumerator();
-
- public interface Enumerator {
- /**
- * Returns a list of supported CaptureFormats for the camera with index |cameraId|.
- */
- List<CaptureFormat> getSupportedFormats(int cameraId);
- }
-
- public static synchronized void setEnumerator(Enumerator enumerator) {
- CameraEnumerationAndroid.enumerator = enumerator;
- }
-
- public static synchronized List<CaptureFormat> getSupportedFormats(int cameraId) {
- final List<CaptureFormat> formats = enumerator.getSupportedFormats(cameraId);
- Logging.d(TAG, "Supported formats for camera " + cameraId + ": " + formats);
- return formats;
- }
public static class CaptureFormat {
// Class to represent a framerate range. The framerate varies because of lightning conditions.
« no previous file with comments | « webrtc/api/java/android/org/webrtc/Camera2Enumerator.java ('k') | webrtc/api/java/android/org/webrtc/CameraEnumerator.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698