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

Unified Diff: content/renderer/media/webrtc_audio_renderer.h

Issue 328493003: Pass the elapsed time from VoE to WebRtcAudioRenderer as the current time for the audio/video eleme… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/media/webrtc_audio_device_impl.cc ('k') | content/renderer/media/webrtc_audio_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webrtc_audio_renderer.h
===================================================================
--- content/renderer/media/webrtc_audio_renderer.h (revision 275847)
+++ content/renderer/media/webrtc_audio_renderer.h (working copy)
@@ -194,8 +194,8 @@
// Audio data source from the browser process.
WebRtcAudioRendererSource* source_;
- // Protects access to |state_|, |source_| and |sink_|.
- base::Lock lock_;
+ // Protects access to |state_|, |source_|, |sink_| and |current_time_|.
+ mutable base::Lock lock_;
// Ref count for the MediaPlayers which are playing audio.
int play_ref_count_;
@@ -214,6 +214,8 @@
// Delay due to the FIFO in milliseconds.
int fifo_delay_milliseconds_;
+ base::TimeDelta current_time_;
+
// Saved volume and playing state of the root renderer.
PlayingState playing_state_;
« no previous file with comments | « content/renderer/media/webrtc_audio_device_impl.cc ('k') | content/renderer/media/webrtc_audio_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698