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

Unified Diff: chrome/renderer/media/cast_rtp_stream.cc

Issue 2866943002: Give performance_browser_tests lots of love and attention. (Closed)
Patch Set: rebase 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
Index: chrome/renderer/media/cast_rtp_stream.cc
diff --git a/chrome/renderer/media/cast_rtp_stream.cc b/chrome/renderer/media/cast_rtp_stream.cc
index 6e33f9e73f33fcbab4c463a2e95c40765ce42e73..b176d9794d5174784e9e2307fb7e84711ef57421 100644
--- a/chrome/renderer/media/cast_rtp_stream.cc
+++ b/chrome/renderer/media/cast_rtp_stream.cc
@@ -234,11 +234,10 @@ class CastVideoSink : public base::SupportsWeakPtr<CastVideoSink>,
frame = media::WrapAsI420VideoFrame(video_frame);
// Used by chrome/browser/extension/api/cast_streaming/performance_test.cc
- TRACE_EVENT_INSTANT2(
- "cast_perf_test", "MediaStreamVideoSink::OnVideoFrame",
- TRACE_EVENT_SCOPE_THREAD,
- "timestamp", timestamp.ToInternalValue(),
- "time_delta", frame->timestamp().ToInternalValue());
+ TRACE_EVENT_INSTANT2("cast_perf_test", "ConsumeVideoFrame",
+ TRACE_EVENT_SCOPE_THREAD, "timestamp",
+ (timestamp - base::TimeTicks()).InMicroseconds(),
+ "time_delta", frame->timestamp().InMicroseconds());
frame_input_->InsertRawVideoFrame(frame, timestamp);
}

Powered by Google App Engine
This is Rietveld 408576698