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

Unified Diff: remoting/codec/video_encoder_verbatim.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/codec/video_encoder_verbatim.h ('k') | remoting/codec/video_encoder_verbatim_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/video_encoder_verbatim.cc
diff --git a/remoting/codec/video_encoder_verbatim.cc b/remoting/codec/video_encoder_verbatim.cc
index 9da4850ad602ab16784248dc556d802d891fdccc..797d0acaaa2e182587d2642814e17057712b44c8 100644
--- a/remoting/codec/video_encoder_verbatim.cc
+++ b/remoting/codec/video_encoder_verbatim.cc
@@ -25,7 +25,7 @@ static uint8_t* GetPacketOutputBuffer(VideoPacket* packet, size_t size) {
VideoEncoderVerbatim::VideoEncoderVerbatim() {}
VideoEncoderVerbatim::~VideoEncoderVerbatim() {}
-scoped_ptr<VideoPacket> VideoEncoderVerbatim::Encode(
+std::unique_ptr<VideoPacket> VideoEncoderVerbatim::Encode(
const webrtc::DesktopFrame& frame) {
DCHECK(frame.data());
@@ -35,7 +35,7 @@ scoped_ptr<VideoPacket> VideoEncoderVerbatim::Encode(
return nullptr;
// Create a VideoPacket with common fields (e.g. DPI, rects, shape) set.
- scoped_ptr<VideoPacket> packet(helper_.CreateVideoPacket(frame));
+ std::unique_ptr<VideoPacket> packet(helper_.CreateVideoPacket(frame));
packet->mutable_format()->set_encoding(VideoPacketFormat::ENCODING_VERBATIM);
// Calculate output size.
« no previous file with comments | « remoting/codec/video_encoder_verbatim.h ('k') | remoting/codec/video_encoder_verbatim_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698