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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 namespace cc { | 43 namespace cc { |
44 namespace { | 44 namespace { |
45 | 45 |
46 class TileManagerTilePriorityQueueTest : public TestLayerTreeHostBase { | 46 class TileManagerTilePriorityQueueTest : public TestLayerTreeHostBase { |
47 public: | 47 public: |
48 LayerTreeSettings CreateSettings() override { | 48 LayerTreeSettings CreateSettings() override { |
49 LayerTreeSettings settings; | 49 LayerTreeSettings settings; |
50 settings.create_low_res_tiling = true; | 50 settings.create_low_res_tiling = true; |
51 settings.verify_clip_tree_calculations = true; | 51 settings.verify_clip_tree_calculations = true; |
52 settings.verify_transform_tree_calculations = true; | 52 settings.verify_transform_tree_calculations = true; |
| 53 settings.renderer_settings.buffer_to_texture_target_map = |
| 54 DefaultBufferToTextureTargetMapForTesting(); |
53 return settings; | 55 return settings; |
54 } | 56 } |
55 | 57 |
56 TileManager* tile_manager() { return host_impl()->tile_manager(); } | 58 TileManager* tile_manager() { return host_impl()->tile_manager(); } |
57 }; | 59 }; |
58 | 60 |
59 TEST_F(TileManagerTilePriorityQueueTest, RasterTilePriorityQueue) { | 61 TEST_F(TileManagerTilePriorityQueueTest, RasterTilePriorityQueue) { |
60 const gfx::Size layer_bounds(1000, 1000); | 62 const gfx::Size layer_bounds(1000, 1000); |
61 host_impl()->SetViewportSize(layer_bounds); | 63 host_impl()->SetViewportSize(layer_bounds); |
62 SetupDefaultTrees(layer_bounds); | 64 SetupDefaultTrees(layer_bounds); |
(...skipping 1825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1888 } | 1890 } |
1889 | 1891 |
1890 // Ensures that the tile manager does not attempt to reuse tiles when partial | 1892 // Ensures that the tile manager does not attempt to reuse tiles when partial |
1891 // raster is disabled. | 1893 // raster is disabled. |
1892 TEST_F(TileManagerTest, PartialRasterSuccessfullyDisabled) { | 1894 TEST_F(TileManagerTest, PartialRasterSuccessfullyDisabled) { |
1893 RunPartialRasterCheck(TakeHostImpl(), false /* partial_raster_enabled */); | 1895 RunPartialRasterCheck(TakeHostImpl(), false /* partial_raster_enabled */); |
1894 } | 1896 } |
1895 | 1897 |
1896 } // namespace | 1898 } // namespace |
1897 } // namespace cc | 1899 } // namespace cc |
OLD | NEW |