| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/video_capture_oracle.h" | 5 #include "device/capture/content/video_capture_oracle.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
| 10 #include "base/numerics/safe_conversions.h" | 10 #include "base/numerics/safe_conversions.h" |
| 11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 12 | 12 |
| 13 namespace media { | 13 namespace media { |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 // Content is not animating, so permit an immediate increase in the capture | 548 // Content is not animating, so permit an immediate increase in the capture |
| 549 // area. This allows the system to quickly improve the quality of | 549 // area. This allows the system to quickly improve the quality of |
| 550 // non-animating content (frame drops are not much of a concern). | 550 // non-animating content (frame drops are not much of a concern). |
| 551 VLOG(2) << "Proposing a " | 551 VLOG(2) << "Proposing a " |
| 552 << (100.0 * (increased_area - current_area) / current_area) | 552 << (100.0 * (increased_area - current_area) / current_area) |
| 553 << "% increase in capture area for non-animating content. :-)"; | 553 << "% increase in capture area for non-animating content. :-)"; |
| 554 return increased_area; | 554 return increased_area; |
| 555 } | 555 } |
| 556 | 556 |
| 557 } // namespace media | 557 } // namespace media |
| OLD | NEW |