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

Unified Diff: webrtc/api/android/java/src/org/webrtc/Camera2Capturer.java

Issue 2331343010: Events refactor in Android session based capturing. (Closed)
Patch Set: Remove CameraSession parameter from onCameraOpening. Created 4 years, 3 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
« no previous file with comments | « no previous file | webrtc/api/android/java/src/org/webrtc/Camera2Session.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/android/java/src/org/webrtc/Camera2Capturer.java
diff --git a/webrtc/api/android/java/src/org/webrtc/Camera2Capturer.java b/webrtc/api/android/java/src/org/webrtc/Camera2Capturer.java
index b055f8bb837b5c7af945ab3207fcccd484650da5..78d1f04a4365bc619604143d33959f01cc7e9dde 100644
--- a/webrtc/api/android/java/src/org/webrtc/Camera2Capturer.java
+++ b/webrtc/api/android/java/src/org/webrtc/Camera2Capturer.java
@@ -10,14 +10,9 @@
package org.webrtc;
-import org.webrtc.CameraEnumerationAndroid.CaptureFormat;
-
import android.annotation.TargetApi;
import android.content.Context;
import android.hardware.camera2.CameraManager;
-import android.os.Handler;
-
-import java.util.List;
@TargetApi(21)
public class Camera2Capturer extends CameraCapturer {
@@ -33,17 +28,13 @@ public class Camera2Capturer extends CameraCapturer {
@Override
protected void createCameraSession(
- CameraSession.CreateSessionCallback createSessionCallback,
- CameraEventsHandler eventsHandler, Context applicationContext,
- CameraVideoCapturer.CapturerObserver capturerObserver,
- SurfaceTextureHelper surfaceTextureHelper,
+ CameraSession.CreateSessionCallback createSessionCallback, CameraSession.Events events,
+ Context applicationContext, SurfaceTextureHelper surfaceTextureHelper,
String cameraName, int width, int height, int framerate) {
Camera2Session.create(
- cameraManager,
- createSessionCallback,
- eventsHandler, applicationContext,
- capturerObserver,
- surfaceTextureHelper,
- cameraName, width, height, framerate);
+ createSessionCallback, events,
+ applicationContext, cameraManager,
+ surfaceTextureHelper,
+ cameraName, width, height, framerate);
}
}
« no previous file with comments | « no previous file | webrtc/api/android/java/src/org/webrtc/Camera2Session.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698