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

Issue 2364413002: Screen Video Capture: Implement suspend optimization. (Closed)

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

Description

Screen Video Capture: Implement suspend optimization. Implements frame delivery suspend/resume functionality in tab capture, Aura window/desktop capture, and Android screen capture. This allows the screen capture devices to minimize resource utilization while there are no consumers of the video frames attached downstream. Prerequisite change: https://codereview.chromium.org/2365223002/ BUG=650113 Committed: https://crrev.com/a84c86dcab6fda82917b411bf0e47a9d5c2f5ee2 Cr-Commit-Position: refs/heads/master@{#421763}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address braveyao's comments. #

Patch Set 3 : Unwind ScreenCaptureMachineAndroid changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -30 lines) Patch
M chrome/test/data/extensions/api_test/tab_capture/end_to_end.js View 4 chunks +41 lines, -8 lines 0 comments Download
M content/browser/media/capture/aura_window_capture_machine.h View 3 chunks +8 lines, -0 lines 0 comments Download
M content/browser/media/capture/aura_window_capture_machine.cc View 3 chunks +27 lines, -1 line 0 comments Download
M content/browser/media/capture/web_contents_video_capture_device.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/media/capture/web_contents_video_capture_device.cc View 10 chunks +65 lines, -15 lines 0 comments Download
M content/browser/media/capture/web_contents_video_capture_device_unittest.cc View 4 chunks +44 lines, -1 line 0 comments Download
M media/capture/content/screen_capture_device_core.h View 1 2 2 chunks +7 lines, -1 line 0 comments Download
M media/capture/content/screen_capture_device_core.cc View 1 4 chunks +27 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 14 (4 generated)
miu
braveyao: PTAL at media/capture/content/android/screen_capture_machine_android.* xjz: PTAL the rest.
4 years, 2 months ago (2016-09-25 23:42:06 UTC) #2
braveyao
The suspend optimization won't have effect on Android, right? https://codereview.chromium.org/2364413002/diff/1/media/capture/content/android/screen_capture_machine_android.h File media/capture/content/android/screen_capture_machine_android.h (right): https://codereview.chromium.org/2364413002/diff/1/media/capture/content/android/screen_capture_machine_android.h#newcode59 media/capture/content/android/screen_capture_machine_android.h:59: ...
4 years, 2 months ago (2016-09-26 17:14:47 UTC) #3
xjz
The rest lgtm. :)
4 years, 2 months ago (2016-09-27 05:08:57 UTC) #4
miu
braveyao: PTAL. https://codereview.chromium.org/2364413002/diff/1/media/capture/content/android/screen_capture_machine_android.h File media/capture/content/android/screen_capture_machine_android.h (right): https://codereview.chromium.org/2364413002/diff/1/media/capture/content/android/screen_capture_machine_android.h#newcode59 media/capture/content/android/screen_capture_machine_android.h:59: void Resume() override; On 2016/09/26 17:14:47, braveyao ...
4 years, 2 months ago (2016-09-27 20:46:51 UTC) #5
braveyao
Hi Miu, The patch is good. But I still don't think we should suspend screen ...
4 years, 2 months ago (2016-09-27 23:33:56 UTC) #6
miu
On 2016/09/27 23:33:56, braveyao wrote: > Hi Miu, > > The patch is good. But ...
4 years, 2 months ago (2016-09-28 00:09:21 UTC) #7
braveyao
lgtm. Screen capture on Android won't go through controller any more. So it should be ...
4 years, 2 months ago (2016-09-28 00:21:18 UTC) #8
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/2364413002/40001
4 years, 2 months ago (2016-09-29 04:23:34 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-09-29 06:42:54 UTC) #12
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 06:44:56 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a84c86dcab6fda82917b411bf0e47a9d5c2f5ee2
Cr-Commit-Position: refs/heads/master@{#421763}

Powered by Google App Engine
This is Rietveld 408576698