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

Side by Side Diff: cc/resources/raster_worker_pool_unittest.cc

Issue 228183002: cc: Move ResourcePool ownership to LTHI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « cc/resources/raster_worker_pool_perftest.cc ('k') | cc/resources/rasterizer.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/resources/raster_worker_pool.h" 5 #include "cc/resources/raster_worker_pool.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/cancelable_callback.h" 10 #include "base/cancelable_callback.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 raster_worker_pool_ = PixelBufferRasterWorkerPool::Create( 138 raster_worker_pool_ = PixelBufferRasterWorkerPool::Create(
139 base::MessageLoopProxy::current().get(), 139 base::MessageLoopProxy::current().get(),
140 RasterWorkerPool::GetTaskGraphRunner(), 140 RasterWorkerPool::GetTaskGraphRunner(),
141 resource_provider_.get(), 141 resource_provider_.get(),
142 std::numeric_limits<size_t>::max()); 142 std::numeric_limits<size_t>::max());
143 break; 143 break;
144 case RASTER_WORKER_POOL_TYPE_IMAGE: 144 case RASTER_WORKER_POOL_TYPE_IMAGE:
145 raster_worker_pool_ = ImageRasterWorkerPool::Create( 145 raster_worker_pool_ = ImageRasterWorkerPool::Create(
146 base::MessageLoopProxy::current().get(), 146 base::MessageLoopProxy::current().get(),
147 RasterWorkerPool::GetTaskGraphRunner(), 147 RasterWorkerPool::GetTaskGraphRunner(),
148 resource_provider_.get(), 148 resource_provider_.get());
149 GL_TEXTURE_2D);
150 break; 149 break;
151 case RASTER_WORKER_POOL_TYPE_DIRECT: 150 case RASTER_WORKER_POOL_TYPE_DIRECT:
152 raster_worker_pool_ = DirectRasterWorkerPool::Create( 151 raster_worker_pool_ = DirectRasterWorkerPool::Create(
153 base::MessageLoopProxy::current().get(), 152 base::MessageLoopProxy::current().get(),
154 resource_provider_.get(), 153 resource_provider_.get(),
155 context_provider_.get()); 154 context_provider_.get());
156 break; 155 break;
157 } 156 }
158 157
159 DCHECK(raster_worker_pool_); 158 DCHECK(raster_worker_pool_);
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 } 331 }
333 332
334 INSTANTIATE_TEST_CASE_P(RasterWorkerPoolTests, 333 INSTANTIATE_TEST_CASE_P(RasterWorkerPoolTests,
335 RasterWorkerPoolTest, 334 RasterWorkerPoolTest,
336 ::testing::Values(RASTER_WORKER_POOL_TYPE_PIXEL_BUFFER, 335 ::testing::Values(RASTER_WORKER_POOL_TYPE_PIXEL_BUFFER,
337 RASTER_WORKER_POOL_TYPE_IMAGE, 336 RASTER_WORKER_POOL_TYPE_IMAGE,
338 RASTER_WORKER_POOL_TYPE_DIRECT)); 337 RASTER_WORKER_POOL_TYPE_DIRECT));
339 338
340 } // namespace 339 } // namespace
341 } // namespace cc 340 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/raster_worker_pool_perftest.cc ('k') | cc/resources/rasterizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698