| 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/thread_task_runner_handle.h" | 5 #include "base/thread_task_runner_handle.h" |
| 6 #include "cc/resources/eviction_tile_priority_queue.h" | |
| 7 #include "cc/resources/raster_tile_priority_queue.h" | |
| 8 #include "cc/resources/resource_pool.h" | 6 #include "cc/resources/resource_pool.h" |
| 9 #include "cc/resources/tile.h" | |
| 10 #include "cc/resources/tile_priority.h" | |
| 11 #include "cc/resources/tiling_set_raster_queue_all.h" | |
| 12 #include "cc/test/begin_frame_args_test.h" | 7 #include "cc/test/begin_frame_args_test.h" |
| 13 #include "cc/test/fake_impl_proxy.h" | 8 #include "cc/test/fake_impl_proxy.h" |
| 14 #include "cc/test/fake_layer_tree_host_impl.h" | 9 #include "cc/test/fake_layer_tree_host_impl.h" |
| 15 #include "cc/test/fake_output_surface.h" | 10 #include "cc/test/fake_output_surface.h" |
| 16 #include "cc/test/fake_output_surface_client.h" | 11 #include "cc/test/fake_output_surface_client.h" |
| 17 #include "cc/test/fake_picture_layer_impl.h" | 12 #include "cc/test/fake_picture_layer_impl.h" |
| 18 #include "cc/test/fake_picture_layer_tiling_client.h" | 13 #include "cc/test/fake_picture_layer_tiling_client.h" |
| 19 #include "cc/test/fake_picture_pile_impl.h" | 14 #include "cc/test/fake_picture_pile_impl.h" |
| 20 #include "cc/test/fake_tile_manager.h" | 15 #include "cc/test/fake_tile_manager.h" |
| 21 #include "cc/test/impl_side_painting_settings.h" | 16 #include "cc/test/impl_side_painting_settings.h" |
| 22 #include "cc/test/test_shared_bitmap_manager.h" | 17 #include "cc/test/test_shared_bitmap_manager.h" |
| 23 #include "cc/test/test_task_graph_runner.h" | 18 #include "cc/test/test_task_graph_runner.h" |
| 24 #include "cc/test/test_tile_priorities.h" | 19 #include "cc/test/test_tile_priorities.h" |
| 20 #include "cc/tiles/eviction_tile_priority_queue.h" |
| 21 #include "cc/tiles/raster_tile_priority_queue.h" |
| 22 #include "cc/tiles/tile.h" |
| 23 #include "cc/tiles/tile_priority.h" |
| 24 #include "cc/tiles/tiling_set_raster_queue_all.h" |
| 25 #include "cc/trees/layer_tree_impl.h" | 25 #include "cc/trees/layer_tree_impl.h" |
| 26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
| 27 | 27 |
| 28 namespace cc { | 28 namespace cc { |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| 31 class LowResTilingsSettings : public ImplSidePaintingSettings { | 31 class LowResTilingsSettings : public ImplSidePaintingSettings { |
| 32 public: | 32 public: |
| 33 LowResTilingsSettings() { | 33 LowResTilingsSettings() { |
| 34 tiling_interest_area_viewport_multiplier = 10000; | 34 tiling_interest_area_viewport_multiplier = 10000; |
| (...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1419 RGBA_8888); | 1419 RGBA_8888); |
| 1420 | 1420 |
| 1421 host_impl_.tile_manager()->CheckIfMoreTilesNeedToBePreparedForTesting(); | 1421 host_impl_.tile_manager()->CheckIfMoreTilesNeedToBePreparedForTesting(); |
| 1422 EXPECT_FALSE(host_impl_.is_likely_to_require_a_draw()); | 1422 EXPECT_FALSE(host_impl_.is_likely_to_require_a_draw()); |
| 1423 | 1423 |
| 1424 host_impl_.resource_pool()->ReleaseResource(resource.Pass()); | 1424 host_impl_.resource_pool()->ReleaseResource(resource.Pass()); |
| 1425 } | 1425 } |
| 1426 | 1426 |
| 1427 } // namespace | 1427 } // namespace |
| 1428 } // namespace cc | 1428 } // namespace cc |
| OLD | NEW |