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

Unified Diff: media/cast/receiver/cast_receiver_impl.cc

Issue 2866943002: Give performance_browser_tests lots of love and attention. (Closed)
Patch Set: fix compile error Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/capture/content/thread_safe_capture_oracle.cc ('k') | media/cast/sender/video_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/receiver/cast_receiver_impl.cc
diff --git a/media/cast/receiver/cast_receiver_impl.cc b/media/cast/receiver/cast_receiver_impl.cc
index 1a4ebd83e1f13ddffd6a7faaa72d742db3e6e1cf..6c563e056c0f19cd463470bc4460e8efc997ec24 100644
--- a/media/cast/receiver/cast_receiver_impl.cc
+++ b/media/cast/receiver/cast_receiver_impl.cc
@@ -149,11 +149,9 @@ void CastReceiverImpl::DecodeEncodedVideoFrame(
}
// Used by chrome/browser/extension/api/cast_streaming/performance_test.cc
- TRACE_EVENT_INSTANT2(
- "cast_perf_test", "PullEncodedVideoFrame",
- TRACE_EVENT_SCOPE_THREAD,
- "rtp_timestamp", encoded_frame->rtp_timestamp.lower_32_bits(),
- "render_time", encoded_frame->reference_time.ToInternalValue());
+ TRACE_EVENT_INSTANT1("cast_perf_test", "PullEncodedVideoFrame",
+ TRACE_EVENT_SCOPE_THREAD, "rtp_timestamp",
+ encoded_frame->rtp_timestamp.lower_32_bits());
if (!video_decoder_)
video_decoder_.reset(new VideoDecoder(cast_environment_, video_codec_));
@@ -217,10 +215,10 @@ void CastReceiverImpl::EmitDecodedVideoFrame(
cast_environment->logger()->DispatchFrameEvent(std::move(playout_event));
// Used by chrome/browser/extension/api/cast_streaming/performance_test.cc
- TRACE_EVENT_INSTANT1(
- "cast_perf_test", "FrameDecoded",
- TRACE_EVENT_SCOPE_THREAD,
- "rtp_timestamp", rtp_timestamp.lower_32_bits());
+ TRACE_EVENT_INSTANT2("cast_perf_test", "VideoFrameDecoded",
+ TRACE_EVENT_SCOPE_THREAD, "rtp_timestamp",
+ rtp_timestamp.lower_32_bits(), "playout_time",
+ (playout_time - base::TimeTicks()).InMicroseconds());
}
callback.Run(video_frame, playout_time, is_continuous);
« no previous file with comments | « media/capture/content/thread_safe_capture_oracle.cc ('k') | media/cast/sender/video_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698