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

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

Issue 2548013002: Remove redundant field initialization in Java code. (Closed)
Patch Set: rebase Created 4 years 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/VideoCaptureCamera.java
diff --git a/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java b/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java
index 085021c17cbd3b8c1c3a6b6c03144bd9e444a8c9..bc2c32453c5a5ddc132c60a2d7e9f3d8b49a4c64 100644
--- a/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java
+++ b/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java
@@ -85,19 +85,19 @@ public class VideoCaptureCamera
// Storage of takePicture() callback Id. There can be one such request in flight at most, and
// needs to be exercised either in case of error or sucess.
- private long mPhotoTakenCallbackId = 0;
- private int mPhotoWidth = 0;
- private int mPhotoHeight = 0;
+ private long mPhotoTakenCallbackId;
+ private int mPhotoWidth;
+ private int mPhotoHeight;
private android.hardware.Camera.Area mAreaOfInterest;
private android.hardware.Camera mCamera;
// Lock to mutually exclude execution of OnPreviewFrame() and {start/stop}Capture().
private ReentrantLock mPreviewBufferLock = new ReentrantLock();
// True when native code has started capture.
- private boolean mIsRunning = false;
+ private boolean mIsRunning;
- private int[] mGlTextures = null;
- private SurfaceTexture mSurfaceTexture = null;
+ private int[] mGlTextures;
+ private SurfaceTexture mSurfaceTexture;
private static android.hardware.Camera.CameraInfo getCameraInfo(int id) {
android.hardware.Camera.CameraInfo cameraInfo = new android.hardware.Camera.CameraInfo();

Powered by Google App Engine
This is Rietveld 408576698