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

Unified Diff: media/video/capture/fake_video_capture_device.h

Issue 1153713006: FakeVideoCaptureDevice: Regulate framerate without drifting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mcasas@ comments #2 Created 5 years, 6 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 | media/video/capture/fake_video_capture_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/capture/fake_video_capture_device.h
diff --git a/media/video/capture/fake_video_capture_device.h b/media/video/capture/fake_video_capture_device.h
index f4a19f9edb9c2c6611aa8d66cc15094f905ead7f..3cf45a85581d9073dd7ef111dcad5f8028f51643 100644
--- a/media/video/capture/fake_video_capture_device.h
+++ b/media/video/capture/fake_video_capture_device.h
@@ -15,6 +15,7 @@
#include "base/memory/weak_ptr.h"
#include "base/threading/thread.h"
#include "base/threading/thread_checker.h"
+#include "base/time/time.h"
#include "media/video/capture/video_capture_device.h"
namespace media {
@@ -41,9 +42,12 @@ class MEDIA_EXPORT FakeVideoCaptureDevice : public VideoCaptureDevice {
private:
static const int kFakeCapturePeriodMs = 50;
- void CaptureUsingOwnBuffers();
- void CaptureUsingClientBuffers(VideoPixelFormat pixel_format);
- void BeepAndScheduleNextCapture(const base::Closure& next_capture);
+ void CaptureUsingOwnBuffers(base::TimeTicks expected_execution_time);
+ void CaptureUsingClientBuffers(VideoPixelFormat pixel_format,
+ base::TimeTicks expected_execution_time);
+ void BeepAndScheduleNextCapture(
+ base::TimeTicks expected_execution_time,
+ const base::Callback<void(base::TimeTicks)>& next_capture);
// |thread_checker_| is used to check that all methods are called in the
// correct thread that owns the object.
« no previous file with comments | « no previous file | media/video/capture/fake_video_capture_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698