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

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

Issue 2700173002: Add MJPEG support to FakeVideoCaptureDevice (Closed)
Patch Set: 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 7fb0597fe7e99f61ae5def6f4ce500a1b4b738a3..d6f3b3042372511251489c5b829faf1da26ebdcb 100644
--- a/media/capture/video/fake_video_capture_device_factory.h
+++ b/media/capture/video/fake_video_capture_device_factory.h
@@ -24,6 +24,9 @@ class CAPTURE_EXPORT FakeVideoCaptureDeviceFactory
FakeVideoCaptureDeviceFactory();
~FakeVideoCaptureDeviceFactory() override {}
+ static media::VideoPixelFormat GetPixelFormatFromDeviceId(
mcasas 2017/02/17 18:35:47 Should be private, but better than that just keep
chfremer 2017/02/22 17:28:42 The reason I am exposing this here is because the
mcasas 2017/02/22 20:26:32 Duplication for a test is OK, otherwise we'd be co
chfremer 2017/02/23 01:14:27 Duplication for a test can be problematic. We want
mcasas 2017/02/23 21:46:18 I like this "are you sure" :-) and I'm not the on
+ const std::string& device_id);
+
std::unique_ptr<VideoCaptureDevice> CreateDevice(
const VideoCaptureDeviceDescriptor& device_descriptor) override;
void GetDeviceDescriptors(

Powered by Google App Engine
This is Rietveld 408576698