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

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

Issue 1236543007: MSE: Log buffered audio splice generation to media-internals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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_RENDER_MEDIA_LOG_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_
6 #define CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_ 6 #define CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 28 matching lines...) Expand all
39 void AddEventInternal(scoped_ptr<media::MediaLogEvent> event); 39 void AddEventInternal(scoped_ptr<media::MediaLogEvent> event);
40 40
41 // Posted as a delayed task to throttle ipc message frequency. 41 // Posted as a delayed task to throttle ipc message frequency.
42 void SendQueuedMediaEvents(); 42 void SendQueuedMediaEvents();
43 43
44 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 44 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
45 scoped_ptr<base::TickClock> tick_clock_; 45 scoped_ptr<base::TickClock> tick_clock_;
46 base::TimeTicks last_ipc_send_time_; 46 base::TimeTicks last_ipc_send_time_;
47 std::vector<media::MediaLogEvent> queued_media_events_; 47 std::vector<media::MediaLogEvent> queued_media_events_;
48 48
49 // Limits the number buffered extents changed events we send over IPC to one. 49 // Limit the number buffered extents changed and buffered audio splice
50 // statistics changed events we send over IPC to one each.
50 scoped_ptr<media::MediaLogEvent> last_buffered_extents_changed_event_; 51 scoped_ptr<media::MediaLogEvent> last_buffered_extents_changed_event_;
52 scoped_ptr<media::MediaLogEvent>
53 last_buffered_audio_splice_stats_changed_event_;
51 54
52 DISALLOW_COPY_AND_ASSIGN(RenderMediaLog); 55 DISALLOW_COPY_AND_ASSIGN(RenderMediaLog);
53 }; 56 };
54 57
55 } // namespace content 58 } // namespace content
56 59
57 #endif // CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_ 60 #endif // CONTENT_RENDERER_MEDIA_RENDER_MEDIA_LOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698