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

Unified Diff: webkit/renderer/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc

Issue 17315021: Refactored DataBuffer to use unix_hacker style methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Inlined getters and setters on DataBuffer Created 7 years, 6 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 | « webkit/plugins/ppapi/content_decryptor_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/renderer/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc
diff --git a/webkit/renderer/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc b/webkit/renderer/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc
index 2f7ac2f094996f8042984b68b7e891afe4adcef5..2019b3c494f22e15bf3cce986382355a727a5c88 100644
--- a/webkit/renderer/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc
+++ b/webkit/renderer/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc
@@ -337,12 +337,12 @@ cdm::Status FFmpegCdmAudioDecoder::DecodeBuffer(
}
output = new media::DataBuffer(decoded_audio_size);
- output->SetDataSize(decoded_audio_size);
+ output->set_data_size(decoded_audio_size);
DCHECK_EQ(frames_to_interleave, converter_bus_->frames() - skip_frames);
converter_bus_->ToInterleavedPartial(
skip_frames, frames_to_interleave, bits_per_channel_ / 8,
- output->GetWritableData());
+ output->writable_data());
} else {
output = media::DataBuffer::CopyFrom(
av_frame_->extended_data[0] + start_sample * bytes_per_frame_,
@@ -355,11 +355,11 @@ cdm::Status FFmpegCdmAudioDecoder::DecodeBuffer(
// Serialize the audio samples into |serialized_audio_frames_|.
SerializeInt64(output_timestamp.InMicroseconds());
- SerializeInt64(output->GetDataSize());
+ SerializeInt64(output->data_size());
serialized_audio_frames_.insert(
serialized_audio_frames_.end(),
- output->GetData(),
- output->GetData() + output->GetDataSize());
+ output->data(),
+ output->data() + output->data_size());
}
} while (packet.size > 0);
« no previous file with comments | « webkit/plugins/ppapi/content_decryptor_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698