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

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

Issue 1800923002: cc: Directly use property trees to calculate clip rect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix perftests compile by not verify clip tree calc there Created 4 years, 7 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
« no previous file with comments | « cc/trees/layer_tree_host_common_perftest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 reduce_memory_result_(true), 104 reduce_memory_result_(true),
105 skip_draw_layers_in_on_draw_(false) { 105 skip_draw_layers_in_on_draw_(false) {
106 media::InitializeMediaLibrary(); 106 media::InitializeMediaLibrary();
107 } 107 }
108 108
109 LayerTreeSettings DefaultSettings() { 109 LayerTreeSettings DefaultSettings() {
110 LayerTreeSettings settings; 110 LayerTreeSettings settings;
111 settings.minimum_occlusion_tracking_size = gfx::Size(); 111 settings.minimum_occlusion_tracking_size = gfx::Size();
112 settings.renderer_settings.texture_id_allocation_chunk_size = 1; 112 settings.renderer_settings.texture_id_allocation_chunk_size = 1;
113 settings.gpu_rasterization_enabled = true; 113 settings.gpu_rasterization_enabled = true;
114 settings.verify_clip_tree_calculations = true;
114 return settings; 115 return settings;
115 } 116 }
116 117
117 void SetUp() override { 118 void SetUp() override {
118 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); 119 CreateHostImpl(DefaultSettings(), CreateOutputSurface());
119 } 120 }
120 121
121 void TearDown() override {} 122 void TearDown() override {}
122 123
123 void UpdateRendererCapabilitiesOnImplThread() override {} 124 void UpdateRendererCapabilitiesOnImplThread() override {}
(...skipping 10622 matching lines...) Expand 10 before | Expand all | Expand 10 after
10746 10747
10747 // Re-initialize with a software output surface. 10748 // Re-initialize with a software output surface.
10748 output_surface_ = FakeOutputSurface::CreateSoftware( 10749 output_surface_ = FakeOutputSurface::CreateSoftware(
10749 base::WrapUnique(new SoftwareOutputDevice)); 10750 base::WrapUnique(new SoftwareOutputDevice));
10750 host_impl_->InitializeRenderer(output_surface_.get()); 10751 host_impl_->InitializeRenderer(output_surface_.get());
10751 EXPECT_FALSE(host_impl_->use_gpu_rasterization()); 10752 EXPECT_FALSE(host_impl_->use_gpu_rasterization());
10752 } 10753 }
10753 10754
10754 } // namespace 10755 } // namespace
10755 } // namespace cc 10756 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common_perftest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698