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

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: Nit Created 4 years, 2 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 reduce_memory_result_(true) { 109 reduce_memory_result_(true) {
110 media::InitializeMediaLibrary(); 110 media::InitializeMediaLibrary();
111 } 111 }
112 112
113 LayerTreeSettings DefaultSettings() { 113 LayerTreeSettings DefaultSettings() {
114 LayerTreeSettings settings; 114 LayerTreeSettings settings;
115 settings.minimum_occlusion_tracking_size = gfx::Size(); 115 settings.minimum_occlusion_tracking_size = gfx::Size();
116 settings.renderer_settings.texture_id_allocation_chunk_size = 1; 116 settings.renderer_settings.texture_id_allocation_chunk_size = 1;
117 settings.gpu_rasterization_enabled = true; 117 settings.gpu_rasterization_enabled = true;
118 settings.verify_clip_tree_calculations = true; 118 settings.verify_clip_tree_calculations = true;
119 settings.verify_transform_tree_calculations = true;
120 settings.renderer_settings.buffer_to_texture_target_map = 119 settings.renderer_settings.buffer_to_texture_target_map =
121 DefaultBufferToTextureTargetMapForTesting(); 120 DefaultBufferToTextureTargetMapForTesting();
122 return settings; 121 return settings;
123 } 122 }
124 123
125 void SetUp() override { 124 void SetUp() override {
126 CreateHostImpl(DefaultSettings(), CreateCompositorFrameSink()); 125 CreateHostImpl(DefaultSettings(), CreateCompositorFrameSink());
127 } 126 }
128 127
129 void TearDown() override { 128 void TearDown() override {
(...skipping 11276 matching lines...) Expand 10 before | Expand all | Expand 10 after
11406 EXPECT_TRUE(host_impl_->use_gpu_rasterization()); 11405 EXPECT_TRUE(host_impl_->use_gpu_rasterization());
11407 11406
11408 // Re-initialize with a software output surface. 11407 // Re-initialize with a software output surface.
11409 compositor_frame_sink_ = FakeCompositorFrameSink::CreateSoftware(); 11408 compositor_frame_sink_ = FakeCompositorFrameSink::CreateSoftware();
11410 host_impl_->InitializeRenderer(compositor_frame_sink_.get()); 11409 host_impl_->InitializeRenderer(compositor_frame_sink_.get());
11411 EXPECT_FALSE(host_impl_->use_gpu_rasterization()); 11410 EXPECT_FALSE(host_impl_->use_gpu_rasterization());
11412 } 11411 }
11413 11412
11414 } // namespace 11413 } // namespace
11415 } // namespace cc 11414 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698