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

Side by Side Diff: cc/test/test_layer_tree_host_base.cc

Issue 2171143002: cc: Get rid of non-delegated rendering in most cc unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@killdirecttests
Patch Set: fakeoutputsurface: no-constructor 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/test/layer_tree_test.cc ('k') | cc/tiles/picture_layer_tiling_set_unittest.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/test/test_layer_tree_host_base.h" 5 #include "cc/test/test_layer_tree_host_base.h"
6 6
7 #include "cc/test/fake_output_surface.h" 7 #include "cc/test/fake_output_surface.h"
8 #include "cc/test/fake_raster_source.h" 8 #include "cc/test/fake_raster_source.h"
9 #include "cc/trees/layer_tree_impl.h" 9 #include "cc/trees/layer_tree_impl.h"
10 10
(...skipping 17 matching lines...) Expand all
28 &gpu_memory_buffer_manager_); 28 &gpu_memory_buffer_manager_);
29 InitializeRenderer(); 29 InitializeRenderer();
30 SetInitialTreePriority(); 30 SetInitialTreePriority();
31 } 31 }
32 32
33 LayerTreeSettings TestLayerTreeHostBase::CreateSettings() { 33 LayerTreeSettings TestLayerTreeHostBase::CreateSettings() {
34 return LayerTreeSettings(); 34 return LayerTreeSettings();
35 } 35 }
36 36
37 std::unique_ptr<OutputSurface> TestLayerTreeHostBase::CreateOutputSurface() { 37 std::unique_ptr<OutputSurface> TestLayerTreeHostBase::CreateOutputSurface() {
38 return FakeOutputSurface::Create3d(); 38 return FakeOutputSurface::CreateDelegating3d();
39 } 39 }
40 40
41 std::unique_ptr<FakeLayerTreeHostImpl> TestLayerTreeHostBase::CreateHostImpl( 41 std::unique_ptr<FakeLayerTreeHostImpl> TestLayerTreeHostBase::CreateHostImpl(
42 const LayerTreeSettings& settings, 42 const LayerTreeSettings& settings,
43 TaskRunnerProvider* task_runner_provider, 43 TaskRunnerProvider* task_runner_provider,
44 SharedBitmapManager* shared_bitmap_manager, 44 SharedBitmapManager* shared_bitmap_manager,
45 TaskGraphRunner* task_graph_runner, 45 TaskGraphRunner* task_graph_runner,
46 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager) { 46 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager) {
47 return base::WrapUnique(new FakeLayerTreeHostImpl( 47 return base::WrapUnique(new FakeLayerTreeHostImpl(
48 settings, task_runner_provider, shared_bitmap_manager, task_graph_runner, 48 settings, task_runner_provider, shared_bitmap_manager, task_graph_runner,
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 state.hard_memory_limit_in_bytes = state.soft_memory_limit_in_bytes * 2; 172 state.hard_memory_limit_in_bytes = state.soft_memory_limit_in_bytes * 2;
173 state.memory_limit_policy = ALLOW_ANYTHING; 173 state.memory_limit_policy = ALLOW_ANYTHING;
174 state.tree_priority = SAME_PRIORITY_FOR_BOTH_TREES; 174 state.tree_priority = SAME_PRIORITY_FOR_BOTH_TREES;
175 175
176 host_impl_->resource_pool()->SetResourceUsageLimits( 176 host_impl_->resource_pool()->SetResourceUsageLimits(
177 state.soft_memory_limit_in_bytes, state.num_resources_limit); 177 state.soft_memory_limit_in_bytes, state.num_resources_limit);
178 host_impl_->tile_manager()->SetGlobalStateForTesting(state); 178 host_impl_->tile_manager()->SetGlobalStateForTesting(state);
179 } 179 }
180 180
181 } // namespace cc 181 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/tiles/picture_layer_tiling_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698