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

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: feedback 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
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 settings.verify_clip_tree_calculations = true;
115 settings.verify_transform_tree_calculations = true; 115 settings.verify_transform_tree_calculations = true;
116 settings.renderer_settings.buffer_to_texture_target_map =
117 DefaultBufferToTextureTargetMapForTesting();
116 return settings; 118 return settings;
117 } 119 }
118 120
119 void SetUp() override { 121 void SetUp() override {
120 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); 122 CreateHostImpl(DefaultSettings(), CreateOutputSurface());
121 } 123 }
122 124
123 void TearDown() override { 125 void TearDown() override {
124 if (host_impl_) 126 if (host_impl_)
125 host_impl_->ReleaseOutputSurface(); 127 host_impl_->ReleaseOutputSurface();
(...skipping 10918 matching lines...) Expand 10 before | Expand all | Expand 10 after
11044 11046
11045 // Re-initialize with a software output surface. 11047 // Re-initialize with a software output surface.
11046 output_surface_ = FakeOutputSurface::CreateSoftware( 11048 output_surface_ = FakeOutputSurface::CreateSoftware(
11047 base::WrapUnique(new SoftwareOutputDevice)); 11049 base::WrapUnique(new SoftwareOutputDevice));
11048 host_impl_->InitializeRenderer(output_surface_.get()); 11050 host_impl_->InitializeRenderer(output_surface_.get());
11049 EXPECT_FALSE(host_impl_->use_gpu_rasterization()); 11051 EXPECT_FALSE(host_impl_->use_gpu_rasterization());
11050 } 11052 }
11051 11053
11052 } // namespace 11054 } // namespace
11053 } // namespace cc 11055 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698