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

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

Issue 2266223002: cc: Compute draw transforms dynamically. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix layout tests Created 4 years, 3 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 skip_draw_layers_in_on_draw_(false) { 108 skip_draw_layers_in_on_draw_(false) {
109 media::InitializeMediaLibrary(); 109 media::InitializeMediaLibrary();
110 } 110 }
111 111
112 LayerTreeSettings DefaultSettings() { 112 LayerTreeSettings DefaultSettings() {
113 LayerTreeSettings settings; 113 LayerTreeSettings settings;
114 settings.minimum_occlusion_tracking_size = gfx::Size(); 114 settings.minimum_occlusion_tracking_size = gfx::Size();
115 settings.renderer_settings.texture_id_allocation_chunk_size = 1; 115 settings.renderer_settings.texture_id_allocation_chunk_size = 1;
116 settings.gpu_rasterization_enabled = true; 116 settings.gpu_rasterization_enabled = true;
117 settings.verify_clip_tree_calculations = true; 117 settings.verify_clip_tree_calculations = true;
118 settings.verify_transform_tree_calculations = true;
119 settings.renderer_settings.buffer_to_texture_target_map = 118 settings.renderer_settings.buffer_to_texture_target_map =
120 DefaultBufferToTextureTargetMapForTesting(); 119 DefaultBufferToTextureTargetMapForTesting();
121 return settings; 120 return settings;
122 } 121 }
123 122
124 void SetUp() override { 123 void SetUp() override {
125 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); 124 CreateHostImpl(DefaultSettings(), CreateOutputSurface());
126 } 125 }
127 126
128 void TearDown() override { 127 void TearDown() override {
(...skipping 11084 matching lines...) Expand 10 before | Expand all | Expand 10 after
11213 EXPECT_TRUE(host_impl_->use_gpu_rasterization()); 11212 EXPECT_TRUE(host_impl_->use_gpu_rasterization());
11214 11213
11215 // Re-initialize with a software output surface. 11214 // Re-initialize with a software output surface.
11216 output_surface_ = FakeOutputSurface::CreateDelegatingSoftware(); 11215 output_surface_ = FakeOutputSurface::CreateDelegatingSoftware();
11217 host_impl_->InitializeRenderer(output_surface_.get()); 11216 host_impl_->InitializeRenderer(output_surface_.get());
11218 EXPECT_FALSE(host_impl_->use_gpu_rasterization()); 11217 EXPECT_FALSE(host_impl_->use_gpu_rasterization());
11219 } 11218 }
11220 11219
11221 } // namespace 11220 } // namespace
11222 } // namespace cc 11221 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698