| 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/animated_content_sampler.h" | 5 #include "device/capture/content/animated_content_sampler.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <cmath> | 10 #include <cmath> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <utility> | 12 #include <utility> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 #include "ui/gfx/geometry/rect.h" | 18 #include "ui/gfx/geometry/rect.h" |
| 19 | 19 |
| 20 namespace media { | 20 namespace device { |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 base::TimeTicks InitialTestTimeTicks() { | 24 base::TimeTicks InitialTestTimeTicks() { |
| 25 return base::TimeTicks() + base::TimeDelta::FromSeconds(1); | 25 return base::TimeTicks() + base::TimeDelta::FromSeconds(1); |
| 26 } | 26 } |
| 27 | 27 |
| 28 base::TimeDelta FpsAsPeriod(int frame_rate) { | 28 base::TimeDelta FpsAsPeriod(int frame_rate) { |
| 29 return base::TimeDelta::FromSeconds(1) / frame_rate; | 29 return base::TimeDelta::FromSeconds(1) / frame_rate; |
| 30 } | 30 } |
| (...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 743 Scenario(60, 30, 20), | 743 Scenario(60, 30, 20), |
| 744 Scenario(60, 30, 23), | 744 Scenario(60, 30, 23), |
| 745 Scenario(60, 30, 26), | 745 Scenario(60, 30, 26), |
| 746 Scenario(60, 30, 27), | 746 Scenario(60, 30, 27), |
| 747 Scenario(60, 30, 28), | 747 Scenario(60, 30, 28), |
| 748 Scenario(60, 30, 29), | 748 Scenario(60, 30, 29), |
| 749 Scenario(60, 30, 31), | 749 Scenario(60, 30, 31), |
| 750 Scenario(60, 30, 32), | 750 Scenario(60, 30, 32), |
| 751 Scenario(60, 30, 33))); | 751 Scenario(60, 30, 33))); |
| 752 | 752 |
| 753 } // namespace media | 753 } // namespace device |
| OLD | NEW |