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

Unified Diff: remoting/codec/video_encoder_helper.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_helper.h ('k') | remoting/codec/video_encoder_helper_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/video_encoder_helper.cc
diff --git a/remoting/codec/video_encoder_helper.cc b/remoting/codec/video_encoder_helper.cc
index d07916220a0e2d515eb507edfb2b43268fba5bb2..d3bf3c861bf2a25e6e1e6cff7cd291d7f3c88c70 100644
--- a/remoting/codec/video_encoder_helper.cc
+++ b/remoting/codec/video_encoder_helper.cc
@@ -13,16 +13,16 @@ namespace remoting {
VideoEncoderHelper::VideoEncoderHelper() {}
-scoped_ptr<VideoPacket> VideoEncoderHelper::CreateVideoPacket(
+std::unique_ptr<VideoPacket> VideoEncoderHelper::CreateVideoPacket(
const webrtc::DesktopFrame& frame) {
return CreateVideoPacketWithUpdatedRegion(frame, frame.updated_region());
}
-scoped_ptr<VideoPacket>
+std::unique_ptr<VideoPacket>
VideoEncoderHelper::CreateVideoPacketWithUpdatedRegion(
const webrtc::DesktopFrame& frame,
const webrtc::DesktopRegion& updated_region) {
- scoped_ptr<VideoPacket> packet(new VideoPacket());
+ std::unique_ptr<VideoPacket> packet(new VideoPacket());
// Set |screen_width| and |screen_height| iff they have changed.
if (!frame.size().equals(screen_size_)) {
« no previous file with comments | « remoting/codec/video_encoder_helper.h ('k') | remoting/codec/video_encoder_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698