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

Issue 1864813002: Tab/Desktop Capture: Use requests instead of timer-based refreshing. (Closed)

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

Description

Tab/Desktop Capture: Use requests instead of timer-based refreshing. Remove the long-standing, hacky timer-based frame capture mechanisms from the tab (and Desktop-on-Aura) capture implementations. Instead, downstream consumers will now make refresh frame requests when needed, and at the desired frequency for their specific use cases. This change depends on https://codereview.chromium.org/1849003002/. Also: 1) Deleted support implementation for the timer mechanisms from SmoothEventSampler, 2) updated WCVCD unit tests to only expect frames when explicitly requested, and 3) the NotificationCenter mechanism was removed from the WCVCD unit tests because it was removed from the impl long ago (but the unit tests were erroneously passing due to the timer refreshes). BUG=486274 Committed: https://crrev.com/e3d466694d3a14958b478408577158c4c6804fe4 Cr-Commit-Position: refs/heads/master@{#385668}

Patch Set 1 #

Patch Set 2 : Fix WCVCD unit tests that test resize policies. #

Total comments: 14

Patch Set 3 : Addressed comments from PS2, and sampling decision logic change w.r.t. recent animation. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+417 lines, -392 lines) Patch
M content/browser/media/capture/aura_window_capture_machine.h View 4 chunks +2 lines, -5 lines 0 comments Download
M content/browser/media/capture/aura_window_capture_machine.cc View 5 chunks +6 lines, -14 lines 0 comments Download
M content/browser/media/capture/desktop_capture_device_aura.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/media/capture/desktop_capture_device_aura.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/media/capture/web_contents_video_capture_device.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/media/capture/web_contents_video_capture_device.cc View 1 2 12 chunks +38 lines, -19 lines 0 comments Download
M content/browser/media/capture/web_contents_video_capture_device_unittest.cc View 1 23 chunks +157 lines, -105 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_buffer_pool.cc View 1 chunk +3 lines, -1 line 0 comments Download
M media/capture/content/screen_capture_device_core.h View 2 chunks +13 lines, -0 lines 0 comments Download
M media/capture/content/screen_capture_device_core.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M media/capture/content/smooth_event_sampler.h View 2 chunks +1 line, -15 lines 0 comments Download
M media/capture/content/smooth_event_sampler.cc View 2 chunks +3 lines, -27 lines 0 comments Download
M media/capture/content/smooth_event_sampler_unittest.cc View 18 chunks +9 lines, -100 lines 0 comments Download
M media/capture/content/thread_safe_capture_oracle.h View 1 chunk +15 lines, -0 lines 0 comments Download
M media/capture/content/thread_safe_capture_oracle.cc View 4 chunks +87 lines, -53 lines 1 comment Download
M media/capture/content/video_capture_oracle.h View 2 chunks +6 lines, -8 lines 0 comments Download
M media/capture/content/video_capture_oracle.cc View 1 2 5 chunks +39 lines, -24 lines 0 comments Download
M media/capture/content/video_capture_oracle_unittest.cc View 3 chunks +21 lines, -21 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 23 (7 generated)
miu
irfan/xjz: PTAL. mcasas: Need OWNERS approval for 3-LOC bug fix in content/browser/renderer_host/media/video_capture_buffer_pool.cc.
4 years, 8 months ago (2016-04-05 22:34:00 UTC) #2
xjz
lgtm https://codereview.chromium.org/1864813002/diff/20001/content/browser/media/capture/web_contents_video_capture_device.cc File content/browser/media/capture/web_contents_video_capture_device.cc (right): https://codereview.chromium.org/1864813002/diff/20001/content/browser/media/capture/web_contents_video_capture_device.cc#newcode213 content/browser/media/capture/web_contents_video_capture_device.cc:213: // Called on refresh or mouse activity events. ...
4 years, 8 months ago (2016-04-06 17:02:28 UTC) #3
Irfan
Is the streaming side the downstream consumer for cast ? Do you have a corresponding ...
4 years, 8 months ago (2016-04-06 19:53:06 UTC) #4
miu
xjz/irfan: Responded to comments, addressed some. PTAL. BTW--Note that this change is dependent on this ...
4 years, 8 months ago (2016-04-06 22:33:54 UTC) #5
xjz
lgtm
4 years, 8 months ago (2016-04-06 22:49:18 UTC) #6
Irfan
lgtm https://codereview.chromium.org/1864813002/diff/40001/media/capture/content/thread_safe_capture_oracle.cc File media/capture/content/thread_safe_capture_oracle.cc (right): https://codereview.chromium.org/1864813002/diff/40001/media/capture/content/thread_safe_capture_oracle.cc#newcode162 media/capture/content/thread_safe_capture_oracle.cc:162: probably add a comment explaining why the capture ...
4 years, 8 months ago (2016-04-06 23:00:22 UTC) #7
mcasas
content/browser/renderer_host/media/ RS LGTM
4 years, 8 months ago (2016-04-06 23:09:01 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1864813002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1864813002/40001
4 years, 8 months ago (2016-04-07 00:00:10 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/192630)
4 years, 8 months ago (2016-04-07 01:07:37 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1864813002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1864813002/40001
4 years, 8 months ago (2016-04-07 01:22:22 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/192712)
4 years, 8 months ago (2016-04-07 02:31:02 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1864813002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1864813002/40001
4 years, 8 months ago (2016-04-07 04:43:06 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-07 05:10:19 UTC) #19
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/e3d466694d3a14958b478408577158c4c6804fe4 Cr-Commit-Position: refs/heads/master@{#385668}
4 years, 8 months ago (2016-04-07 05:11:54 UTC) #21
jam
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1865283003/ by jam@chromium.org. ...
4 years, 8 months ago (2016-04-07 21:46:35 UTC) #22
jam
4 years, 8 months ago (2016-04-07 21:48:09 UTC) #23
Message was sent while issue was closed.
On 2016/04/07 21:46:35, jam wrote:
> A revert of this CL (patchset #3 id:40001) has been created in
> https://codereview.chromium.org/1865283003/ by mailto:jam@chromium.org.
> 
> The reason for reverting is: This has caused > 50 tryjobs to flake so far
> 
> BUG=601308.

I cancelled the revert since I found a fix landed.

Powered by Google App Engine
This is Rietveld 408576698