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/lazy_instance.h" | 5 #include "base/lazy_instance.h" |
6 #include "base/location.h" | 6 #include "base/location.h" |
7 #include "base/thread_task_runner_handle.h" | 7 #include "base/thread_task_runner_handle.h" |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "cc/debug/lap_timer.h" | 9 #include "cc/debug/lap_timer.h" |
10 #include "cc/raster/raster_buffer.h" | 10 #include "cc/raster/raster_buffer.h" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 state.soft_memory_limit_in_bytes, state.num_resources_limit); | 117 state.soft_memory_limit_in_bytes, state.num_resources_limit); |
118 host_impl_.tile_manager()->SetGlobalStateForTesting(state); | 118 host_impl_.tile_manager()->SetGlobalStateForTesting(state); |
119 } | 119 } |
120 | 120 |
121 void SetUp() override { | 121 void SetUp() override { |
122 InitializeRenderer(); | 122 InitializeRenderer(); |
123 SetTreePriority(SAME_PRIORITY_FOR_BOTH_TREES); | 123 SetTreePriority(SAME_PRIORITY_FOR_BOTH_TREES); |
124 } | 124 } |
125 | 125 |
126 virtual void InitializeRenderer() { | 126 virtual void InitializeRenderer() { |
| 127 host_impl_.SetVisible(true); |
127 host_impl_.InitializeRenderer(output_surface_.get()); | 128 host_impl_.InitializeRenderer(output_surface_.get()); |
128 tile_manager()->SetTileTaskRunnerForTesting( | 129 tile_manager()->SetTileTaskRunnerForTesting( |
129 g_fake_tile_task_runner.Pointer()); | 130 g_fake_tile_task_runner.Pointer()); |
130 } | 131 } |
131 | 132 |
132 void SetupDefaultTrees(const gfx::Size& layer_bounds) { | 133 void SetupDefaultTrees(const gfx::Size& layer_bounds) { |
133 scoped_refptr<FakeDisplayListRasterSource> pending_raster_source = | 134 scoped_refptr<FakeDisplayListRasterSource> pending_raster_source = |
134 FakeDisplayListRasterSource::CreateFilled(layer_bounds); | 135 FakeDisplayListRasterSource::CreateFilled(layer_bounds); |
135 scoped_refptr<FakeDisplayListRasterSource> active_raster_source = | 136 scoped_refptr<FakeDisplayListRasterSource> active_raster_source = |
136 FakeDisplayListRasterSource::CreateFilled(layer_bounds); | 137 FakeDisplayListRasterSource::CreateFilled(layer_bounds); |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 RunEvictionQueueConstructAndIterateTest("10_64", 10, 64); | 476 RunEvictionQueueConstructAndIterateTest("10_64", 10, 64); |
476 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128); | 477 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128); |
477 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16); | 478 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16); |
478 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32); | 479 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32); |
479 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64); | 480 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64); |
480 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128); | 481 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128); |
481 } | 482 } |
482 | 483 |
483 } // namespace | 484 } // namespace |
484 } // namespace cc | 485 } // namespace cc |
OLD | NEW |