| 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 "cc/layers/picture_layer_impl.h" | 5 #include "cc/layers/picture_layer_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <limits> | 10 #include <limits> |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 TestLayerTreeHostBase::SetUp(); | 86 TestLayerTreeHostBase::SetUp(); |
| 87 host_impl()->SetViewportSize(gfx::Size(10000, 10000)); | 87 host_impl()->SetViewportSize(gfx::Size(10000, 10000)); |
| 88 } | 88 } |
| 89 | 89 |
| 90 LayerTreeSettings CreateSettings() override { | 90 LayerTreeSettings CreateSettings() override { |
| 91 LayerTreeSettings settings; | 91 LayerTreeSettings settings; |
| 92 settings.gpu_rasterization_enabled = true; | 92 settings.gpu_rasterization_enabled = true; |
| 93 settings.layer_transforms_should_scale_layer_contents = true; | 93 settings.layer_transforms_should_scale_layer_contents = true; |
| 94 settings.create_low_res_tiling = true; | 94 settings.create_low_res_tiling = true; |
| 95 settings.verify_clip_tree_calculations = true; | 95 settings.verify_clip_tree_calculations = true; |
| 96 settings.verify_transform_tree_calculations = true; |
| 96 return settings; | 97 return settings; |
| 97 } | 98 } |
| 98 | 99 |
| 99 void SetupDefaultTreesWithFixedTileSize(const gfx::Size& layer_bounds, | 100 void SetupDefaultTreesWithFixedTileSize(const gfx::Size& layer_bounds, |
| 100 const gfx::Size& tile_size, | 101 const gfx::Size& tile_size, |
| 101 const Region& invalidation) { | 102 const Region& invalidation) { |
| 102 scoped_refptr<FakeRasterSource> pending_raster_source = | 103 scoped_refptr<FakeRasterSource> pending_raster_source = |
| 103 FakeRasterSource::CreateFilled(layer_bounds); | 104 FakeRasterSource::CreateFilled(layer_bounds); |
| 104 scoped_refptr<FakeRasterSource> active_raster_source = | 105 scoped_refptr<FakeRasterSource> active_raster_source = |
| 105 FakeRasterSource::CreateFilled(layer_bounds); | 106 FakeRasterSource::CreateFilled(layer_bounds); |
| (...skipping 4895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5001 EXPECT_FLOAT_EQ(expected_contents_scale, | 5002 EXPECT_FLOAT_EQ(expected_contents_scale, |
| 5002 pending_layer_ptr->picture_layer_tiling_set() | 5003 pending_layer_ptr->picture_layer_tiling_set() |
| 5003 ->FindTilingWithResolution(HIGH_RESOLUTION) | 5004 ->FindTilingWithResolution(HIGH_RESOLUTION) |
| 5004 ->contents_scale()) | 5005 ->contents_scale()) |
| 5005 << "ideal_contents_scale: " << ideal_contents_scale; | 5006 << "ideal_contents_scale: " << ideal_contents_scale; |
| 5006 } | 5007 } |
| 5007 } | 5008 } |
| 5008 | 5009 |
| 5009 } // namespace | 5010 } // namespace |
| 5010 } // namespace cc | 5011 } // namespace cc |
| OLD | NEW |