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

Unified Diff: remoting/codec/audio_encoder_opus.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/audio_encoder_opus.h ('k') | remoting/codec/audio_encoder_opus_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/audio_encoder_opus.cc
diff --git a/remoting/codec/audio_encoder_opus.cc b/remoting/codec/audio_encoder_opus.cc
index c0b5710105acc8a356327bb514317ff865ce9295..cc3e71c616734460d141888fbc73b8713adce330 100644
--- a/remoting/codec/audio_encoder_opus.cc
+++ b/remoting/codec/audio_encoder_opus.cc
@@ -137,8 +137,8 @@ int AudioEncoderOpus::GetBitrate() {
return kOutputBitrateBps;
}
-scoped_ptr<AudioPacket> AudioEncoderOpus::Encode(
- scoped_ptr<AudioPacket> packet) {
+std::unique_ptr<AudioPacket> AudioEncoderOpus::Encode(
+ std::unique_ptr<AudioPacket> packet) {
DCHECK_EQ(AudioPacket::ENCODING_RAW, packet->encoding());
DCHECK_EQ(1, packet->data_size());
DCHECK_EQ(kBytesPerSample, packet->bytes_per_sample());
@@ -153,7 +153,7 @@ scoped_ptr<AudioPacket> AudioEncoderOpus::Encode(
reinterpret_cast<const int16_t*>(packet->data(0).data());
// Create a new packet of encoded data.
- scoped_ptr<AudioPacket> encoded_packet(new AudioPacket());
+ std::unique_ptr<AudioPacket> encoded_packet(new AudioPacket());
encoded_packet->set_encoding(AudioPacket::ENCODING_OPUS);
encoded_packet->set_sampling_rate(kOpusSamplingRate);
encoded_packet->set_channels(channels_);
« no previous file with comments | « remoting/codec/audio_encoder_opus.h ('k') | remoting/codec/audio_encoder_opus_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698