OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "cc/resources/picture_pile_impl.h" | 5 #include "cc/resources/picture_pile_impl.h" |
6 | 6 |
| 7 #include "cc/debug/lap_timer.h" |
7 #include "cc/test/fake_picture_pile_impl.h" | 8 #include "cc/test/fake_picture_pile_impl.h" |
8 #include "cc/test/fake_rendering_stats_instrumentation.h" | 9 #include "cc/test/fake_rendering_stats_instrumentation.h" |
9 #include "cc/test/lap_timer.h" | |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 #include "testing/perf/perf_test.h" | 11 #include "testing/perf/perf_test.h" |
12 | 12 |
13 namespace cc { | 13 namespace cc { |
14 namespace { | 14 namespace { |
15 | 15 |
16 const int kTimeLimitMillis = 2000; | 16 const int kTimeLimitMillis = 2000; |
17 const int kWarmupRuns = 5; | 17 const int kWarmupRuns = 5; |
18 const int kTimeCheckInterval = 10; | 18 const int kTimeCheckInterval = 10; |
19 | 19 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 } | 80 } |
81 | 81 |
82 TEST_F(PicturePileImplPerfTest, Raster) { | 82 TEST_F(PicturePileImplPerfTest, Raster) { |
83 RunRasterTest("1", 1.0f); | 83 RunRasterTest("1", 1.0f); |
84 RunRasterTest("4", 0.5f); | 84 RunRasterTest("4", 0.5f); |
85 RunRasterTest("100", 0.1f); | 85 RunRasterTest("100", 0.1f); |
86 } | 86 } |
87 | 87 |
88 } // namespace | 88 } // namespace |
89 } // namespace cc | 89 } // namespace cc |
OLD | NEW |