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

Unified Diff: media/mojo/clients/mojo_audio_decoder.cc

Issue 2518403004: media: Use __func__ instead of __FUNCTION__ (Closed)
Patch Set: rebase Created 4 years 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 | « media/gpu/vt_video_encode_accelerator_mac.cc ('k') | media/mojo/clients/mojo_audio_decoder_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/clients/mojo_audio_decoder.cc
diff --git a/media/mojo/clients/mojo_audio_decoder.cc b/media/mojo/clients/mojo_audio_decoder.cc
index df2b12af483cdc103653537b5ce4a70b44e4d5ea..9347714173fa9f1ba0c09545a8f118fbe518fc03 100644
--- a/media/mojo/clients/mojo_audio_decoder.cc
+++ b/media/mojo/clients/mojo_audio_decoder.cc
@@ -27,11 +27,11 @@ MojoAudioDecoder::MojoAudioDecoder(
client_binding_(this),
has_connection_error_(false),
needs_bitstream_conversion_(false) {
- DVLOG(1) << __FUNCTION__;
+ DVLOG(1) << __func__;
}
MojoAudioDecoder::~MojoAudioDecoder() {
- DVLOG(1) << __FUNCTION__;
+ DVLOG(1) << __func__;
}
std::string MojoAudioDecoder::GetDisplayName() const {
@@ -42,7 +42,7 @@ void MojoAudioDecoder::Initialize(const AudioDecoderConfig& config,
CdmContext* cdm_context,
const InitCB& init_cb,
const OutputCB& output_cb) {
- DVLOG(1) << __FUNCTION__;
+ DVLOG(1) << __func__;
DCHECK(task_runner_->BelongsToCurrentThread());
// Bind |remote_decoder_| to the |task_runner_|.
@@ -80,7 +80,7 @@ void MojoAudioDecoder::Initialize(const AudioDecoderConfig& config,
void MojoAudioDecoder::Decode(const scoped_refptr<DecoderBuffer>& media_buffer,
const DecodeCB& decode_cb) {
- DVLOG(3) << __FUNCTION__;
+ DVLOG(3) << __func__;
DCHECK(task_runner_->BelongsToCurrentThread());
if (has_connection_error_) {
@@ -106,7 +106,7 @@ void MojoAudioDecoder::Decode(const scoped_refptr<DecoderBuffer>& media_buffer,
}
void MojoAudioDecoder::Reset(const base::Closure& closure) {
- DVLOG(2) << __FUNCTION__;
+ DVLOG(2) << __func__;
DCHECK(task_runner_->BelongsToCurrentThread());
if (has_connection_error_) {
@@ -127,21 +127,21 @@ void MojoAudioDecoder::Reset(const base::Closure& closure) {
}
bool MojoAudioDecoder::NeedsBitstreamConversion() const {
- DVLOG(1) << __FUNCTION__;
+ DVLOG(1) << __func__;
DCHECK(task_runner_->BelongsToCurrentThread());
return needs_bitstream_conversion_;
}
void MojoAudioDecoder::OnBufferDecoded(mojom::AudioBufferPtr buffer) {
- DVLOG(1) << __FUNCTION__;
+ DVLOG(1) << __func__;
DCHECK(task_runner_->BelongsToCurrentThread());
output_cb_.Run(buffer.To<scoped_refptr<AudioBuffer>>());
}
void MojoAudioDecoder::OnConnectionError() {
- DVLOG(1) << __FUNCTION__;
+ DVLOG(1) << __func__;
DCHECK(task_runner_->BelongsToCurrentThread());
has_connection_error_ = true;
@@ -159,7 +159,7 @@ void MojoAudioDecoder::OnConnectionError() {
void MojoAudioDecoder::OnInitialized(bool success,
bool needs_bitstream_conversion) {
- DVLOG(1) << __FUNCTION__ << ": success:" << success;
+ DVLOG(1) << __func__ << ": success:" << success;
DCHECK(task_runner_->BelongsToCurrentThread());
needs_bitstream_conversion_ = needs_bitstream_conversion;
@@ -176,7 +176,7 @@ void MojoAudioDecoder::OnInitialized(bool success,
}
void MojoAudioDecoder::OnDecodeStatus(DecodeStatus status) {
- DVLOG(1) << __FUNCTION__ << ": status:" << status;
+ DVLOG(1) << __func__ << ": status:" << status;
DCHECK(task_runner_->BelongsToCurrentThread());
DCHECK(!decode_cb_.is_null());
@@ -184,7 +184,7 @@ void MojoAudioDecoder::OnDecodeStatus(DecodeStatus status) {
}
void MojoAudioDecoder::OnResetDone() {
- DVLOG(1) << __FUNCTION__;
+ DVLOG(1) << __func__;
DCHECK(task_runner_->BelongsToCurrentThread());
// For pending decodes OnDecodeStatus() should arrive before OnResetDone().
« no previous file with comments | « media/gpu/vt_video_encode_accelerator_mac.cc ('k') | media/mojo/clients/mojo_audio_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698