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

Unified Diff: media/video/capture/win/video_capture_device_factory_win.h

Issue 276383002: VideoCaptureDeviceWin: Extract class-static method into a Factory (both MF/DS) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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/video/capture/win/video_capture_device_factory_win.h
diff --git a/media/video/capture/mac/video_capture_device_factory_mac.h b/media/video/capture/win/video_capture_device_factory_win.h
similarity index 56%
copy from media/video/capture/mac/video_capture_device_factory_mac.h
copy to media/video/capture/win/video_capture_device_factory_win.h
index a581925baa6b316e38dbcd39907f64622bbb3170..2e9d625e2f18c00a6d47edc6b19b55c6e74b5a27 100644
--- a/media/video/capture/mac/video_capture_device_factory_mac.h
+++ b/media/video/capture/win/video_capture_device_factory_win.h
@@ -2,21 +2,24 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Implementation of a VideoCaptureDeviceFactory class for Mac.
+// Implementation of a VideoCaptureDeviceFactory class for Windows platforms.
-#ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_FACTORY_MAC_H_
-#define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_FACTORY_MAC_H_
+#ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_FACTORY_WIN_H_
+#define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_FACTORY_WIN_H_
#include "media/video/capture/video_capture_device_factory.h"
namespace media {
-// Extension of VideoCaptureDeviceFactory to create and manipulate Mac devices.
-class MEDIA_EXPORT VideoCaptureDeviceFactoryMac :
+// Extension of VideoCaptureDeviceFactory to create and manipulate Windows
+// devices, via either DirectShow or MediaFoundation APIs.
+class MEDIA_EXPORT VideoCaptureDeviceFactoryWin :
public VideoCaptureDeviceFactory {
public:
- VideoCaptureDeviceFactoryMac();
- virtual ~VideoCaptureDeviceFactoryMac() {}
+ static bool PlatformSupportsMediaFoundation();
+
+ VideoCaptureDeviceFactoryWin() {}
+ virtual ~VideoCaptureDeviceFactoryWin() {}
virtual scoped_ptr<VideoCaptureDevice> Create(
const VideoCaptureDevice::Name& device_name) OVERRIDE;
@@ -26,9 +29,10 @@ class MEDIA_EXPORT VideoCaptureDeviceFactoryMac :
VideoCaptureFormats* supported_formats) OVERRIDE;
private:
- DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceFactoryMac);
+
+ DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceFactoryWin);
};
} // namespace media
-#endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_FACTORY_MAC_H_
+#endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_FACTORY_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698