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

Issue 1505013002: Create CanvasCaptureMediaStreamTrack in a regular MediaStream (Closed)

Created:
5 years ago by emircan
Modified:
4 years, 9 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, feature-media-reviews_chromium.org, jam, mcasas+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, tommyw+watchlist_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Create CanvasCaptureMediaStreamTrack in a regular MediaStream This CL handles the recent spec change where we decided to return a specialized CanvasCaptureMediaStreamTrack object instead of a CanvasCaptureMediaStream from a canvas::captureStream() call. BUG=524218 TEST=Ran the demos listed in [0] with MediaCaptureFromElement flag enabled. [0] https://docs.google.com/document/d/1JmWfOtUP6ZqsYJ--U8y0OtHkBt-VyjX4N-JqIjb1t78/edit#heading=h.gee451fatrq7 TBR=esprehn@chromium.org on third_party/WebKit/public/platform/Platform.h Committed: https://crrev.com/9bdf6b77b4c685aeb895e7b7a0ea1ae400e61bb3 Cr-Commit-Position: refs/heads/master@{#364602}

Patch Set 1 : #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : perkj@ comments. #

Total comments: 2

Patch Set 4 : hta@ comment.s #

Total comments: 8

Patch Set 5 : Addressed nits. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -149 lines) Patch
M content/renderer/media/canvas_capture_handler.h View 1 2 3 4 2 chunks +20 lines, -4 lines 0 comments Download
M content/renderer/media/canvas_capture_handler.cc View 1 2 4 chunks +32 lines, -3 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
D third_party/WebKit/Source/modules/mediacapturefromelement/CanvasCaptureMediaStream.h View 1 chunk +0 lines, -37 lines 0 comments Download
D third_party/WebKit/Source/modules/mediacapturefromelement/CanvasCaptureMediaStream.cpp View 1 chunk +0 lines, -58 lines 0 comments Download
D third_party/WebKit/Source/modules/mediacapturefromelement/CanvasCaptureMediaStream.idl View 1 chunk +0 lines, -11 lines 0 comments Download
A + third_party/WebKit/Source/modules/mediacapturefromelement/CanvasCaptureMediaStreamTrack.h View 2 chunks +6 lines, -8 lines 0 comments Download
A third_party/WebKit/Source/modules/mediacapturefromelement/CanvasCaptureMediaStreamTrack.cpp View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/modules/mediacapturefromelement/CanvasCaptureMediaStreamTrack.idl View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediacapturefromelement/HTMLCanvasElementCapture.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/mediacapturefromelement/HTMLCanvasElementCapture.cpp View 2 chunks +11 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/mediacapturefromelement/HTMLCanvasElementCapture.idl View 1 chunk +1 line, -1 line 1 comment Download
M third_party/WebKit/Source/modules/mediastream/MediaStream.h View 2 chunks +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.h View 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/platform/Platform.h View 2 chunks +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (15 generated)
emircan
I applied the spec change that we discussed offline. PTAL.
5 years ago (2015-12-08 00:29:11 UTC) #4
perkj_chrome
I mostly looked at the content/renderer changes again. Will there be a CanvasCaptureMediaStreamTrack in JS ...
5 years ago (2015-12-08 09:05:06 UTC) #7
emircan
https://codereview.chromium.org/1505013002/diff/80001/content/public/renderer/media_stream_api.cc File content/public/renderer/media_stream_api.cc (right): https://codereview.chromium.org/1505013002/diff/80001/content/public/renderer/media_stream_api.cc#newcode133 content/public/renderer/media_stream_api.cc:133: bool AddVideoCapturerSourceToVideoTrack( On 2015/12/08 09:05:06, perkj wrote: > This ...
5 years ago (2015-12-08 19:28:01 UTC) #9
hta - Chromium
lgtm Worry: Where are the layout tests that call the newly created interfaces? I would ...
5 years ago (2015-12-09 07:54:24 UTC) #11
emircan
Thanks. I have another CL below that is adding requestFrame() behavior and testing with a ...
5 years ago (2015-12-10 00:59:26 UTC) #12
emircan
sievers@chromium.org: Please OWNERS review changes in content/renderer/renderer_blink_platform_impl.* haraken@chromium.org: Please OWNERS review changes in third_party/WebKit/Source/modules/mediastream/*
5 years ago (2015-12-10 01:05:44 UTC) #14
haraken
modules/ LGTM https://codereview.chromium.org/1505013002/diff/140001/third_party/WebKit/Source/modules/mediacapturefromelement/CanvasCaptureMediaStreamTrack.cpp File third_party/WebKit/Source/modules/mediacapturefromelement/CanvasCaptureMediaStreamTrack.cpp (right): https://codereview.chromium.org/1505013002/diff/140001/third_party/WebKit/Source/modules/mediacapturefromelement/CanvasCaptureMediaStreamTrack.cpp#newcode13 third_party/WebKit/Source/modules/mediacapturefromelement/CanvasCaptureMediaStreamTrack.cpp:13: Unnecessary empty line. https://codereview.chromium.org/1505013002/diff/140001/third_party/WebKit/Source/modules/mediacapturefromelement/CanvasCaptureMediaStreamTrack.cpp#newcode42 third_party/WebKit/Source/modules/mediacapturefromelement/CanvasCaptureMediaStreamTrack.cpp:42: suspendIfNeeded(); Oh, ...
5 years ago (2015-12-10 01:25:01 UTC) #15
no sievers
On 2015/12/10 01:05:44, emircan wrote: > mailto:sievers@chromium.org: Please OWNERS review changes in > content/renderer/renderer_blink_platform_impl.* > ...
5 years ago (2015-12-10 01:26:10 UTC) #16
perkj_chrome
lgtm with nits Can you add a layout test that clone a CanvasCaptureMediaStreamTrack ? Also, ...
5 years ago (2015-12-10 15:48:57 UTC) #17
emircan
Thanks. I addressed the nits below. perkj@, thanks for pointing out the clone behavior. I ...
5 years ago (2015-12-11 01:50:56 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1505013002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1505013002/160001
5 years ago (2015-12-11 01:53:41 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-11 03:05:50 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1505013002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1505013002/160001
5 years ago (2015-12-11 03:07:53 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:160001)
5 years ago (2015-12-11 03:14:09 UTC) #28
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/9bdf6b77b4c685aeb895e7b7a0ea1ae400e61bb3 Cr-Commit-Position: refs/heads/master@{#364602}
5 years ago (2015-12-11 03:15:10 UTC) #30
esprehn
5 years ago (2015-12-11 03:33:30 UTC) #31
Message was sent while issue was closed.
lgtm

https://codereview.chromium.org/1505013002/diff/160001/third_party/WebKit/Sou...
File
third_party/WebKit/Source/modules/mediacapturefromelement/HTMLCanvasElementCapture.idl
(right):

https://codereview.chromium.org/1505013002/diff/160001/third_party/WebKit/Sou...
third_party/WebKit/Source/modules/mediacapturefromelement/HTMLCanvasElementCapture.idl:9:
[RaisesException] MediaStream captureStream ();
no space before ()

Powered by Google App Engine
This is Rietveld 408576698