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

Unified Diff: services/video_capture/video_capture_device_factory_impl.cc

Issue 2378943002: Let clients interact with VideoCaptureDeviceClient instead of VideoCaptureDevice (Closed)
Patch Set: Remove method AsClientBuffer() Created 4 years, 2 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: services/video_capture/video_capture_device_factory_impl.cc
diff --git a/services/video_capture/video_capture_device_factory_impl.cc b/services/video_capture/video_capture_device_factory_impl.cc
index 6e46c8a8f9e650db30fa575bee71fba98ffd9518..9ab3790d686a802365f76a2c40a76b0a5d6d6e81 100644
--- a/services/video_capture/video_capture_device_factory_impl.cc
+++ b/services/video_capture/video_capture_device_factory_impl.cc
@@ -62,7 +62,10 @@ void VideoCaptureDeviceFactoryImpl::DeviceEntry::OnConnectionErrorOrClose() {
Unbind();
}
-VideoCaptureDeviceFactoryImpl::VideoCaptureDeviceFactoryImpl() = default;
+VideoCaptureDeviceFactoryImpl::VideoCaptureDeviceFactoryImpl(
+ const media::VideoCaptureJpegDecoderFactoryCB&
+ jpeg_decoder_factory_callback)
+ : jpeg_decoder_factory_callback_(jpeg_decoder_factory_callback) {}
VideoCaptureDeviceFactoryImpl::~VideoCaptureDeviceFactoryImpl() = default;
@@ -75,9 +78,9 @@ void VideoCaptureDeviceFactoryImpl::AddMojoDevice(
void VideoCaptureDeviceFactoryImpl::AddMediaDevice(
std::unique_ptr<media::VideoCaptureDevice> device,
mojom::VideoCaptureDeviceDescriptorPtr descriptor) {
- AddMojoDevice(
- base::MakeUnique<VideoCaptureDeviceProxyImpl>(std::move(device)),
- std::move(descriptor));
+ AddMojoDevice(base::MakeUnique<VideoCaptureDeviceProxyImpl>(
+ std::move(device), jpeg_decoder_factory_callback_),
+ std::move(descriptor));
}
void VideoCaptureDeviceFactoryImpl::AddMockDevice(
« no previous file with comments | « services/video_capture/video_capture_device_factory_impl.h ('k') | services/video_capture/video_capture_device_proxy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698