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 11858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11994 else | 11993 else |
11995 EXPECT_FALSE(tile->HasRasterTask()); | 11994 EXPECT_FALSE(tile->HasRasterTask()); |
11996 } | 11995 } |
11997 Region expected_invalidation( | 11996 Region expected_invalidation( |
11998 raster_source->GetRectForImage(checkerable_image->uniqueID())); | 11997 raster_source->GetRectForImage(checkerable_image->uniqueID())); |
11999 EXPECT_EQ(expected_invalidation, *(root->GetPendingInvalidation())); | 11998 EXPECT_EQ(expected_invalidation, *(root->GetPendingInvalidation())); |
12000 } | 11999 } |
12001 | 12000 |
12002 } // namespace | 12001 } // namespace |
12003 } // namespace cc | 12002 } // namespace cc |
OLD | NEW |