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

Unified Diff: media/mojo/services/mojo_video_decoder_service.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/mojo/services/mojo_renderer_service.cc ('k') | media/mojo/services/test_mojo_media_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_video_decoder_service.cc
diff --git a/media/mojo/services/mojo_video_decoder_service.cc b/media/mojo/services/mojo_video_decoder_service.cc
index 8ec218a0ecf9bced3ee81a38b2f28e948b85bdf5..7a94c575413c67f3552f8bf84f0800d20123844c 100644
--- a/media/mojo/services/mojo_video_decoder_service.cc
+++ b/media/mojo/services/mojo_video_decoder_service.cc
@@ -32,7 +32,7 @@ MojoVideoDecoderService::~MojoVideoDecoderService() {}
void MojoVideoDecoderService::Construct(
mojom::VideoDecoderClientAssociatedPtrInfo client,
mojo::ScopedDataPipeConsumerHandle decoder_buffer_pipe) {
- DVLOG(1) << __FUNCTION__;
+ DVLOG(1) << __func__;
if (decoder_)
return;
@@ -50,7 +50,7 @@ void MojoVideoDecoderService::Construct(
void MojoVideoDecoderService::Initialize(mojom::VideoDecoderConfigPtr config,
bool low_delay,
const InitializeCallback& callback) {
- DVLOG(1) << __FUNCTION__;
+ DVLOG(1) << __func__;
if (!decoder_) {
callback.Run(false, false, 1);
@@ -66,7 +66,7 @@ void MojoVideoDecoderService::Initialize(mojom::VideoDecoderConfigPtr config,
void MojoVideoDecoderService::Decode(mojom::DecoderBufferPtr buffer,
const DecodeCallback& callback) {
- DVLOG(2) << __FUNCTION__;
+ DVLOG(2) << __func__;
if (!decoder_) {
callback.Run(DecodeStatus::DECODE_ERROR);
@@ -79,7 +79,7 @@ void MojoVideoDecoderService::Decode(mojom::DecoderBufferPtr buffer,
}
void MojoVideoDecoderService::Reset(const ResetCallback& callback) {
- DVLOG(1) << __FUNCTION__;
+ DVLOG(1) << __func__;
if (!decoder_) {
callback.Run();
@@ -93,7 +93,7 @@ void MojoVideoDecoderService::Reset(const ResetCallback& callback) {
void MojoVideoDecoderService::OnDecoderInitialized(
const InitializeCallback& callback,
bool success) {
- DVLOG(1) << __FUNCTION__;
+ DVLOG(1) << __func__;
DCHECK(decoder_);
callback.Run(success, decoder_->NeedsBitstreamConversion(),
decoder_->GetMaxDecodeRequests());
@@ -116,20 +116,20 @@ void MojoVideoDecoderService::OnDecoderRead(
void MojoVideoDecoderService::OnDecoderDecoded(const DecodeCallback& callback,
DecodeStatus status) {
- DVLOG(2) << __FUNCTION__;
+ DVLOG(2) << __func__;
DCHECK(decoder_);
DCHECK(decoder_->CanReadWithoutStalling());
callback.Run(status);
}
void MojoVideoDecoderService::OnDecoderReset(const ResetCallback& callback) {
- DVLOG(1) << __FUNCTION__;
+ DVLOG(1) << __func__;
callback.Run();
}
void MojoVideoDecoderService::OnDecoderOutput(
const scoped_refptr<VideoFrame>& frame) {
- DVLOG(2) << __FUNCTION__;
+ DVLOG(2) << __func__;
DCHECK(client_);
client_->OnVideoFrameDecoded(mojom::VideoFrame::From(frame));
}
« no previous file with comments | « media/mojo/services/mojo_renderer_service.cc ('k') | media/mojo/services/test_mojo_media_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698