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

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: Address comments in CompositorImpl 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
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_host_perftest.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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.enable_surface_synchronization = true; 131 settings.enable_surface_synchronization = true;
132 settings.minimum_occlusion_tracking_size = gfx::Size(); 132 settings.minimum_occlusion_tracking_size = gfx::Size();
133 settings.renderer_settings.texture_id_allocation_chunk_size = 1; 133 settings.renderer_settings.texture_id_allocation_chunk_size = 1;
134 settings.renderer_settings.buffer_to_texture_target_map = 134 settings.buffer_to_texture_target_map =
135 DefaultBufferToTextureTargetMapForTesting(); 135 DefaultBufferToTextureTargetMapForTesting();
136 return settings; 136 return settings;
137 } 137 }
138 138
139 void SetUp() override { 139 void SetUp() override {
140 CreateHostImpl(DefaultSettings(), CreateCompositorFrameSink()); 140 CreateHostImpl(DefaultSettings(), CreateCompositorFrameSink());
141 } 141 }
142 142
143 void TearDown() override { 143 void TearDown() override {
144 if (host_impl_) 144 if (host_impl_)
(...skipping 12258 matching lines...) Expand 10 before | Expand all | Expand 10 after
12403 12403
12404 TEST_F(LayerTreeHostImplTest, RasterColorSpace) { 12404 TEST_F(LayerTreeHostImplTest, RasterColorSpace) {
12405 LayerTreeSettings settings = DefaultSettings(); 12405 LayerTreeSettings settings = DefaultSettings();
12406 settings.enable_color_correct_rasterization = true; 12406 settings.enable_color_correct_rasterization = true;
12407 CreateHostImpl(settings, CreateCompositorFrameSink()); 12407 CreateHostImpl(settings, CreateCompositorFrameSink());
12408 EXPECT_EQ(host_impl_->GetRasterColorSpace(), gfx::ColorSpace::CreateSRGB()); 12408 EXPECT_EQ(host_impl_->GetRasterColorSpace(), gfx::ColorSpace::CreateSRGB());
12409 } 12409 }
12410 12410
12411 } // namespace 12411 } // namespace
12412 } // namespace cc 12412 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_host_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698