| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 void SetUp() override { | 88 void SetUp() override { |
| 89 TestLayerTreeHostBase::SetUp(); | 89 TestLayerTreeHostBase::SetUp(); |
| 90 host_impl()->SetViewportSize(gfx::Size(10000, 10000)); | 90 host_impl()->SetViewportSize(gfx::Size(10000, 10000)); |
| 91 } | 91 } |
| 92 | 92 |
| 93 LayerTreeSettings CreateSettings() override { | 93 LayerTreeSettings CreateSettings() override { |
| 94 LayerTreeSettings settings; | 94 LayerTreeSettings settings; |
| 95 settings.gpu_rasterization_enabled = true; | 95 settings.gpu_rasterization_enabled = true; |
| 96 settings.layer_transforms_should_scale_layer_contents = true; | 96 settings.layer_transforms_should_scale_layer_contents = true; |
| 97 settings.create_low_res_tiling = true; | 97 settings.create_low_res_tiling = true; |
| 98 settings.verify_clip_tree_calculations = true; | |
| 99 settings.renderer_settings.buffer_to_texture_target_map = | 98 settings.renderer_settings.buffer_to_texture_target_map = |
| 100 DefaultBufferToTextureTargetMapForTesting(); | 99 DefaultBufferToTextureTargetMapForTesting(); |
| 101 return settings; | 100 return settings; |
| 102 } | 101 } |
| 103 | 102 |
| 104 void SetupDefaultTreesWithFixedTileSize(const gfx::Size& layer_bounds, | 103 void SetupDefaultTreesWithFixedTileSize(const gfx::Size& layer_bounds, |
| 105 const gfx::Size& tile_size, | 104 const gfx::Size& tile_size, |
| 106 const Region& invalidation) { | 105 const Region& invalidation) { |
| 107 scoped_refptr<FakeRasterSource> pending_raster_source = | 106 scoped_refptr<FakeRasterSource> pending_raster_source = |
| 108 FakeRasterSource::CreateFilled(layer_bounds); | 107 FakeRasterSource::CreateFilled(layer_bounds); |
| (...skipping 4814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4923 EXPECT_FLOAT_EQ(expected_contents_scale, | 4922 EXPECT_FLOAT_EQ(expected_contents_scale, |
| 4924 pending_layer_ptr->picture_layer_tiling_set() | 4923 pending_layer_ptr->picture_layer_tiling_set() |
| 4925 ->FindTilingWithResolution(HIGH_RESOLUTION) | 4924 ->FindTilingWithResolution(HIGH_RESOLUTION) |
| 4926 ->contents_scale()) | 4925 ->contents_scale()) |
| 4927 << "ideal_contents_scale: " << ideal_contents_scale; | 4926 << "ideal_contents_scale: " << ideal_contents_scale; |
| 4928 } | 4927 } |
| 4929 } | 4928 } |
| 4930 | 4929 |
| 4931 } // namespace | 4930 } // namespace |
| 4932 } // namespace cc | 4931 } // namespace cc |
| OLD | NEW |