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

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

Issue 577953002: Adds time measurement of WebRtcAudioRenderer::Render (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed histogram Created 6 years, 3 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 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_RENDERER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_RENDERER_H_
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_RENDERER_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_RENDERER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "base/threading/non_thread_safe.h" 10 #include "base/threading/non_thread_safe.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // Audio params used by the sink of the renderer. 223 // Audio params used by the sink of the renderer.
224 media::AudioParameters sink_params_; 224 media::AudioParameters sink_params_;
225 225
226 // Maps audio sources to a list of active audio renderers. 226 // Maps audio sources to a list of active audio renderers.
227 // Pointers to PlayingState objects are only kept in this map while the 227 // Pointers to PlayingState objects are only kept in this map while the
228 // associated renderer is actually playing the stream. Ownership of the 228 // associated renderer is actually playing the stream. Ownership of the
229 // state objects lies with the renderers and they must leave the playing state 229 // state objects lies with the renderers and they must leave the playing state
230 // before being destructed (PlayingState object goes out of scope). 230 // before being destructed (PlayingState object goes out of scope).
231 SourcePlayingStates source_playing_states_; 231 SourcePlayingStates source_playing_states_;
232 232
233 // Used for triggering new UMA histogram. Counts number of render
234 // callbacks modulo |kNumCallbacksBetweenRenderTimeHistograms|.
235 int render_callback_count_;
236
233 DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcAudioRenderer); 237 DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcAudioRenderer);
234 }; 238 };
235 239
236 } // namespace content 240 } // namespace content
237 241
238 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_RENDERER_H_ 242 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/webrtc_audio_renderer.cc » ('j') | content/renderer/media/webrtc_audio_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698