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

Unified Diff: content/browser/renderer_host/media/web_contents_video_capture_device.h

Issue 13956003: Tab capture: do 200 rendundant captures of static content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self-review fixes. Created 7 years, 8 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
« no previous file with comments | « no previous file | content/browser/renderer_host/media/web_contents_video_capture_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/web_contents_video_capture_device.h
diff --git a/content/browser/renderer_host/media/web_contents_video_capture_device.h b/content/browser/renderer_host/media/web_contents_video_capture_device.h
index 05d8e4c0a91c3c7b4cc99fdb82c56f83ea05a670..f7f2014f589cf3a81eccdea4aa22158324c25188 100644
--- a/content/browser/renderer_host/media/web_contents_video_capture_device.h
+++ b/content/browser/renderer_host/media/web_contents_video_capture_device.h
@@ -74,7 +74,8 @@ class CONTENT_EXPORT WebContentsVideoCaptureDevice
class CONTENT_EXPORT SmoothEventSampler {
public:
explicit SmoothEventSampler(base::TimeDelta capture_period,
- bool events_are_reliable);
+ bool events_are_reliable,
+ int redundant_capture_goal);
// Add a new event to the event history, and return whether it ought to be
// sampled per to the sampling frequency limit. Even if this method returns
@@ -95,8 +96,10 @@ class CONTENT_EXPORT SmoothEventSampler {
private:
const bool events_are_reliable_;
const base::TimeDelta capture_period_;
+ const int redundant_capture_goal_;
base::Time current_event_;
base::Time last_sample_;
+ int last_sample_count_;
DISALLOW_COPY_AND_ASSIGN(SmoothEventSampler);
};
« no previous file with comments | « no previous file | content/browser/renderer_host/media/web_contents_video_capture_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698