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

Side by Side Diff: content/browser/renderer_host/media/audio_sync_reader.h

Issue 11975031: Track UMA stats for when the renderer side audio device wasn't ready. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup! Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/renderer_host/media/audio_sync_reader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BROWSER_RENDERER_HOST_MEDIA_AUDIO_SYNC_READER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_SYNC_READER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_SYNC_READER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_SYNC_READER_H_
7 7
8 #include "base/file_descriptor_posix.h" 8 #include "base/file_descriptor_posix.h"
9 #include "base/process.h" 9 #include "base/process.h"
10 #include "base/sync_socket.h" 10 #include "base/sync_socket.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 // Shared memory wrapper used for transferring audio data to Read() callers. 61 // Shared memory wrapper used for transferring audio data to Read() callers.
62 scoped_ptr<media::AudioBus> output_bus_; 62 scoped_ptr<media::AudioBus> output_bus_;
63 63
64 // Shared memory wrapper used for transferring audio data from Read() callers. 64 // Shared memory wrapper used for transferring audio data from Read() callers.
65 scoped_ptr<media::AudioBus> input_bus_; 65 scoped_ptr<media::AudioBus> input_bus_;
66 66
67 // Maximum amount of audio data which can be transferred in one Read() call. 67 // Maximum amount of audio data which can be transferred in one Read() call.
68 int packet_size_; 68 int packet_size_;
69 69
70 // Track the number of times the renderer missed its real-time deadline and
71 // report a UMA stat during destruction.
72 size_t renderer_callback_count_;
73 size_t renderer_missed_callback_count_;
74
70 DISALLOW_COPY_AND_ASSIGN(AudioSyncReader); 75 DISALLOW_COPY_AND_ASSIGN(AudioSyncReader);
71 }; 76 };
72 77
73 } // namespace content 78 } // namespace content
74 79
75 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_SYNC_READER_H_ 80 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_SYNC_READER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/media/audio_sync_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698