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

Issue 2418923003: ImageCapture: avoid several grabFrame()s in flight, beef up content_browsertests (Closed)

Created:
4 years, 2 months ago by mcasas
Modified:
4 years, 2 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ImageCapture: avoid several grabFrame()s in flight, beef up content_browsertests This CL limits to one the amount of grab-frame operations in flight by adding a flag to ImageCaptureFrameGrabber, this prevents hitting a DCHECK in debug, or doing wrong things in !DCHECK_IS_ON() builds. It also adds a content_browsertest for grabFrame() and refactors the operations in that file a bit. BUG=655900 TEST=see bug for reproduction cases Committed: https://crrev.com/43f89e492ac625dd1e7e12a9ab2ee66282ddb31d Cr-Commit-Position: refs/heads/master@{#425535}

Patch Set 1 : #

Patch Set 2 : embedded_test_server()->StartAcceptingConnections(); needs to be done per-test case #

Total comments: 1

Patch Set 3 : xianglu@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -61 lines) Patch
M content/browser/webrtc/webrtc_image_capture_browsertest.cc View 1 2 3 chunks +51 lines, -58 lines 0 comments Download
M content/renderer/media/image_capture_frame_grabber.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/media/image_capture_frame_grabber.cc View 4 chunks +10 lines, -1 line 0 comments Download
M content/test/data/media/image_capture_test.html View 3 chunks +26 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (13 generated)
mcasas
xianglu@ PTAL
4 years, 2 months ago (2016-10-14 21:06:11 UTC) #5
xianglu
https://codereview.chromium.org/2418923003/diff/60001/content/browser/webrtc/webrtc_image_capture_browsertest.cc File content/browser/webrtc/webrtc_image_capture_browsertest.cc (right): https://codereview.chromium.org/2418923003/diff/60001/content/browser/webrtc/webrtc_image_capture_browsertest.cc#newcode118 content/browser/webrtc/webrtc_image_capture_browsertest.cc:118: if (RunImageCaptureTestCase("testCreateAndGetCapabilities()")) Consider using ASSERT_TRUE(), which can save two ...
4 years, 2 months ago (2016-10-14 22:34:52 UTC) #6
xianglu
lgtm.
4 years, 2 months ago (2016-10-14 22:46:16 UTC) #7
mcasas
avi@ please RS changes to content/browser/webrtc/webrtc_image_capture_browsertest.cc
4 years, 2 months ago (2016-10-14 23:04:04 UTC) #11
Avi (use Gerrit)
lgtm stamp
4 years, 2 months ago (2016-10-15 00:50:39 UTC) #14
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/2418923003/80001
4 years, 2 months ago (2016-10-15 02:07:59 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 2 months ago (2016-10-15 02:13:11 UTC) #19
commit-bot: I haz the power
4 years, 2 months ago (2016-10-15 02:16:25 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/43f89e492ac625dd1e7e12a9ab2ee66282ddb31d
Cr-Commit-Position: refs/heads/master@{#425535}

Powered by Google App Engine
This is Rietveld 408576698