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

Side by Side Diff: media/renderers/audio_renderer_impl.h

Issue 1409123005: Add methods for telling V8 how much memory audio/video is using. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mock filter. Created 5 years, 2 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 // Audio rendering unit utilizing an AudioRendererSink to output data. 5 // Audio rendering unit utilizing an AudioRendererSink to output data.
6 // 6 //
7 // This class lives inside three threads during it's lifetime, namely: 7 // This class lives inside three threads during it's lifetime, namely:
8 // 1. Render thread 8 // 1. Render thread
9 // Where the object is created. 9 // Where the object is created.
10 // 2. Media thread (provided via constructor) 10 // 2. Media thread (provided via constructor)
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 scoped_refptr<MediaLog> media_log_; 208 scoped_refptr<MediaLog> media_log_;
209 209
210 // Cached copy of hardware params from |hardware_config_|. 210 // Cached copy of hardware params from |hardware_config_|.
211 AudioParameters audio_parameters_; 211 AudioParameters audio_parameters_;
212 212
213 // Callbacks provided during Initialize(). 213 // Callbacks provided during Initialize().
214 PipelineStatusCB init_cb_; 214 PipelineStatusCB init_cb_;
215 BufferingStateCB buffering_state_cb_; 215 BufferingStateCB buffering_state_cb_;
216 base::Closure ended_cb_; 216 base::Closure ended_cb_;
217 PipelineStatusCB error_cb_; 217 PipelineStatusCB error_cb_;
218 StatisticsCB statistics_cb_;
218 219
219 // Callback provided to Flush(). 220 // Callback provided to Flush().
220 base::Closure flush_cb_; 221 base::Closure flush_cb_;
221 222
222 // Overridable tick clock for testing. 223 // Overridable tick clock for testing.
223 scoped_ptr<base::TickClock> tick_clock_; 224 scoped_ptr<base::TickClock> tick_clock_;
224 225
225 // After Initialize() has completed, all variables below must be accessed 226 // After Initialize() has completed, all variables below must be accessed
226 // under |lock_|. ------------------------------------------------------------ 227 // under |lock_|. ------------------------------------------------------------
227 base::Lock lock_; 228 base::Lock lock_;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 275
275 // NOTE: Weak pointers must be invalidated before all other member variables. 276 // NOTE: Weak pointers must be invalidated before all other member variables.
276 base::WeakPtrFactory<AudioRendererImpl> weak_factory_; 277 base::WeakPtrFactory<AudioRendererImpl> weak_factory_;
277 278
278 DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl); 279 DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl);
279 }; 280 };
280 281
281 } // namespace media 282 } // namespace media
282 283
283 #endif // MEDIA_RENDERERS_AUDIO_RENDERER_IMPL_H_ 284 #endif // MEDIA_RENDERERS_AUDIO_RENDERER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698