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

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: Rebase! 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
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.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 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 11273 matching lines...) Expand 10 before | Expand all | Expand 10 after
11403 EXPECT_TRUE(host_impl_->use_gpu_rasterization()); 11402 EXPECT_TRUE(host_impl_->use_gpu_rasterization());
11404 11403
11405 // Re-initialize with a software output surface. 11404 // Re-initialize with a software output surface.
11406 compositor_frame_sink_ = FakeCompositorFrameSink::CreateSoftware(); 11405 compositor_frame_sink_ = FakeCompositorFrameSink::CreateSoftware();
11407 host_impl_->InitializeRenderer(compositor_frame_sink_.get()); 11406 host_impl_->InitializeRenderer(compositor_frame_sink_.get());
11408 EXPECT_FALSE(host_impl_->use_gpu_rasterization()); 11407 EXPECT_FALSE(host_impl_->use_gpu_rasterization());
11409 } 11408 }
11410 11409
11411 } // namespace 11410 } // namespace
11412 } // namespace cc 11411 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698