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/time/time.h" | 5 #include "base/time/time.h" |
6 #include "cc/debug/lap_timer.h" | 6 #include "cc/debug/lap_timer.h" |
7 #include "cc/resources/raster_buffer.h" | 7 #include "cc/resources/raster_buffer.h" |
8 #include "cc/resources/tile.h" | 8 #include "cc/resources/tile.h" |
9 #include "cc/resources/tile_priority.h" | 9 #include "cc/resources/tile_priority.h" |
10 #include "cc/test/begin_frame_args_test.h" | 10 #include "cc/test/begin_frame_args_test.h" |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 scoped_ptr<FakePictureLayerImpl> layer = | 348 scoped_ptr<FakePictureLayerImpl> layer = |
349 FakePictureLayerImpl::CreateWithRasterSource( | 349 FakePictureLayerImpl::CreateWithRasterSource( |
350 host_impl_.pending_tree(), next_id, pile); | 350 host_impl_.pending_tree(), next_id, pile); |
351 layer->SetBounds(layer_bounds); | 351 layer->SetBounds(layer_bounds); |
352 layer->SetDrawsContent(true); | 352 layer->SetDrawsContent(true); |
353 layers.push_back(layer.get()); | 353 layers.push_back(layer.get()); |
354 pending_root_layer_->AddChild(layer.Pass()); | 354 pending_root_layer_->AddChild(layer.Pass()); |
355 ++next_id; | 355 ++next_id; |
356 } | 356 } |
357 | 357 |
358 bool update_lcd_text = false; | 358 host_impl_.pending_tree()->UpdateDrawProperties(); |
359 host_impl_.pending_tree()->UpdateDrawProperties(update_lcd_text); | |
360 for (FakePictureLayerImpl* layer : layers) | 359 for (FakePictureLayerImpl* layer : layers) |
361 layer->CreateAllTiles(); | 360 layer->CreateAllTiles(); |
362 | 361 |
363 return layers; | 362 return layers; |
364 } | 363 } |
365 | 364 |
366 GlobalStateThatImpactsTilePriority GlobalStateForTest() { | 365 GlobalStateThatImpactsTilePriority GlobalStateForTest() { |
367 GlobalStateThatImpactsTilePriority state; | 366 GlobalStateThatImpactsTilePriority state; |
368 gfx::Size tile_size = settings_.default_tile_size; | 367 gfx::Size tile_size = settings_.default_tile_size; |
369 state.soft_memory_limit_in_bytes = | 368 state.soft_memory_limit_in_bytes = |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 RunEvictionQueueConstructAndIterateTest("10_64", 10, 64); | 470 RunEvictionQueueConstructAndIterateTest("10_64", 10, 64); |
472 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128); | 471 RunEvictionQueueConstructAndIterateTest("10_128", 10, 128); |
473 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16); | 472 RunEvictionQueueConstructAndIterateTest("50_16", 50, 16); |
474 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32); | 473 RunEvictionQueueConstructAndIterateTest("50_32", 50, 32); |
475 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64); | 474 RunEvictionQueueConstructAndIterateTest("50_64", 50, 64); |
476 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128); | 475 RunEvictionQueueConstructAndIterateTest("50_128", 50, 128); |
477 } | 476 } |
478 | 477 |
479 } // namespace | 478 } // namespace |
480 } // namespace cc | 479 } // namespace cc |
OLD | NEW |