Update VideoFrameBuffer-related methods to not use references to scoped_refptr.

Chrome coding standard now discourages use of references to smart
pointers. This cl updates some recent methods to the new conventions.

BUG=webrtc:6672

Review-Url: https://codereview.webrtc.org/2477233004
Cr-Commit-Position: refs/heads/master@{#15028}
This commit is contained in:
nisse
2016-11-10 08:44:38 -08:00
committed by Commit bot
parent 7fe6db91d9
commit e3fe4a7c2d
9 changed files with 72 additions and 53 deletions

View File

@ -334,7 +334,7 @@ void VideoProcessorImpl::FrameDecoded(const VideoFrame& image) {
config_.codec_settings->height));
// Should be the same aspect ratio, no cropping needed.
up_image->ScaleFrom(image.video_frame_buffer());
up_image->ScaleFrom(*image.video_frame_buffer());
// TODO(mikhal): Extracting the buffer for now - need to update test.
size_t length =

View File

@ -149,7 +149,7 @@ class TestVp8Impl : public ::testing::Test {
I420Buffer::Create(kWidth, kHeight, stride_y, stride_uv, stride_uv));
// No scaling in our case, just a copy, to add stride to the image.
stride_buffer->ScaleFrom(compact_buffer);
stride_buffer->ScaleFrom(*compact_buffer);
input_frame_.reset(
new VideoFrame(stride_buffer, kVideoRotation_0, 0));