| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/trees/layer_tree_host_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <cmath> | 10 #include <cmath> |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 did_complete_page_scale_animation_(false), | 115 did_complete_page_scale_animation_(false), |
| 116 reduce_memory_result_(true), | 116 reduce_memory_result_(true), |
| 117 did_request_impl_side_invalidation_(false) { | 117 did_request_impl_side_invalidation_(false) { |
| 118 media::InitializeMediaLibrary(); | 118 media::InitializeMediaLibrary(); |
| 119 } | 119 } |
| 120 | 120 |
| 121 LayerTreeSettings DefaultSettings() { | 121 LayerTreeSettings DefaultSettings() { |
| 122 LayerTreeSettings settings; | 122 LayerTreeSettings settings; |
| 123 settings.minimum_occlusion_tracking_size = gfx::Size(); | 123 settings.minimum_occlusion_tracking_size = gfx::Size(); |
| 124 settings.renderer_settings.texture_id_allocation_chunk_size = 1; | 124 settings.renderer_settings.texture_id_allocation_chunk_size = 1; |
| 125 settings.verify_clip_tree_calculations = true; | |
| 126 settings.renderer_settings.buffer_to_texture_target_map = | 125 settings.renderer_settings.buffer_to_texture_target_map = |
| 127 DefaultBufferToTextureTargetMapForTesting(); | 126 DefaultBufferToTextureTargetMapForTesting(); |
| 128 return settings; | 127 return settings; |
| 129 } | 128 } |
| 130 | 129 |
| 131 void SetUp() override { | 130 void SetUp() override { |
| 132 CreateHostImpl(DefaultSettings(), CreateCompositorFrameSink()); | 131 CreateHostImpl(DefaultSettings(), CreateCompositorFrameSink()); |
| 133 } | 132 } |
| 134 | 133 |
| 135 void TearDown() override { | 134 void TearDown() override { |
| (...skipping 11928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12064 else | 12063 else |
| 12065 EXPECT_FALSE(tile->HasRasterTask()); | 12064 EXPECT_FALSE(tile->HasRasterTask()); |
| 12066 } | 12065 } |
| 12067 Region expected_invalidation( | 12066 Region expected_invalidation( |
| 12068 raster_source->GetRectForImage(checkerable_image->uniqueID())); | 12067 raster_source->GetRectForImage(checkerable_image->uniqueID())); |
| 12069 EXPECT_EQ(expected_invalidation, *(root->GetPendingInvalidation())); | 12068 EXPECT_EQ(expected_invalidation, *(root->GetPendingInvalidation())); |
| 12070 } | 12069 } |
| 12071 | 12070 |
| 12072 } // namespace | 12071 } // namespace |
| 12073 } // namespace cc | 12072 } // namespace cc |
| OLD | NEW |