| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/fake_video_capture_device.h" | 5 #include "media/capture/video/fake_video_capture_device.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 photo_capabilities->contrast = media::mojom::Range::New(); | 465 photo_capabilities->contrast = media::mojom::Range::New(); |
| 466 photo_capabilities->saturation = media::mojom::Range::New(); | 466 photo_capabilities->saturation = media::mojom::Range::New(); |
| 467 photo_capabilities->sharpness = media::mojom::Range::New(); | 467 photo_capabilities->sharpness = media::mojom::Range::New(); |
| 468 | 468 |
| 469 photo_capabilities->zoom = mojom::Range::New(); | 469 photo_capabilities->zoom = mojom::Range::New(); |
| 470 photo_capabilities->zoom->current = fake_device_state_->zoom; | 470 photo_capabilities->zoom->current = fake_device_state_->zoom; |
| 471 photo_capabilities->zoom->max = kMaxZoom; | 471 photo_capabilities->zoom->max = kMaxZoom; |
| 472 photo_capabilities->zoom->min = kMinZoom; | 472 photo_capabilities->zoom->min = kMinZoom; |
| 473 photo_capabilities->zoom->step = kZoomStep; | 473 photo_capabilities->zoom->step = kZoomStep; |
| 474 | 474 |
| 475 photo_capabilities->supports_torch = false; |
| 475 photo_capabilities->torch = false; | 476 photo_capabilities->torch = false; |
| 476 | 477 |
| 477 photo_capabilities->red_eye_reduction = mojom::RedEyeReduction::NEVER; | 478 photo_capabilities->red_eye_reduction = mojom::RedEyeReduction::NEVER; |
| 478 photo_capabilities->height = mojom::Range::New(); | 479 photo_capabilities->height = mojom::Range::New(); |
| 479 photo_capabilities->height->current = | 480 photo_capabilities->height->current = |
| 480 fake_device_state_->format.frame_size.height(); | 481 fake_device_state_->format.frame_size.height(); |
| 481 photo_capabilities->height->max = 1080.0; | 482 photo_capabilities->height->max = 1080.0; |
| 482 photo_capabilities->height->min = 96.0; | 483 photo_capabilities->height->min = 96.0; |
| 483 photo_capabilities->height->step = 1.0; | 484 photo_capabilities->height->step = 1.0; |
| 484 photo_capabilities->width = mojom::Range::New(); | 485 photo_capabilities->width = mojom::Range::New(); |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 int session_id) { | 650 int session_id) { |
| 650 DCHECK(thread_checker_.CalledOnValidThread()); | 651 DCHECK(thread_checker_.CalledOnValidThread()); |
| 651 if (session_id != current_session_id_) | 652 if (session_id != current_session_id_) |
| 652 return; | 653 return; |
| 653 | 654 |
| 654 frame_deliverer_->PaintAndDeliverNextFrame(elapsed_time_); | 655 frame_deliverer_->PaintAndDeliverNextFrame(elapsed_time_); |
| 655 BeepAndScheduleNextCapture(expected_execution_time); | 656 BeepAndScheduleNextCapture(expected_execution_time); |
| 656 } | 657 } |
| 657 | 658 |
| 658 } // namespace media | 659 } // namespace media |
| OLD | NEW |