OLD | NEW |
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 Loading... |
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 if (it->type == media::cast::FRAME_PLAYOUT) { | 241 cast_environment_->Logging()->InsertFrameEvent(it->timestamp, |
242 cast_environment_->Logging()->InsertFrameEventWithDelay( | 242 it->type, |
243 it->timestamp, | 243 it->media_type, |
244 it->type, | 244 it->rtp_timestamp, |
245 it->media_type, | 245 it->frame_id); |
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 } | |
257 } | 246 } |
258 } | 247 } |
OLD | NEW |