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

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

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
Index: media/capture/content/video_capture_oracle.cc
diff --git a/media/capture/content/video_capture_oracle.cc b/media/capture/content/video_capture_oracle.cc
index e8dd752e9f453062f56c411acc9fc377176098e6..b1dcb80adeef3bd307a352afd04843d9f80b5ac5 100644
--- a/media/capture/content/video_capture_oracle.cc
+++ b/media/capture/content/video_capture_oracle.cc
@@ -214,7 +214,11 @@ bool VideoCaptureOracle::ObserveEventAndDecideCapture(
return true;
}
-int VideoCaptureOracle::RecordCapture(double pool_utilization) {
+int VideoCaptureOracle::next_frame_number() const {
+ return next_frame_number_;
+}
+
+void VideoCaptureOracle::RecordCapture(double pool_utilization) {
DCHECK(std::isfinite(pool_utilization) && pool_utilization >= 0.0);
smoothing_sampler_.RecordSample();
@@ -227,7 +231,7 @@ int VideoCaptureOracle::RecordCapture(double pool_utilization) {
}
num_frames_pending_++;
- return next_frame_number_++;
+ next_frame_number_++;
}
void VideoCaptureOracle::RecordWillNotCapture(double pool_utilization) {
« no previous file with comments | « media/capture/content/video_capture_oracle.h ('k') | media/capture/content/video_capture_oracle_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698