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

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

Issue 2692883004: Allow FakeVideoCaptureDeviceFactory to specify number of supported formats per device. (Closed)
Patch Set: update comment Created 3 years, 10 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
Index: media/capture/video/fake_video_capture_device_factory.h
diff --git a/media/capture/video/fake_video_capture_device_factory.h b/media/capture/video/fake_video_capture_device_factory.h
index ef510573d645b0c9455e9e1a139b9ee482324bc7..5061a4bec4f69815c2ec4c9f3dde6ba76e14b6a6 100644
--- a/media/capture/video/fake_video_capture_device_factory.h
+++ b/media/capture/video/fake_video_capture_device_factory.h
@@ -36,11 +36,16 @@ class CAPTURE_EXPORT FakeVideoCaptureDeviceFactory
DCHECK(thread_checker_.CalledOnValidThread());
return number_of_devices_;
}
+ int number_of_formats_per_device() {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ return number_of_formats_per_device_;
+ }
private:
void ParseCommandLine();
int number_of_devices_;
+ int number_of_formats_per_device_;
FakeVideoCaptureDevice::BufferOwnership fake_vcd_ownership_;
float frame_rate_;
bool command_line_parsed_ = false;

Powered by Google App Engine
This is Rietveld 408576698