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

Side by Side Diff: content/renderer/media/video_track_recorder.cc

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/media/video_track_recorder.h" 5 #include "content/renderer/media/video_track_recorder.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 VideoTrackRecorder::VideoTrackRecorder( 379 VideoTrackRecorder::VideoTrackRecorder(
380 bool use_vp9, 380 bool use_vp9,
381 const blink::WebMediaStreamTrack& track, 381 const blink::WebMediaStreamTrack& track,
382 const OnEncodedVideoCB& on_encoded_video_callback, 382 const OnEncodedVideoCB& on_encoded_video_callback,
383 int32_t bits_per_second) 383 int32_t bits_per_second)
384 : track_(track), 384 : track_(track),
385 encoder_( 385 encoder_(
386 new VpxEncoder(use_vp9, on_encoded_video_callback, bits_per_second)) { 386 new VpxEncoder(use_vp9, on_encoded_video_callback, bits_per_second)) {
387 DCHECK(main_render_thread_checker_.CalledOnValidThread()); 387 DCHECK(main_render_thread_checker_.CalledOnValidThread());
388 DCHECK(!track_.isNull()); 388 DCHECK(!track_.isNull());
389 DCHECK(track_.extraData()); 389 DCHECK(track_.getExtraData());
390 390
391 // StartFrameEncode() will be called on Render IO thread. 391 // StartFrameEncode() will be called on Render IO thread.
392 AddToVideoTrack(this, 392 AddToVideoTrack(this,
393 base::Bind(&VideoTrackRecorder::VpxEncoder::StartFrameEncode, 393 base::Bind(&VideoTrackRecorder::VpxEncoder::StartFrameEncode,
394 encoder_), 394 encoder_),
395 track_); 395 track_);
396 } 396 }
397 397
398 VideoTrackRecorder::~VideoTrackRecorder() { 398 VideoTrackRecorder::~VideoTrackRecorder() {
399 DCHECK(main_render_thread_checker_.CalledOnValidThread()); 399 DCHECK(main_render_thread_checker_.CalledOnValidThread());
(...skipping 13 matching lines...) Expand all
413 encoder_->set_paused(false); 413 encoder_->set_paused(false);
414 } 414 }
415 415
416 void VideoTrackRecorder::OnVideoFrameForTesting( 416 void VideoTrackRecorder::OnVideoFrameForTesting(
417 const scoped_refptr<media::VideoFrame>& frame, 417 const scoped_refptr<media::VideoFrame>& frame,
418 base::TimeTicks timestamp) { 418 base::TimeTicks timestamp) {
419 encoder_->StartFrameEncode(frame, timestamp); 419 encoder_->StartFrameEncode(frame, timestamp);
420 } 420 }
421 421
422 } // namespace content 422 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698