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

Issue 631903003: Move VideoDestinationHandler processing to the IO-thread. (Closed)

Created:
6 years, 2 months ago by perkj_chrome
Modified:
6 years, 2 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Move VideoDestinationHandler processing to the IO-thread. This moves reading video frames from shared memory memory received from the pepper effects plugin to the IO thread. Also RGBA color conversion is now done on the IO thread. The purpose of this is to free up processing time on the main render thread. Note that, before this change, the frames from the plugin was posted to the IO thread after the color conversion was done. BUG=421554 Committed: https://crrev.com/49069e124dc1d57b19ffe87c8d324c16f0a2c861 Cr-Commit-Position: refs/heads/master@{#298885}

Patch Set 1 : Fix lint & added comments. #

Patch Set 2 : Rebased #

Total comments: 4

Patch Set 3 : Addressed comments #

Total comments: 7

Patch Set 4 : Addressed comments. #

Total comments: 4

Patch Set 5 : Addressed nit #

Patch Set 6 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -154 lines) Patch
M content/renderer/media/webrtc/video_destination_handler.h View 1 2 3 4 5 2 chunks +28 lines, -41 lines 0 comments Download
M content/renderer/media/webrtc/video_destination_handler.cc View 1 2 3 4 5 5 chunks +118 lines, -94 lines 0 comments Download
M content/renderer/media/webrtc/video_destination_handler_unittest.cc View 1 2 3 4 5 3 chunks +6 lines, -12 lines 0 comments Download
M content/renderer/pepper/pepper_video_destination_host.h View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_video_destination_host.cc View 1 2 3 4 4 chunks +5 lines, -6 lines 0 comments Download

Messages

Total messages: 27 (9 generated)
perkj_chrome
Hej Can you please review?
6 years, 2 months ago (2014-10-07 10:04:51 UTC) #3
magjed_chromium
https://codereview.chromium.org/631903003/diff/40001/content/renderer/media/webrtc/video_destination_handler.h File content/renderer/media/webrtc/video_destination_handler.h (right): https://codereview.chromium.org/631903003/diff/40001/content/renderer/media/webrtc/video_destination_handler.h#newcode47 content/renderer/media/webrtc/video_destination_handler.h:47: // video frames to MediaStreamVideoTracks. It implements a method ...
6 years, 2 months ago (2014-10-07 14:07:01 UTC) #4
perkj_chrome
PTAL https://codereview.chromium.org/631903003/diff/40001/content/renderer/media/webrtc/video_destination_handler.h File content/renderer/media/webrtc/video_destination_handler.h (right): https://codereview.chromium.org/631903003/diff/40001/content/renderer/media/webrtc/video_destination_handler.h#newcode47 content/renderer/media/webrtc/video_destination_handler.h:47: // video frames to MediaStreamVideoTracks. It implements a ...
6 years, 2 months ago (2014-10-07 15:39:04 UTC) #5
tommi (sloooow) - chröme
https://codereview.chromium.org/631903003/diff/60001/content/renderer/media/webrtc/video_destination_handler.cc File content/renderer/media/webrtc/video_destination_handler.cc (right): https://codereview.chromium.org/631903003/diff/60001/content/renderer/media/webrtc/video_destination_handler.cc#newcode102 content/renderer/media/webrtc/video_destination_handler.cc:102: new_frame_callback_, Are you sending a pointer to the callback ...
6 years, 2 months ago (2014-10-08 09:11:25 UTC) #6
perkj_chrome
PTAL https://codereview.chromium.org/631903003/diff/60001/content/renderer/media/webrtc/video_destination_handler.cc File content/renderer/media/webrtc/video_destination_handler.cc (right): https://codereview.chromium.org/631903003/diff/60001/content/renderer/media/webrtc/video_destination_handler.cc#newcode102 content/renderer/media/webrtc/video_destination_handler.cc:102: new_frame_callback_, On 2014/10/08 09:11:24, tommi wrote: > Are ...
6 years, 2 months ago (2014-10-08 12:20:19 UTC) #8
perkj_chrome
Adding bbudge as well Tommi and bbudge, please take a look.
6 years, 2 months ago (2014-10-08 14:29:58 UTC) #10
tommi (sloooow) - chröme
https://codereview.chromium.org/631903003/diff/60001/content/renderer/media/webrtc/video_destination_handler.cc File content/renderer/media/webrtc/video_destination_handler.cc (right): https://codereview.chromium.org/631903003/diff/60001/content/renderer/media/webrtc/video_destination_handler.cc#newcode156 content/renderer/media/webrtc/video_destination_handler.cc:156: delegate_ = new FrameWriterDelegate(io_message_loop()); On 2014/10/08 12:20:18, perkj wrote: ...
6 years, 2 months ago (2014-10-08 14:50:36 UTC) #11
perkj_chrome
https://codereview.chromium.org/631903003/diff/100001/content/renderer/media/webrtc/video_destination_handler.cc File content/renderer/media/webrtc/video_destination_handler.cc (right): https://codereview.chromium.org/631903003/diff/100001/content/renderer/media/webrtc/video_destination_handler.cc#newcode123 content/renderer/media/webrtc/video_destination_handler.cc:123: const VideoCaptureDeliverFrameCB& frame_callback) { On 2014/10/08 14:50:36, tommi wrote: ...
6 years, 2 months ago (2014-10-08 15:27:55 UTC) #12
tommi (sloooow) - chröme
Great. lgtm. I like that we moved the cb completely over to the IO thread.
6 years, 2 months ago (2014-10-08 15:40:18 UTC) #13
bbudge
pepper lgtm w/ 1 nit https://codereview.chromium.org/631903003/diff/100001/content/renderer/pepper/pepper_video_destination_host.cc File content/renderer/pepper/pepper_video_destination_host.cc (right): https://codereview.chromium.org/631903003/diff/100001/content/renderer/pepper/pepper_video_destination_host.cc#newcode7 content/renderer/pepper/pepper_video_destination_host.cc:7: #include <string> nit: this ...
6 years, 2 months ago (2014-10-08 17:23:24 UTC) #14
perkj_chrome
https://codereview.chromium.org/631903003/diff/100001/content/renderer/pepper/pepper_video_destination_host.cc File content/renderer/pepper/pepper_video_destination_host.cc (right): https://codereview.chromium.org/631903003/diff/100001/content/renderer/pepper/pepper_video_destination_host.cc#newcode7 content/renderer/pepper/pepper_video_destination_host.cc:7: #include <string> On 2014/10/08 17:23:23, bbudge wrote: > nit: ...
6 years, 2 months ago (2014-10-08 18:37:37 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/631903003/120001
6 years, 2 months ago (2014-10-08 18:40:35 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/66110) win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/70936) android_aosp ...
6 years, 2 months ago (2014-10-08 18:47:49 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/631903003/140001
6 years, 2 months ago (2014-10-09 07:46:01 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/22903)
6 years, 2 months ago (2014-10-09 09:10:17 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/631903003/140001
6 years, 2 months ago (2014-10-09 14:06:35 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:140001) as 3255c2f7bfc8b4e64dd5d45c167469baa6e4b038
6 years, 2 months ago (2014-10-09 16:07:22 UTC) #26
commit-bot: I haz the power
6 years, 2 months ago (2014-10-09 16:09:34 UTC) #27
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/49069e124dc1d57b19ffe87c8d324c16f0a2c861
Cr-Commit-Position: refs/heads/master@{#298885}

Powered by Google App Engine
This is Rietveld 408576698