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

Issue 2826453002: Image Capture Android: only restore preview parameters after photo is taken (Closed)

Created:
3 years, 8 months ago by mcasas
Modified:
3 years, 8 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, chfremer+watch_chromium.org, feature-media-reviews_chromium.org, agrieve+watch_chromium.org, xjz+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Image Capture Android: only restore preview parameters after photo is taken This CL introduces a member variable |mPreviewParameters| to cache the preview capture parameters in order to restore them after a picture is being taken and, more importantly (see bug), delays restoring those parameters until after the picture is actually taken. While debugging these changes with a Nexus 7 and a Galaxy Note 2 7100, I reckoned that the Nexus 7 is very delicate so I added some try-catches and avoided setting the picture resolution if not truly set by the user (== use preview size). BUG=706674 Review-Url: https://codereview.chromium.org/2826453002 Cr-Commit-Position: refs/heads/master@{#465118} Committed: https://chromium.googlesource.com/chromium/src/+/a6c1b9d6d636b72d9b88cb2ab5723be4770d006f

Patch Set 1 : #

Total comments: 6

Patch Set 2 : reillyg@'s comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -35 lines) Patch
M media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java View 1 4 chunks +40 lines, -35 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
mcasas
reillyg@ PTAL
3 years, 8 months ago (2017-04-17 23:52:30 UTC) #6
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2826453002/diff/60001/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java File media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java (right): https://codereview.chromium.org/2826453002/diff/60001/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java#newcode93 media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java:93: private android.hardware.Camera.Parameters mPreviewParameters = null; In Java everything starts ...
3 years, 8 months ago (2017-04-18 00:32:13 UTC) #7
mcasas
ptal https://codereview.chromium.org/2826453002/diff/60001/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java File media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java (right): https://codereview.chromium.org/2826453002/diff/60001/media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java#newcode93 media/capture/video/android/java/src/org/chromium/media/VideoCaptureCamera.java:93: private android.hardware.Camera.Parameters mPreviewParameters = null; On 2017/04/18 00:32:12, ...
3 years, 8 months ago (2017-04-18 01:09:38 UTC) #8
Reilly Grant (use Gerrit)
lgtm
3 years, 8 months ago (2017-04-18 01:30:39 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2826453002/80001
3 years, 8 months ago (2017-04-18 02:26:09 UTC) #14
commit-bot: I haz the power
3 years, 8 months ago (2017-04-18 02:51:07 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/a6c1b9d6d636b72d9b88cb2ab572...

Powered by Google App Engine
This is Rietveld 408576698