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

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

Issue 1484403002: cast: Support for low-latency interactive mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 461200d41d58ee65f372378637a4f67ea3c15b51..fbed1e927407610e3677c8dba36f3864e9326b2a 100644
--- a/media/capture/content/video_capture_oracle.cc
+++ b/media/capture/content/video_capture_oracle.cc
@@ -303,6 +303,12 @@ bool VideoCaptureOracle::CompleteCapture(int frame_number,
return true;
}
+bool VideoCaptureOracle::IsAnimationActive() const {
+ base::TimeDelta duration =
+ base::TimeTicks::Now() - last_time_animation_was_detected_;
+ return duration.InMicroseconds() < kDebouncingPeriodForAnimatedContentMicros;
miu 2015/12/01 21:15:27 I don't think this does what you intended. The kD
Irfan 2015/12/02 22:32:44 As discussed, this has the same intention. Will be
+}
+
void VideoCaptureOracle::RecordConsumerFeedback(int frame_number,
double resource_utilization) {
if (!auto_throttling_enabled_)

Powered by Google App Engine
This is Rietveld 408576698