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

Unified Diff: media/capture/video/linux/video_capture_device_linux.cc

Issue 2362333002: Reland: Image Capture Linux/CrOs: wire some capabilities set/get (Closed)
Patch Set: VideoCaptureCamera2: do not return error if stopCapture() finds the CameraCaptureSession closed Created 4 years, 3 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/linux/video_capture_device_linux.cc
diff --git a/media/capture/video/linux/video_capture_device_linux.cc b/media/capture/video/linux/video_capture_device_linux.cc
index cb12175ab14bb94a57f042f67cf81d265b02af99..a1b2855055e853b5e1d9210f5da139f8740ef7ec 100644
--- a/media/capture/video/linux/video_capture_device_linux.cc
+++ b/media/capture/video/linux/video_capture_device_linux.cc
@@ -91,6 +91,26 @@ void VideoCaptureDeviceLinux::TakePhoto(TakePhotoCallback callback) {
base::Passed(&callback)));
}
+void VideoCaptureDeviceLinux::GetPhotoCapabilities(
+ GetPhotoCapabilitiesCallback callback) {
+ if (!v4l2_thread_.IsRunning())
+ return; // Wrong state.
+ v4l2_thread_.task_runner()->PostTask(
+ FROM_HERE, base::Bind(&V4L2CaptureDelegate::GetPhotoCapabilities,
+ capture_impl_, base::Passed(&callback)));
+}
+
+void VideoCaptureDeviceLinux::SetPhotoOptions(
+ mojom::PhotoSettingsPtr settings,
+ SetPhotoOptionsCallback callback) {
+ if (!v4l2_thread_.IsRunning())
+ return; // Wrong state.
+ v4l2_thread_.task_runner()->PostTask(
+ FROM_HERE,
+ base::Bind(&V4L2CaptureDelegate::SetPhotoOptions, capture_impl_,
+ base::Passed(&settings), base::Passed(&callback)));
+}
+
void VideoCaptureDeviceLinux::SetRotation(int rotation) {
if (v4l2_thread_.IsRunning()) {
v4l2_thread_.task_runner()->PostTask(
« no previous file with comments | « media/capture/video/linux/video_capture_device_linux.h ('k') | media/capture/video/video_capture_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698