Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/location.h" | 5 #include "base/location.h" |
| 6 #include "base/thread_task_runner_handle.h" | 6 #include "base/thread_task_runner_handle.h" |
| 7 #include "base/time/time.h" | 7 #include "base/time/time.h" |
| 8 #include "cc/debug/lap_timer.h" | 8 #include "cc/debug/lap_timer.h" |
| 9 #include "cc/raster/raster_buffer.h" | 9 #include "cc/raster/raster_buffer.h" |
| 10 #include "cc/test/begin_frame_args_test.h" | 10 #include "cc/test/begin_frame_args_test.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 77 return nullptr; | 77 return nullptr; |
| 78 } | 78 } |
| 79 void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) override {} | 79 void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) override {} |
| 80 | 80 |
| 81 private: | 81 private: |
| 82 RasterTask::Vector completed_tasks_; | 82 RasterTask::Vector completed_tasks_; |
| 83 }; | 83 }; |
| 84 base::LazyInstance<FakeTileTaskRunnerImpl> g_fake_tile_task_runner = | 84 base::LazyInstance<FakeTileTaskRunnerImpl> g_fake_tile_task_runner = |
| 85 LAZY_INSTANCE_INITIALIZER; | 85 LAZY_INSTANCE_INITIALIZER; |
| 86 | 86 |
| 87 class LayerTreeSettingsWithLargeInterestArea : public LayerTreeSettings { | |
|
vmpstr
2015/06/23 16:39:47
This was a part of making impl side painting defau
sohanjg
2015/06/23 17:08:00
There was error in building cc_perftest bcz of thi
| |
| 88 public: | |
| 89 LayerTreeSettingsWithLargeInterestArea() { | |
| 90 tiling_interest_area_viewport_multiplier = 10000; | |
| 91 } | |
| 92 }; | |
| 93 | |
| 94 class TileManagerPerfTest : public testing::Test { | 87 class TileManagerPerfTest : public testing::Test { |
| 95 public: | 88 public: |
| 96 TileManagerPerfTest() | 89 TileManagerPerfTest() |
| 97 : memory_limit_policy_(ALLOW_ANYTHING), | 90 : memory_limit_policy_(ALLOW_ANYTHING), |
| 98 max_tiles_(10000), | 91 max_tiles_(10000), |
| 99 id_(7), | 92 id_(7), |
| 100 proxy_(base::ThreadTaskRunnerHandle::Get()), | 93 proxy_(base::ThreadTaskRunnerHandle::Get()), |
| 101 host_impl_(LayerTreeSettingsWithLargeInterestArea(), | 94 host_impl_(LayerTreeSettings(), |
| 102 &proxy_, | 95 &proxy_, |
| 103 &shared_bitmap_manager_, | 96 &shared_bitmap_manager_, |
| 104 &task_graph_runner_), | 97 &task_graph_runner_), |
| 105 timer_(kWarmupRuns, | 98 timer_(kWarmupRuns, |
| 106 base::TimeDelta::FromMilliseconds(kTimeLimitMillis), | 99 base::TimeDelta::FromMilliseconds(kTimeLimitMillis), |
| 107 kTimeCheckInterval) {} | 100 kTimeCheckInterval) {} |
| 108 | 101 |
| 109 void SetTreePriority(TreePriority tree_priority) { | 102 void SetTreePriority(TreePriority tree_priority) { |
| 110 GlobalStateThatImpactsTilePriority state; | 103 GlobalStateThatImpactsTilePriority state; |
| 111 gfx::Size tile_size(256, 256); | 104 gfx::Size tile_size(256, 256); |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 481 RunEvictionQueueConstructAndIterateTest("10_64", 10, 64); | 474 RunEvictionQueueConstructAndIterateTest("10_64", 10, 64); |
| 482 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128); | 475 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128); |
| 483 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16); | 476 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16); |
| 484 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32); | 477 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32); |
| 485 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64); | 478 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64); |
| 486 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128); | 479 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128); |
| 487 } | 480 } |
| 488 | 481 |
| 489 } // namespace | 482 } // namespace |
| 490 } // namespace cc | 483 } // namespace cc |
| OLD | NEW |