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 <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 class LayerTreeHostPerfTest : public LayerTreeTest { | 35 class LayerTreeHostPerfTest : public LayerTreeTest { |
36 public: | 36 public: |
37 LayerTreeHostPerfTest() | 37 LayerTreeHostPerfTest() |
38 : draw_timer_(kWarmupRuns, | 38 : draw_timer_(kWarmupRuns, |
39 base::TimeDelta::FromMilliseconds(kTimeLimitMillis), | 39 base::TimeDelta::FromMilliseconds(kTimeLimitMillis), |
40 kTimeCheckInterval), | 40 kTimeCheckInterval), |
41 commit_timer_(0, base::TimeDelta(), 1), | 41 commit_timer_(0, base::TimeDelta(), 1), |
42 full_damage_each_frame_(false), | 42 full_damage_each_frame_(false), |
43 begin_frame_driven_drawing_(false), | 43 begin_frame_driven_drawing_(false), |
44 measure_commit_cost_(false) { | 44 measure_commit_cost_(false) { |
45 fake_content_layer_client_.set_paint_all_opaque(true); | |
46 } | 45 } |
47 | 46 |
48 virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE { | 47 virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE { |
49 settings->throttle_frame_production = false; | 48 settings->throttle_frame_production = false; |
50 } | 49 } |
51 | 50 |
52 virtual void BeginTest() OVERRIDE { | 51 virtual void BeginTest() OVERRIDE { |
53 BuildTree(); | 52 BuildTree(); |
54 PostSetNeedsCommitToMainThread(); | 53 PostSetNeedsCommitToMainThread(); |
55 } | 54 } |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 TEST_F(LayerTreeHostPerfTestJsonReader, HeavyPageThreadedImplSide) { | 328 TEST_F(LayerTreeHostPerfTestJsonReader, HeavyPageThreadedImplSide) { |
330 begin_frame_driven_drawing_ = true; | 329 begin_frame_driven_drawing_ = true; |
331 measure_commit_cost_ = true; | 330 measure_commit_cost_ = true; |
332 SetTestName("heavy_page"); | 331 SetTestName("heavy_page"); |
333 ReadTestFile("heavy_layer_tree"); | 332 ReadTestFile("heavy_layer_tree"); |
334 RunTestWithImplSidePainting(); | 333 RunTestWithImplSidePainting(); |
335 } | 334 } |
336 | 335 |
337 } // namespace | 336 } // namespace |
338 } // namespace cc | 337 } // namespace cc |
OLD | NEW |