OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/trees/layer_tree_host_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <cmath> | 10 #include <cmath> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/containers/hash_tables.h" | |
16 #include "base/containers/scoped_ptr_hash_map.h" | |
17 #include "base/location.h" | 15 #include "base/location.h" |
18 #include "base/thread_task_runner_handle.h" | 16 #include "base/thread_task_runner_handle.h" |
19 #include "cc/animation/animation_host.h" | 17 #include "cc/animation/animation_host.h" |
20 #include "cc/animation/animation_id_provider.h" | 18 #include "cc/animation/animation_id_provider.h" |
21 #include "cc/animation/scrollbar_animation_controller_thinning.h" | 19 #include "cc/animation/scrollbar_animation_controller_thinning.h" |
22 #include "cc/animation/transform_operations.h" | 20 #include "cc/animation/transform_operations.h" |
23 #include "cc/base/math_util.h" | 21 #include "cc/base/math_util.h" |
24 #include "cc/input/page_scale_animation.h" | 22 #include "cc/input/page_scale_animation.h" |
25 #include "cc/input/top_controls_manager.h" | 23 #include "cc/input/top_controls_manager.h" |
26 #include "cc/layers/append_quads_data.h" | 24 #include "cc/layers/append_quads_data.h" |
(...skipping 9448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9475 // There should not be any jitter measured till we hit the fixed point hits | 9473 // There should not be any jitter measured till we hit the fixed point hits |
9476 // threshold. | 9474 // threshold. |
9477 float expected_jitter = | 9475 float expected_jitter = |
9478 (i == pending_tree->kFixedPointHitsThreshold) ? 500 : 0; | 9476 (i == pending_tree->kFixedPointHitsThreshold) ? 500 : 0; |
9479 EXPECT_EQ(jitter, expected_jitter); | 9477 EXPECT_EQ(jitter, expected_jitter); |
9480 } | 9478 } |
9481 } | 9479 } |
9482 | 9480 |
9483 } // namespace | 9481 } // namespace |
9484 } // namespace cc | 9482 } // namespace cc |
OLD | NEW |