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

Unified Diff: media/remoting/remote_demuxer_stream_adapter.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/test_mojo_media_client.cc ('k') | media/remoting/remote_renderer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/remoting/remote_demuxer_stream_adapter.cc
diff --git a/media/remoting/remote_demuxer_stream_adapter.cc b/media/remoting/remote_demuxer_stream_adapter.cc
index 13c7e9ff0837bc6070b7f6a64b8bcc9f370c81a9..cc66c18507285efb83f99defdce24f537406959f 100644
--- a/media/remoting/remote_demuxer_stream_adapter.cc
+++ b/media/remoting/remote_demuxer_stream_adapter.cc
@@ -83,7 +83,7 @@ RemoteDemuxerStreamAdapter::~RemoteDemuxerStreamAdapter() {
base::Optional<uint32_t> RemoteDemuxerStreamAdapter::SignalFlush(
bool flushing) {
DCHECK(media_task_runner_->BelongsToCurrentThread());
- VLOG(2) << __FUNCTION__ << " (" << name_ << "): " << flushing;
+ VLOG(2) << __func__ << " (" << name_ << "): " << flushing;
// Ignores if |pending_flush_| states is same.
if (pending_flush_ == flushing)
@@ -127,7 +127,7 @@ void RemoteDemuxerStreamAdapter::OnReceivedRpc(
void RemoteDemuxerStreamAdapter::Initialize(int remote_callback_handle) {
DCHECK(media_task_runner_->BelongsToCurrentThread());
DCHECK(!pending_flush_);
- VLOG(2) << __FUNCTION__ << " (" << name_ << "):" << type_;
+ VLOG(2) << __func__ << " (" << name_ << "):" << type_;
// Checks if initialization had been called or not.
if (remote_callback_handle_ != kInvalidHandle) {
@@ -219,7 +219,7 @@ void RemoteDemuxerStreamAdapter::OnNewBuffer(
int callback_handle,
::media::DemuxerStream::Status status,
const scoped_refptr<::media::DecoderBuffer>& input) {
- VLOG(3) << __FUNCTION__ << " (" << name_ << ") status:" << status;
+ VLOG(3) << __func__ << " (" << name_ << ") status:" << status;
DCHECK(media_task_runner_->BelongsToCurrentThread());
if (pending_flush_) {
VLOG(2) << "Skip actions since it's in the flushing state";
@@ -324,8 +324,7 @@ void RemoteDemuxerStreamAdapter::TryWriteData(int callback_handle,
void RemoteDemuxerStreamAdapter::SendReadAck(int callback_handle) {
DCHECK(media_task_runner_->BelongsToCurrentThread());
- VLOG(3) << __FUNCTION__ << " name:" << name_
- << " last frame id:" << last_count_
+ VLOG(3) << __func__ << " name:" << name_ << " last frame id:" << last_count_
<< " remote_read_callback_handle:" << callback_handle
<< " media_status:" << media_status_;
// Resets the flag that it's not in the ReadUntil process.
@@ -372,7 +371,7 @@ void RemoteDemuxerStreamAdapter::ResetPendingFrame() {
void RemoteDemuxerStreamAdapter::OnFatalError() {
DCHECK(media_task_runner_->BelongsToCurrentThread());
- VLOG(2) << __FUNCTION__;
+ VLOG(2) << __func__;
// Resets mojo data pipe producer handle.
producer_handle_.reset();
« no previous file with comments | « media/mojo/services/test_mojo_media_client.cc ('k') | media/remoting/remote_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698