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

Unified Diff: media/capture/content/video_capture_oracle.h

Issue 2518143004: [Mojo Video Capture] Replace RESOURCE_UTILIZATION with interface ReceiverLoadObserver (Closed)
Patch Set: Fix for android-only code Created 4 years 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/capture/content/video_capture_oracle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/capture/content/video_capture_oracle.h
diff --git a/media/capture/content/video_capture_oracle.h b/media/capture/content/video_capture_oracle.h
index 82898f905a56d89a3f434561656e1a55010e707b..8d545e29a61c3ea16f0e462dc35b68c42f41d723 100644
--- a/media/capture/content/video_capture_oracle.h
+++ b/media/capture/content/video_capture_oracle.h
@@ -50,13 +50,15 @@ class CAPTURE_EXPORT VideoCaptureOracle {
const gfx::Rect& damage_rect,
base::TimeTicks event_time);
+ // Returns the |frame_number| to be used with CompleteCapture().
+ int next_frame_number() const;
+
// Record and update internal state based on whether the frame capture will be
// started. |pool_utilization| is a value in the range 0.0 to 1.0 to indicate
// the current buffer pool utilization relative to a sustainable maximum (not
// the absolute maximum). This method should only be called if the last call
- // to ObserveEventAndDecideCapture() returned true. The first method returns
- // the |frame_number| to be used with CompleteCapture().
- int RecordCapture(double pool_utilization);
+ // to ObserveEventAndDecideCapture() returned true.
+ void RecordCapture(double pool_utilization);
void RecordWillNotCapture(double pool_utilization);
// Notify of the completion of a capture, and whether it was successful.
« no previous file with comments | « media/capture/content/thread_safe_capture_oracle.cc ('k') | media/capture/content/video_capture_oracle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698