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

Issue 2659653002: Fix for issue 684766 Old/erroneous frame feedback during tab capture (Closed)

Created:
3 years, 11 months ago by chfremer
Modified:
3 years, 10 months ago
Reviewers:
mcasas, miu
CC:
chromium-reviews, posciak+watch_chromium.org, chfremer+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, xjz+watch_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix for issue 684766 Old/erroneous frame feedback during tab capture VideoCaptureController was not updating the |frame_feedback_id| when new frames were arriving. This resulted in frame feedback being reported back to producing devices being stuck with the |frame_feedback_id|s that came with the initial sharing of the buffers. The existing unit test did not catch this bug, because it tested the feedback mechanism for a sequence of only 2 frames, which happens to be the same as the number of buffers being shared, resulting in the issue not surfacing. In addition to a fix, this CL adds a new test case that verifies that the frame feedback mechanism works as intended for longer sequences of frames. BUG=684766 TEST=content_unittests --gtest_filter="VideoCaptureControllerTest.*" Review-Url: https://codereview.chromium.org/2659653002 Cr-Commit-Position: refs/heads/master@{#447262} Committed: https://chromium.googlesource.com/chromium/src/+/6ce92793fa6e71801c77b7770c66eeb76799df30

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added clarifying comment #

Patch Set 3 : Exercise ResurrectLastOutputBuffer() and apply git cl format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -9 lines) Patch
M content/browser/renderer_host/media/video_capture_controller.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/media/video_capture_controller.cc View 1 2 2 chunks +14 lines, -8 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_controller_unittest.cc View 1 2 1 chunk +58 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (15 generated)
chfremer
miu@: PTAL mcasas@: FYI
3 years, 11 months ago (2017-01-26 19:19:40 UTC) #5
mcasas
https://codereview.chromium.org/2659653002/diff/1/content/browser/renderer_host/media/video_capture_controller.cc File content/browser/renderer_host/media/video_capture_controller.cc (right): https://codereview.chromium.org/2659653002/diff/1/content/browser/renderer_host/media/video_capture_controller.cc#newcode394 content/browser/renderer_host/media/video_capture_controller.cc:394: buffer_state.SetFrameFeedbackId(buffer.frame_feedback_id()); This is confusing. buffer.frame_feedback_id() is used to set ...
3 years, 10 months ago (2017-01-30 15:36:34 UTC) #8
chfremer
PTAL https://codereview.chromium.org/2659653002/diff/1/content/browser/renderer_host/media/video_capture_controller.cc File content/browser/renderer_host/media/video_capture_controller.cc (right): https://codereview.chromium.org/2659653002/diff/1/content/browser/renderer_host/media/video_capture_controller.cc#newcode394 content/browser/renderer_host/media/video_capture_controller.cc:394: buffer_state.SetFrameFeedbackId(buffer.frame_feedback_id()); On 2017/01/30 15:36:34, mcasas wrote: > This ...
3 years, 10 months ago (2017-01-30 21:18:27 UTC) #10
miu
lgtm (I was going to ask if this also works for resurrected frames, but I ...
3 years, 10 months ago (2017-01-30 23:32:34 UTC) #11
mcasas
On 2017/01/30 23:32:34, miu wrote: > lgtm (I was going to ask if this also ...
3 years, 10 months ago (2017-01-30 23:54:01 UTC) #12
chfremer
Thanks for the review! miu@, since you mentioned the buffer resurrect case, I noticed that ...
3 years, 10 months ago (2017-01-31 00:30:50 UTC) #13
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/2659653002/60001
3 years, 10 months ago (2017-01-31 17:35:40 UTC) #20
commit-bot: I haz the power
3 years, 10 months ago (2017-01-31 17:42:35 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/6ce92793fa6e71801c77b7770c66...

Powered by Google App Engine
This is Rietveld 408576698