OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/layer_tree_pixel_resource_test.h" | 5 #include "cc/test/layer_tree_pixel_resource_test.h" |
6 | 6 |
7 #include "cc/layers/layer.h" | 7 #include "cc/layers/layer.h" |
8 #include "cc/resources/bitmap_tile_task_worker_pool.h" | 8 #include "cc/resources/bitmap_tile_task_worker_pool.h" |
9 #include "cc/resources/gpu_rasterizer.h" | 9 #include "cc/resources/gpu_rasterizer.h" |
10 #include "cc/resources/gpu_tile_task_worker_pool.h" | 10 #include "cc/resources/gpu_tile_task_worker_pool.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 ResourceProvider* resource_provider = host_impl->resource_provider(); | 133 ResourceProvider* resource_provider = host_impl->resource_provider(); |
134 switch (resource_pool_option_) { | 134 switch (resource_pool_option_) { |
135 case BITMAP_TILE_TASK_WORKER_POOL: | 135 case BITMAP_TILE_TASK_WORKER_POOL: |
136 case ZERO_COPY_TILE_TASK_WORKER_POOL: | 136 case ZERO_COPY_TILE_TASK_WORKER_POOL: |
137 case ONE_COPY_TILE_TASK_WORKER_POOL: | 137 case ONE_COPY_TILE_TASK_WORKER_POOL: |
138 case PIXEL_BUFFER_TILE_TASK_WORKER_POOL: | 138 case PIXEL_BUFFER_TILE_TASK_WORKER_POOL: |
139 return SoftwareRasterizer::Create(); | 139 return SoftwareRasterizer::Create(); |
140 case GPU_TILE_TASK_WORKER_POOL: | 140 case GPU_TILE_TASK_WORKER_POOL: |
141 EXPECT_TRUE(context_provider); | 141 EXPECT_TRUE(context_provider); |
142 return GpuRasterizer::Create(context_provider, resource_provider, | 142 return GpuRasterizer::Create(context_provider, resource_provider, |
143 use_distance_field_text, false); | 143 use_distance_field_text, false, 0); |
144 } | 144 } |
145 NOTREACHED(); | 145 NOTREACHED(); |
146 return nullptr; | 146 return nullptr; |
147 } | 147 } |
148 | 148 |
149 void LayerTreeHostPixelResourceTest::CreateResourceAndTileTaskWorkerPool( | 149 void LayerTreeHostPixelResourceTest::CreateResourceAndTileTaskWorkerPool( |
150 LayerTreeHostImpl* host_impl, | 150 LayerTreeHostImpl* host_impl, |
151 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool, | 151 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool, |
152 scoped_ptr<ResourcePool>* resource_pool, | 152 scoped_ptr<ResourcePool>* resource_pool, |
153 scoped_ptr<ResourcePool>* staging_resource_pool) { | 153 scoped_ptr<ResourcePool>* staging_resource_pool) { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 232 |
233 if (layer_tree_host()) | 233 if (layer_tree_host()) |
234 EXPECT_TRUE(layer_tree_host()->settings().impl_side_painting); | 234 EXPECT_TRUE(layer_tree_host()->settings().impl_side_painting); |
235 } | 235 } |
236 | 236 |
237 ParameterizedPixelResourceTest::ParameterizedPixelResourceTest() | 237 ParameterizedPixelResourceTest::ParameterizedPixelResourceTest() |
238 : LayerTreeHostPixelResourceTest(GetParam()) { | 238 : LayerTreeHostPixelResourceTest(GetParam()) { |
239 } | 239 } |
240 | 240 |
241 } // namespace cc | 241 } // namespace cc |
OLD | NEW |