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

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

Issue 2120713002: Fix use_image_texture_target inconsistencies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix content browsertests Created 4 years, 5 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_impl.cc ('k') | cc/trees/layer_tree_settings.h » ('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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 media::InitializeMediaLibrary(); 107 media::InitializeMediaLibrary();
108 } 108 }
109 109
110 LayerTreeSettings DefaultSettings() { 110 LayerTreeSettings DefaultSettings() {
111 LayerTreeSettings settings; 111 LayerTreeSettings settings;
112 settings.minimum_occlusion_tracking_size = gfx::Size(); 112 settings.minimum_occlusion_tracking_size = gfx::Size();
113 settings.renderer_settings.texture_id_allocation_chunk_size = 1; 113 settings.renderer_settings.texture_id_allocation_chunk_size = 1;
114 settings.gpu_rasterization_enabled = true; 114 settings.gpu_rasterization_enabled = true;
115 settings.verify_clip_tree_calculations = true; 115 settings.verify_clip_tree_calculations = true;
116 settings.verify_transform_tree_calculations = true; 116 settings.verify_transform_tree_calculations = true;
117 settings.renderer_settings.buffer_to_texture_target_map =
118 DefaultBufferToTextureTargetMapForTesting();
117 return settings; 119 return settings;
118 } 120 }
119 121
120 void SetUp() override { 122 void SetUp() override {
121 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); 123 CreateHostImpl(DefaultSettings(), CreateOutputSurface());
122 } 124 }
123 125
124 void TearDown() override { 126 void TearDown() override {
125 if (host_impl_) 127 if (host_impl_)
126 host_impl_->ReleaseOutputSurface(); 128 host_impl_->ReleaseOutputSurface();
(...skipping 10958 matching lines...) Expand 10 before | Expand all | Expand 10 after
11085 11087
11086 // Re-initialize with a software output surface. 11088 // Re-initialize with a software output surface.
11087 output_surface_ = FakeOutputSurface::CreateSoftware( 11089 output_surface_ = FakeOutputSurface::CreateSoftware(
11088 base::WrapUnique(new SoftwareOutputDevice)); 11090 base::WrapUnique(new SoftwareOutputDevice));
11089 host_impl_->InitializeRenderer(output_surface_.get()); 11091 host_impl_->InitializeRenderer(output_surface_.get());
11090 EXPECT_FALSE(host_impl_->use_gpu_rasterization()); 11092 EXPECT_FALSE(host_impl_->use_gpu_rasterization());
11091 } 11093 }
11092 11094
11093 } // namespace 11095 } // namespace
11094 } // namespace cc 11096 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698