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

Side by Side Diff: content/renderer/media/webrtc_audio_renderer.cc

Issue 2161193003: Use __func__ instead of __FUNCTION__. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/media/webrtc_audio_renderer.h" 5 #include "content/renderer/media/webrtc_audio_renderer.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 media_stream_(media_stream), 66 media_stream_(media_stream),
67 started_(false), 67 started_(false),
68 on_play_state_changed_(on_play_state_changed) { 68 on_play_state_changed_(on_play_state_changed) {
69 DCHECK(!on_play_state_changed_.is_null()); 69 DCHECK(!on_play_state_changed_.is_null());
70 DCHECK(!media_stream_.isNull()); 70 DCHECK(!media_stream_.isNull());
71 } 71 }
72 72
73 protected: 73 protected:
74 ~SharedAudioRenderer() override { 74 ~SharedAudioRenderer() override {
75 DCHECK(thread_checker_.CalledOnValidThread()); 75 DCHECK(thread_checker_.CalledOnValidThread());
76 DVLOG(1) << __FUNCTION__; 76 DVLOG(1) << __func__;
77 Stop(); 77 Stop();
78 } 78 }
79 79
80 void Start() override { 80 void Start() override {
81 DCHECK(thread_checker_.CalledOnValidThread()); 81 DCHECK(thread_checker_.CalledOnValidThread());
82 if (started_) 82 if (started_)
83 return; 83 return;
84 started_ = true; 84 started_ = true;
85 delegate_->Start(); 85 delegate_->Start();
86 } 86 }
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 base::Bind(&WebRtcAudioRenderer::SourceCallback, 647 base::Bind(&WebRtcAudioRenderer::SourceCallback,
648 base::Unretained(this)))); 648 base::Unretained(this))));
649 } 649 }
650 sink_params_ = new_sink_params; 650 sink_params_ = new_sink_params;
651 } 651 }
652 652
653 sink_->Initialize(new_sink_params, this); 653 sink_->Initialize(new_sink_params, this);
654 } 654 }
655 655
656 } // namespace content 656 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/webmediaplayer_ms_compositor.cc ('k') | media/audio/audio_output_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698