| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/content/capture_resolution_chooser.h" | 5 #include "device/capture/content/capture_resolution_chooser.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 12 |
| 13 using tracked_objects::Location; | 13 using tracked_objects::Location; |
| 14 | 14 |
| 15 namespace media { | 15 namespace media { |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 // For a chooser configured with the "any within limit" policy, the smallest | 344 // For a chooser configured with the "any within limit" policy, the smallest |
| 345 // possible computed size is smallest non-empty snapped size (which is 90 | 345 // possible computed size is smallest non-empty snapped size (which is 90 |
| 346 // lines of resolution) with the same aspect ratio as the maximum size. | 346 // lines of resolution) with the same aspect ratio as the maximum size. |
| 347 const gfx::Size smallest_size(90 * kMaxFrameWidth / kMaxFrameHeight, 90); | 347 const gfx::Size smallest_size(90 * kMaxFrameWidth / kMaxFrameHeight, 90); |
| 348 | 348 |
| 349 TestSnappedFrameSizes(&chooser, smallest_size); | 349 TestSnappedFrameSizes(&chooser, smallest_size); |
| 350 TestTargetedFrameAreas(&chooser, smallest_size); | 350 TestTargetedFrameAreas(&chooser, smallest_size); |
| 351 } | 351 } |
| 352 | 352 |
| 353 } // namespace media | 353 } // namespace media |
| OLD | NEW |