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

Unified Diff: content/browser/media/capture/content_video_capture_device_core.cc

Issue 1143723003: Update TabCapturePerformanceTest to more accurately time captures. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: content/browser/media/capture/content_video_capture_device_core.cc
diff --git a/content/browser/media/capture/content_video_capture_device_core.cc b/content/browser/media/capture/content_video_capture_device_core.cc
index 8d44104c1c418f4a3f21d9648b682d4a34ce74d7..868ecb987b67e816795fcb5111ad4bd2baa910fa 100644
--- a/content/browser/media/capture/content_video_capture_device_core.cc
+++ b/content/browser/media/capture/content_video_capture_device_core.cc
@@ -195,6 +195,8 @@ void ThreadSafeCaptureOracle::DidCaptureFrame(
if (success) {
if (oracle_.CompleteCapture(frame_number, &timestamp)) {
+ TRACE_EVENT_INSTANT0("gpu.capture", "CaptureSucceeded");
+
// TODO(miu): Use the locked-in frame rate from AnimatedContentSampler.
frame->metadata()->SetDouble(media::VideoFrameMetadata::FRAME_RATE,
params_.requested_format.frame_rate);

Powered by Google App Engine
This is Rietveld 408576698