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

Side by Side Diff: content/renderer/pepper/pepper_media_stream_video_track_host.cc

Issue 2973503002: Remove unused parameters from MediaStreamVideoSource::StartCaptureImpl() (Closed)
Patch Set: rebase Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/media/webrtc/media_stream_remote_video_source.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/pepper/pepper_media_stream_video_track_host.h" 5 #include "content/renderer/pepper/pepper_media_stream_video_track_host.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 408
409 class PepperMediaStreamVideoTrackHost::VideoSource final 409 class PepperMediaStreamVideoTrackHost::VideoSource final
410 : public MediaStreamVideoSource { 410 : public MediaStreamVideoSource {
411 public: 411 public:
412 explicit VideoSource(base::WeakPtr<PepperMediaStreamVideoTrackHost> host) 412 explicit VideoSource(base::WeakPtr<PepperMediaStreamVideoTrackHost> host)
413 : host_(std::move(host)) {} 413 : host_(std::move(host)) {}
414 414
415 ~VideoSource() final { StopSourceImpl(); } 415 ~VideoSource() final { StopSourceImpl(); }
416 416
417 void StartSourceImpl( 417 void StartSourceImpl(
418 const media::VideoCaptureFormat& format,
419 const blink::WebMediaConstraints& constraints,
420 const VideoCaptureDeliverFrameCB& frame_callback) final { 418 const VideoCaptureDeliverFrameCB& frame_callback) final {
421 if (host_) { 419 if (host_) {
422 host_->frame_deliverer_ = 420 host_->frame_deliverer_ =
423 new FrameDeliverer(io_task_runner(), frame_callback); 421 new FrameDeliverer(io_task_runner(), frame_callback);
424 } 422 }
425 } 423 }
426 424
427 void StopSourceImpl() final { 425 void StopSourceImpl() final {
428 if (host_) 426 if (host_)
429 host_->frame_deliverer_ = nullptr; 427 host_->frame_deliverer_ = nullptr;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 } 528 }
531 529
532 void PepperMediaStreamVideoTrackHost::OnTrackStarted( 530 void PepperMediaStreamVideoTrackHost::OnTrackStarted(
533 MediaStreamSource* source, 531 MediaStreamSource* source,
534 MediaStreamRequestResult result, 532 MediaStreamRequestResult result,
535 const blink::WebString& result_name) { 533 const blink::WebString& result_name) {
536 DVLOG(3) << "OnTrackStarted result: " << result; 534 DVLOG(3) << "OnTrackStarted result: " << result;
537 } 535 }
538 536
539 } // namespace content 537 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/webrtc/media_stream_remote_video_source.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698