Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Side by Side Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 2655233006: cc : Clean up cc clip tree (Closed)
Patch Set: Address comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 11959 matching lines...) Expand 10 before | Expand all | Expand 10 after
12095 else 12094 else
12096 EXPECT_FALSE(tile->HasRasterTask()); 12095 EXPECT_FALSE(tile->HasRasterTask());
12097 } 12096 }
12098 Region expected_invalidation( 12097 Region expected_invalidation(
12099 raster_source->GetRectForImage(checkerable_image->uniqueID())); 12098 raster_source->GetRectForImage(checkerable_image->uniqueID()));
12100 EXPECT_EQ(expected_invalidation, *(root->GetPendingInvalidation())); 12099 EXPECT_EQ(expected_invalidation, *(root->GetPendingInvalidation()));
12101 } 12100 }
12102 12101
12103 } // namespace 12102 } // namespace
12104 } // namespace cc 12103 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698