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/capture_resolution_chooser.h" | 5 #include "media/capture/capture_resolution_chooser.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 } | 224 } |
225 | 225 |
226 // Reverse ordering, so that sizes are from smallest to largest. | 226 // Reverse ordering, so that sizes are from smallest to largest. |
227 std::reverse(snapped_sizes_.begin(), snapped_sizes_.end()); | 227 std::reverse(snapped_sizes_.begin(), snapped_sizes_.end()); |
228 | 228 |
229 if (VLOG_IS_ON(1)) { | 229 if (VLOG_IS_ON(1)) { |
230 std::vector<std::string> stringified_sizes; | 230 std::vector<std::string> stringified_sizes; |
231 for (const gfx::Size& size : snapped_sizes_) | 231 for (const gfx::Size& size : snapped_sizes_) |
232 stringified_sizes.push_back(size.ToString()); | 232 stringified_sizes.push_back(size.ToString()); |
233 VLOG_STREAM(1) << "Recomputed snapped frame sizes: " | 233 VLOG_STREAM(1) << "Recomputed snapped frame sizes: " |
234 << JoinString(stringified_sizes, " <--> "); | 234 << base::JoinString(stringified_sizes, " <--> "); |
235 } | 235 } |
236 } | 236 } |
237 | 237 |
238 } // namespace media | 238 } // namespace media |
OLD | NEW |