| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "media/capture/video/video_capture_device.h" | 5 #include "media/capture/video/video_capture_device.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/i18n/timezone.h" | 8 #include "base/i18n/timezone.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 #include "media/base/media_switches.h" | 12 #include "media/base/media_switches.h" |
| 13 | 13 |
| 14 namespace media { | 14 namespace media { |
| 15 | 15 |
| 16 VideoCaptureDevice::Client::Buffer::Buffer() : id_(0), frame_feedback_id_(0) {} | 16 VideoCaptureDevice::Client::Buffer::~Buffer() { |
| 17 } |
| 17 | 18 |
| 18 VideoCaptureDevice::Client::Buffer::Buffer( | 19 VideoCaptureDevice::~VideoCaptureDevice() { |
| 19 int buffer_id, | 20 } |
| 20 int frame_feedback_id, | |
| 21 std::unique_ptr<HandleProvider> handle_provider, | |
| 22 std::unique_ptr<ScopedAccessPermission> access_permission) | |
| 23 : handle_provider_(std::move(handle_provider)), | |
| 24 access_permission_(std::move(access_permission)), | |
| 25 id_(buffer_id), | |
| 26 frame_feedback_id_(frame_feedback_id) {} | |
| 27 | |
| 28 VideoCaptureDevice::Client::Buffer::Buffer( | |
| 29 VideoCaptureDevice::Client::Buffer&& other) = default; | |
| 30 | |
| 31 VideoCaptureDevice::Client::Buffer::~Buffer() = default; | |
| 32 | |
| 33 VideoCaptureDevice::Client::Buffer& VideoCaptureDevice::Client::Buffer:: | |
| 34 operator=(VideoCaptureDevice::Client::Buffer&& other) = default; | |
| 35 | |
| 36 VideoCaptureDevice::~VideoCaptureDevice() {} | |
| 37 | 21 |
| 38 void VideoCaptureDevice::GetPhotoCapabilities( | 22 void VideoCaptureDevice::GetPhotoCapabilities( |
| 39 GetPhotoCapabilitiesCallback callback) {} | 23 GetPhotoCapabilitiesCallback callback) {} |
| 40 | 24 |
| 41 void VideoCaptureDevice::SetPhotoOptions(mojom::PhotoSettingsPtr settings, | 25 void VideoCaptureDevice::SetPhotoOptions(mojom::PhotoSettingsPtr settings, |
| 42 SetPhotoOptionsCallback callback) {} | 26 SetPhotoOptionsCallback callback) {} |
| 43 | 27 |
| 44 void VideoCaptureDevice::TakePhoto(TakePhotoCallback callback) {} | 28 void VideoCaptureDevice::TakePhoto(TakePhotoCallback callback) {} |
| 45 | 29 |
| 46 PowerLineFrequency VideoCaptureDevice::GetPowerLineFrequencyForLocation() | 30 PowerLineFrequency VideoCaptureDevice::GetPowerLineFrequencyForLocation() |
| (...skipping 22 matching lines...) Expand all Loading... |
| 69 switch (params.power_line_frequency) { | 53 switch (params.power_line_frequency) { |
| 70 case media::PowerLineFrequency::FREQUENCY_50HZ: // fall through | 54 case media::PowerLineFrequency::FREQUENCY_50HZ: // fall through |
| 71 case media::PowerLineFrequency::FREQUENCY_60HZ: | 55 case media::PowerLineFrequency::FREQUENCY_60HZ: |
| 72 return params.power_line_frequency; | 56 return params.power_line_frequency; |
| 73 default: | 57 default: |
| 74 return GetPowerLineFrequencyForLocation(); | 58 return GetPowerLineFrequencyForLocation(); |
| 75 } | 59 } |
| 76 } | 60 } |
| 77 | 61 |
| 78 } // namespace media | 62 } // namespace media |
| OLD | NEW |