Chromium Code Reviews| 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/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 39 kTimeCheckInterval), | 39 kTimeCheckInterval), |
| 40 commit_timer_(0, base::TimeDelta(), 1), | 40 commit_timer_(0, base::TimeDelta(), 1), |
| 41 full_damage_each_frame_(false), | 41 full_damage_each_frame_(false), |
| 42 animation_driven_drawing_(false), | 42 animation_driven_drawing_(false), |
| 43 measure_commit_cost_(false) { | 43 measure_commit_cost_(false) { |
| 44 fake_content_layer_client_.set_paint_all_opaque(true); | 44 fake_content_layer_client_.set_paint_all_opaque(true); |
| 45 } | 45 } |
| 46 | 46 |
| 47 virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE { | 47 virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE { |
| 48 settings->throttle_frame_production = false; | 48 settings->throttle_frame_production = false; |
| 49 settings->deadline_scheduling_enabled = false; | |
|
enne (OOO)
2013/11/13 20:42:16
Can you put this in a different patch?
| |
| 49 } | 50 } |
| 50 | 51 |
| 51 virtual void BeginTest() OVERRIDE { | 52 virtual void BeginTest() OVERRIDE { |
| 52 BuildTree(); | 53 BuildTree(); |
| 53 PostSetNeedsCommitToMainThread(); | 54 PostSetNeedsCommitToMainThread(); |
| 54 } | 55 } |
| 55 | 56 |
| 56 virtual void Animate(base::TimeTicks monotonic_time) OVERRIDE { | 57 virtual void Animate(base::TimeTicks monotonic_time) OVERRIDE { |
| 57 if (animation_driven_drawing_ && !TestEnded()) | 58 if (animation_driven_drawing_ && !TestEnded()) |
| 58 layer_tree_host()->SetNeedsAnimate(); | 59 layer_tree_host()->SetNeedsAnimate(); |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 362 | 363 |
| 363 TEST_F(PageScaleImplSidePaintingPerfTest, HeavyPage) { | 364 TEST_F(PageScaleImplSidePaintingPerfTest, HeavyPage) { |
| 364 measure_commit_cost_ = true; | 365 measure_commit_cost_ = true; |
| 365 SetTestName("heavy_page_page_scale"); | 366 SetTestName("heavy_page_page_scale"); |
| 366 ReadTestFile("heavy_layer_tree"); | 367 ReadTestFile("heavy_layer_tree"); |
| 367 RunTestWithImplSidePainting(); | 368 RunTestWithImplSidePainting(); |
| 368 } | 369 } |
| 369 | 370 |
| 370 } // namespace | 371 } // namespace |
| 371 } // namespace cc | 372 } // namespace cc |
| OLD | NEW |