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

Issue 213253005: Use texture-backed VideoFrane pipeline for Aura desktop capturing. (Closed)

Created:
6 years, 9 months ago by sheu
Modified:
6 years, 7 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, Ami GONE FROM CHROMIUM, Pawel Osciak
Visibility:
Public.

Description

Use texture-backed VideoFrane pipeline for Aura desktop capturing. BUG=269312 TEST=local build, run on CrOS snow

Patch Set 1 : 51d44e02 Initial. #

Total comments: 14
Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -83 lines) Patch
M content/browser/media/capture/content_video_capture_device_core.h View 5 chunks +14 lines, -15 lines 3 comments Download
M content/browser/media/capture/content_video_capture_device_core.cc View 8 chunks +52 lines, -45 lines 6 comments Download
M content/browser/media/capture/desktop_capture_device_aura.cc View 7 chunks +42 lines, -5 lines 5 comments Download
M content/browser/media/capture/web_contents_video_capture_device.cc View 5 chunks +9 lines, -15 lines 0 comments Download
M content/renderer/media/webrtc/webrtc_video_sink_adapter.cc View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
sheu
Two comments added already on the ickiest parts. Please feel free to comment or ask ...
6 years, 8 months ago (2014-04-01 00:11:26 UTC) #1
sheu
PTAL, especially w.r.t. the design here. I've commented a bit already.
6 years, 8 months ago (2014-04-01 00:38:52 UTC) #2
Ami GONE FROM CHROMIUM
https://codereview.chromium.org/213253005/diff/20001/content/browser/media/capture/content_video_capture_device_core.cc File content/browser/media/capture/content_video_capture_device_core.cc (right): https://codereview.chromium.org/213253005/diff/20001/content/browser/media/capture/content_video_capture_device_core.cc#newcode61 content/browser/media/capture/content_video_capture_device_core.cc:61: video_frame_format_ = media::VideoFrame::UNKNOWN; This needs to be handled elsewhere ...
6 years, 8 months ago (2014-04-01 18:03:37 UTC) #3
Ami GONE FROM CHROMIUM
Ping? @sheu: are you planning to look at this again? @hshi: are you planning to ...
6 years, 8 months ago (2014-04-17 17:15:22 UTC) #4
sheu
https://codereview.chromium.org/213253005/diff/20001/content/browser/media/capture/content_video_capture_device_core.cc File content/browser/media/capture/content_video_capture_device_core.cc (right): https://codereview.chromium.org/213253005/diff/20001/content/browser/media/capture/content_video_capture_device_core.cc#newcode123 content/browser/media/capture/content_video_capture_device_core.cc:123: if (video_frame_format_ != media::VideoFrame::NATIVE_TEXTURE) { On 2014/04/01 18:03:38, Ami ...
6 years, 8 months ago (2014-04-21 20:39:39 UTC) #5
hshi1
+perkj to advise because this CL has conflicts with trunk; the class WebRtcVideoSinkAdapter no longer ...
6 years, 8 months ago (2014-04-23 19:00:28 UTC) #6
perkj_chrome
On 2014/04/23 19:00:28, hshi1 wrote: > +perkj to advise because this CL has conflicts with ...
6 years, 8 months ago (2014-04-24 08:13:24 UTC) #7
hshi1
On 2014/04/24 08:13:24, perkj wrote: > On 2014/04/23 19:00:28, hshi1 wrote: > > +perkj to ...
6 years, 8 months ago (2014-04-24 18:24:37 UTC) #8
hshi1
https://codereview.chromium.org/213253005/diff/20001/content/browser/media/capture/content_video_capture_device_core.h File content/browser/media/capture/content_video_capture_device_core.h (right): https://codereview.chromium.org/213253005/diff/20001/content/browser/media/capture/content_video_capture_device_core.h#newcode56 content/browser/media/capture/content_video_capture_device_core.h:56: // If |success| is false, all other parameters are ...
6 years, 8 months ago (2014-04-24 20:55:45 UTC) #9
Ami GONE FROM CHROMIUM
https://codereview.chromium.org/213253005/diff/20001/content/browser/media/capture/content_video_capture_device_core.h File content/browser/media/capture/content_video_capture_device_core.h (right): https://codereview.chromium.org/213253005/diff/20001/content/browser/media/capture/content_video_capture_device_core.h#newcode56 content/browser/media/capture/content_video_capture_device_core.h:56: // If |success| is false, all other parameters are ...
6 years, 8 months ago (2014-04-24 21:05:27 UTC) #10
hshi1
https://codereview.chromium.org/213253005/diff/20001/content/browser/media/capture/content_video_capture_device_core.cc File content/browser/media/capture/content_video_capture_device_core.cc (right): https://codereview.chromium.org/213253005/diff/20001/content/browser/media/capture/content_video_capture_device_core.cc#newcode61 content/browser/media/capture/content_video_capture_device_core.cc:61: video_frame_format_ = media::VideoFrame::UNKNOWN; On 2014/04/01 18:03:38, Ami Fischman wrote: ...
6 years, 8 months ago (2014-04-24 21:22:34 UTC) #11
Ami GONE FROM CHROMIUM
6 years, 8 months ago (2014-04-24 22:02:37 UTC) #12
https://codereview.chromium.org/213253005/diff/20001/content/browser/media/ca...
File content/browser/media/capture/content_video_capture_device_core.cc (right):

https://codereview.chromium.org/213253005/diff/20001/content/browser/media/ca...
content/browser/media/capture/content_video_capture_device_core.cc:61:
video_frame_format_ = media::VideoFrame::UNKNOWN;
On 2014/04/24 21:22:35, hshi1 wrote:
> On 2014/04/01 18:03:38, Ami Fischman wrote:
> > This needs to be handled elsewhere with some early-outs, no?
> 
> I'll add a format check in the caller
> (ContentVideoCaptureDeviceCore::AllocateAndStart) where I can early-out by
> calling client->OnError.
> 
> In that case this "default" will never be reached. Do you want me to remove
the
> NOTREACHED() here?

no code is best code so if you can delete it then that's great.
I suspect that you can't delete the default: clause without accounting for all
the enum values, so I think l.59-62 will turn into:
LOG(FATAL) << "Unpossible! " << params_.requested_format.pixel_format;

Powered by Google App Engine
This is Rietveld 408576698