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

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

Issue 2857363004: Add buffer_to_texture_target_map to LayerTreeSettings (Closed)
Patch Set: Cleanup Created 3 years, 7 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 did_complete_page_scale_animation_(false), 123 did_complete_page_scale_animation_(false),
124 reduce_memory_result_(true), 124 reduce_memory_result_(true),
125 did_request_impl_side_invalidation_(false) { 125 did_request_impl_side_invalidation_(false) {
126 media::InitializeMediaLibrary(); 126 media::InitializeMediaLibrary();
127 } 127 }
128 128
129 LayerTreeSettings DefaultSettings() { 129 LayerTreeSettings DefaultSettings() {
130 LayerTreeSettings settings; 130 LayerTreeSettings settings;
131 settings.minimum_occlusion_tracking_size = gfx::Size(); 131 settings.minimum_occlusion_tracking_size = gfx::Size();
132 settings.renderer_settings.texture_id_allocation_chunk_size = 1; 132 settings.renderer_settings.texture_id_allocation_chunk_size = 1;
133 settings.renderer_settings.buffer_to_texture_target_map = 133 settings.buffer_to_texture_target_map =
134 DefaultBufferToTextureTargetMapForTesting(); 134 DefaultBufferToTextureTargetMapForTesting();
135 return settings; 135 return settings;
136 } 136 }
137 137
138 void SetUp() override { 138 void SetUp() override {
139 CreateHostImpl(DefaultSettings(), CreateCompositorFrameSink()); 139 CreateHostImpl(DefaultSettings(), CreateCompositorFrameSink());
140 } 140 }
141 141
142 void TearDown() override { 142 void TearDown() override {
143 if (host_impl_) 143 if (host_impl_)
(...skipping 12247 matching lines...) Expand 10 before | Expand all | Expand 10 after
12391 12391
12392 TEST_F(LayerTreeHostImplTest, RasterColorSpace) { 12392 TEST_F(LayerTreeHostImplTest, RasterColorSpace) {
12393 LayerTreeSettings settings = DefaultSettings(); 12393 LayerTreeSettings settings = DefaultSettings();
12394 settings.enable_color_correct_rasterization = true; 12394 settings.enable_color_correct_rasterization = true;
12395 CreateHostImpl(settings, CreateCompositorFrameSink()); 12395 CreateHostImpl(settings, CreateCompositorFrameSink());
12396 EXPECT_EQ(host_impl_->GetRasterColorSpace(), gfx::ColorSpace::CreateSRGB()); 12396 EXPECT_EQ(host_impl_->GetRasterColorSpace(), gfx::ColorSpace::CreateSRGB());
12397 } 12397 }
12398 12398
12399 } // namespace 12399 } // namespace
12400 } // namespace cc 12400 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698