OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |