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

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

Issue 1157193002: RESOURCE_UTILIZATION in VideoFrameMetadata, a consumer feedback signal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@video_frame_done_callback
Patch Set: s/stress_level/resource_utilization/ig, and REBASE 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.h
diff --git a/content/browser/media/capture/content_video_capture_device_core.h b/content/browser/media/capture/content_video_capture_device_core.h
index 50600cf42998aa12225be2c7df78e2a907e03193..5a928a50133b77ccfd16e03aefa4ccf9f79a22e1 100644
--- a/content/browser/media/capture/content_video_capture_device_core.h
+++ b/content/browser/media/capture/content_video_capture_device_core.h
@@ -85,6 +85,11 @@ class ThreadSafeCaptureOracle
base::TimeTicks timestamp,
bool success);
+ // Callback invoked once all consumers have finished with a delivered video
+ // frame. Consumer feedback signals are scanned from the frame's |metadata|.
+ void DidConsumeFrame(int frame_number,
+ const media::VideoFrameMetadata* metadata);
+
// Protects everything below it.
mutable base::Lock lock_;

Powered by Google App Engine
This is Rietveld 408576698