| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "content/browser/media/capture/screen_capture_device_android.h" | 5 #include "content/browser/media/capture/screen_capture_device_android.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" |
| 7 #include "testing/gmock/include/gmock/gmock.h" | 8 #include "testing/gmock/include/gmock/gmock.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 10 |
| 10 using ::testing::_; | 11 using ::testing::_; |
| 11 | 12 |
| 12 namespace content { | 13 namespace content { |
| 13 namespace { | 14 namespace { |
| 14 | 15 |
| 15 const int kFrameRate = 30; | 16 const int kFrameRate = 30; |
| 16 | 17 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 media::VideoCaptureParams capture_params; | 93 media::VideoCaptureParams capture_params; |
| 93 capture_params.requested_format.frame_size.SetSize(640, 480); | 94 capture_params.requested_format.frame_size.SetSize(640, 480); |
| 94 capture_params.requested_format.frame_rate = kFrameRate; | 95 capture_params.requested_format.frame_rate = kFrameRate; |
| 95 capture_params.requested_format.pixel_format = media::PIXEL_FORMAT_I420; | 96 capture_params.requested_format.pixel_format = media::PIXEL_FORMAT_I420; |
| 96 capture_device->AllocateAndStart(capture_params, std::move(client)); | 97 capture_device->AllocateAndStart(capture_params, std::move(client)); |
| 97 capture_device->StopAndDeAllocate(); | 98 capture_device->StopAndDeAllocate(); |
| 98 } | 99 } |
| 99 | 100 |
| 100 } // namespace | 101 } // namespace |
| 101 } // namespace Content | 102 } // namespace Content |
| OLD | NEW |