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

Side by Side Diff: chrome/renderer/media/cast_session_delegate.cc

Issue 401213002: Cast: Log playout delay from receiver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: namespace Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | media/cast/test/simulator.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "chrome/renderer/media/cast_session_delegate.h" 5 #include "chrome/renderer/media/cast_session_delegate.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "chrome/common/chrome_version_info.h" 10 #include "chrome/common/chrome_version_info.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 it->rtp_timestamp, 231 it->rtp_timestamp,
232 it->frame_id, 232 it->frame_id,
233 it->packet_id, 233 it->packet_id,
234 it->max_packet_id, 234 it->max_packet_id,
235 it->size); 235 it->size);
236 } 236 }
237 for (std::vector<media::cast::FrameEvent>::const_iterator it = 237 for (std::vector<media::cast::FrameEvent>::const_iterator it =
238 frame_events.begin(); 238 frame_events.begin();
239 it != frame_events.end(); 239 it != frame_events.end();
240 ++it) { 240 ++it) {
241 cast_environment_->Logging()->InsertFrameEvent(it->timestamp, 241 if (it->type == media::cast::FRAME_PLAYOUT) {
242 it->type, 242 cast_environment_->Logging()->InsertFrameEventWithDelay(
243 it->media_type, 243 it->timestamp,
244 it->rtp_timestamp, 244 it->type,
245 it->frame_id); 245 it->media_type,
246 it->rtp_timestamp,
247 it->frame_id,
248 it->delay_delta);
249 } else {
250 cast_environment_->Logging()->InsertFrameEvent(
251 it->timestamp,
252 it->type,
253 it->media_type,
254 it->rtp_timestamp,
255 it->frame_id);
256 }
246 } 257 }
247 } 258 }
OLDNEW
« no previous file with comments | « no previous file | media/cast/test/simulator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698