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

Unified Diff: webrtc/sdk/android/api/org/webrtc/Camera1Session.java

Issue 2645333003: Minor style change suggested by internal static analysis tool. (Closed)
Patch Set: Minor style change suggested by internal static analysis tool. Created 3 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/android/api/org/webrtc/Camera1Session.java
diff --git a/webrtc/sdk/android/api/org/webrtc/Camera1Session.java b/webrtc/sdk/android/api/org/webrtc/Camera1Session.java
index 8f1c15d4f648ecc586e9c54cf548f1befc217041..6946320e21b049249fba8ac6ba9893f7bc4b0eaa 100644
--- a/webrtc/sdk/android/api/org/webrtc/Camera1Session.java
+++ b/webrtc/sdk/android/api/org/webrtc/Camera1Session.java
@@ -41,9 +41,6 @@ public class Camera1Session implements CameraSession {
private final Context applicationContext;
private final SurfaceTextureHelper surfaceTextureHelper;
private final int cameraId;
- private final int width;
- private final int height;
- private final int framerate;
private final android.hardware.Camera camera;
private final android.hardware.Camera.CameraInfo info;
private final CaptureFormat captureFormat;
@@ -99,9 +96,8 @@ public class Camera1Session implements CameraSession {
// Calculate orientation manually and send it as CVO insted.
camera.setDisplayOrientation(0 /* degrees */);
- callback.onDone(
- new Camera1Session(events, captureToTexture, applicationContext, surfaceTextureHelper,
- cameraId, width, height, framerate, camera, info, captureFormat, constructionTimeNs));
+ callback.onDone(new Camera1Session(events, captureToTexture, applicationContext,
+ surfaceTextureHelper, cameraId, camera, info, captureFormat, constructionTimeNs));
}
private static void updateCameraParameters(android.hardware.Camera camera,
@@ -149,9 +145,9 @@ public class Camera1Session implements CameraSession {
}
private Camera1Session(Events events, boolean captureToTexture, Context applicationContext,
- SurfaceTextureHelper surfaceTextureHelper, int cameraId, int width, int height, int framerate,
- android.hardware.Camera camera, android.hardware.Camera.CameraInfo info,
- CaptureFormat captureFormat, long constructionTimeNs) {
+ SurfaceTextureHelper surfaceTextureHelper, int cameraId, android.hardware.Camera camera,
+ android.hardware.Camera.CameraInfo info, CaptureFormat captureFormat,
+ long constructionTimeNs) {
Logging.d(TAG, "Create new camera1 session on camera " + cameraId);
this.cameraThreadHandler = new Handler();
@@ -160,9 +156,6 @@ public class Camera1Session implements CameraSession {
this.applicationContext = applicationContext;
this.surfaceTextureHelper = surfaceTextureHelper;
this.cameraId = cameraId;
- this.width = width;
- this.height = height;
- this.framerate = framerate;
this.camera = camera;
this.info = info;
this.captureFormat = captureFormat;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698