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:
@ -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 =
|
||||
|
||||
@ -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));
|
||||
|
||||
Reference in New Issue
Block a user