OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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.h" | 5 #include "cc/trees/layer_tree_host.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/string_piece.h" | 10 #include "base/string_piece.h" |
11 #include "cc/content_layer.h" | 11 #include "cc/layers/content_layer.h" |
12 #include "cc/nine_patch_layer.h" | 12 #include "cc/layers/nine_patch_layer.h" |
13 #include "cc/solid_color_layer.h" | 13 #include "cc/layers/solid_color_layer.h" |
14 #include "cc/test/fake_content_layer_client.h" | 14 #include "cc/test/fake_content_layer_client.h" |
15 #include "cc/test/layer_tree_json_parser.h" | 15 #include "cc/test/layer_tree_json_parser.h" |
16 #include "cc/test/layer_tree_test_common.h" | 16 #include "cc/test/layer_tree_test_common.h" |
17 #include "cc/test/paths.h" | 17 #include "cc/test/paths.h" |
18 | 18 |
19 namespace cc { | 19 namespace cc { |
20 namespace { | 20 namespace { |
21 | 21 |
22 static const int kTimeLimitMillis = 2000; | 22 static const int kTimeLimitMillis = 2000; |
23 static const int kWarmupRuns = 5; | 23 static const int kWarmupRuns = 5; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 scoped_refptr<Layer> scrollable_; | 124 scoped_refptr<Layer> scrollable_; |
125 }; | 125 }; |
126 | 126 |
127 TEST_F(ScrollingLayerTreePerfTest, LongScrollablePage) { | 127 TEST_F(ScrollingLayerTreePerfTest, LongScrollablePage) { |
128 readTestFile("long_scrollable_page"); | 128 readTestFile("long_scrollable_page"); |
129 runTest(false); | 129 runTest(false); |
130 } | 130 } |
131 | 131 |
132 } // namespace | 132 } // namespace |
133 } // namespace cc | 133 } // namespace cc |
OLD | NEW |