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

Issue 2146973002: RELAND: ImageCapture: Implement takePhoto() for Mac AVFoundation (Closed)

Created:
4 years, 5 months ago by mcasas
Modified:
4 years, 5 months ago
Reviewers:
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org, mcasas+watch+vc_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

RELAND: ImageCapture: Implement takePhoto() for Mac AVFoundation Got reverted due to breaking WebRtcWebcamBrowserTests/WebRtcWebcamBrowserTest.MANUAL_TestAcquiringAndReacquiringWebcam/0 in some WebRtc Mac bot, possibly because it has no real WebCam or it has one without AVCaptureStillImageOutputClass support. This CL adds a guard [captureSession_ canAddOutput:...] before [captureSession_ addOutput:...] Original description ---------------------------------------------- ImageCapture: Implement takePhoto() for Mac AVFoundation By pulling the necessary symbols out of AVFoundation and using them; most notably (Cr)AVCaptureStillImageOutput. TakePhoto is already implemented for Android (both APIs). Also adding VideoCaptureDeviceTest::MAYBE_TakePhoto test case, enabled only for Mac. BUG=518807 TEST=Run build with flag --enable-blink-features=ImageCapture, navigate to [1] and push buttons - Open Camera ... - Create ImageCapturer - takePhoto() (N times!) --> profit [1] https://rawgit.com/Miguelao/demos/master/imagecapture.html TBR=rsesek@chromium.org since the change is trivial. Committed: https://crrev.com/d4179235b928634aeadb0c3379d385caf0ad3a07 Cr-Commit-Position: refs/heads/master@{#405243}

Patch Set 1 : Verbatim https://codereview.chromium.org/2129733004 #

Patch Set 2 : add a [captureSession_ canAddOutput:stillImageOutput_] guard #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -36 lines) Patch
M media/base/mac/avfoundation_glue.h View 1 5 chunks +20 lines, -6 lines 0 comments Download
M media/base/mac/avfoundation_glue.mm View 1 chunk +4 lines, -0 lines 0 comments Download
M media/base/mac/coremedia_glue.h View 1 chunk +1 line, -0 lines 0 comments Download
M media/capture/video/mac/video_capture_device_avfoundation_mac.h View 4 chunks +10 lines, -2 lines 0 comments Download
M media/capture/video/mac/video_capture_device_avfoundation_mac.mm View 1 6 chunks +73 lines, -13 lines 0 comments Download
M media/capture/video/mac/video_capture_device_mac.h View 3 chunks +13 lines, -1 line 0 comments Download
M media/capture/video/mac/video_capture_device_mac.mm View 3 chunks +31 lines, -2 lines 0 comments Download
M media/capture/video/video_capture_device_unittest.cc View 10 chunks +74 lines, -12 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
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/2146973002/20001
4 years, 5 months ago (2016-07-13 18:35:07 UTC) #3
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-13 19:56:17 UTC) #5
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-13 19:56:24 UTC) #6
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/d4179235b928634aeadb0c3379d385caf0ad3a07 Cr-Commit-Position: refs/heads/master@{#405243}
4 years, 5 months ago (2016-07-13 19:57:54 UTC) #8
mcasas
4 years, 5 months ago (2016-07-13 21:26:22 UTC) #9
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2151443003/ by mcasas@chromium.org.

The reason for reverting is: It caused timeout in
WebRtcWebcamBrowserTests/WebRtcWebcamBrowserTest.MANUAL_TestAcquiringAndReacquiringWebcam/0

see
https://build.chromium.org/p/chromium.webrtc/builders/Mac%20Tester/builds/56929.

Powered by Google App Engine
This is Rietveld 408576698