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

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

Issue 609663003: cc: Remove use of PassAs() and constructor-casting with scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cc-passas: PassAs-presubmit-warning Created 6 years, 2 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/resources/prioritized_resource_unittest.cc ('k') | cc/resources/resource_provider.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 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 raster_worker_pool_ = BitmapRasterWorkerPool::Create( 167 raster_worker_pool_ = BitmapRasterWorkerPool::Create(
168 base::MessageLoopProxy::current().get(), 168 base::MessageLoopProxy::current().get(),
169 RasterWorkerPool::GetTaskGraphRunner(), 169 RasterWorkerPool::GetTaskGraphRunner(),
170 resource_provider_.get()); 170 resource_provider_.get());
171 break; 171 break;
172 } 172 }
173 173
174 DCHECK(raster_worker_pool_); 174 DCHECK(raster_worker_pool_);
175 raster_worker_pool_->AsRasterizer()->SetClient(this); 175 raster_worker_pool_->AsRasterizer()->SetClient(this);
176 } 176 }
177
177 virtual void TearDown() OVERRIDE { 178 virtual void TearDown() OVERRIDE {
178 raster_worker_pool_->AsRasterizer()->Shutdown(); 179 raster_worker_pool_->AsRasterizer()->Shutdown();
179 raster_worker_pool_->AsRasterizer()->CheckForCompletedTasks(); 180 raster_worker_pool_->AsRasterizer()->CheckForCompletedTasks();
180 } 181 }
181 182
182 // Overriden from RasterWorkerPoolClient: 183 // Overriden from RasterWorkerPoolClient:
183 virtual void DidFinishRunningTasks(TaskSet task_set) OVERRIDE { 184 virtual void DidFinishRunningTasks(TaskSet task_set) OVERRIDE {
184 if (task_set == ALL) { 185 if (task_set == ALL) {
185 raster_worker_pool_->AsRasterizer()->CheckForCompletedTasks(); 186 raster_worker_pool_->AsRasterizer()->CheckForCompletedTasks();
186 base::MessageLoop::current()->Quit(); 187 base::MessageLoop::current()->Quit();
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 INSTANTIATE_TEST_CASE_P(RasterWorkerPoolTests, 393 INSTANTIATE_TEST_CASE_P(RasterWorkerPoolTests,
393 RasterWorkerPoolTest, 394 RasterWorkerPoolTest,
394 ::testing::Values(RASTER_WORKER_POOL_TYPE_PIXEL_BUFFER, 395 ::testing::Values(RASTER_WORKER_POOL_TYPE_PIXEL_BUFFER,
395 RASTER_WORKER_POOL_TYPE_ZERO_COPY, 396 RASTER_WORKER_POOL_TYPE_ZERO_COPY,
396 RASTER_WORKER_POOL_TYPE_ONE_COPY, 397 RASTER_WORKER_POOL_TYPE_ONE_COPY,
397 RASTER_WORKER_POOL_TYPE_GPU, 398 RASTER_WORKER_POOL_TYPE_GPU,
398 RASTER_WORKER_POOL_TYPE_BITMAP)); 399 RASTER_WORKER_POOL_TYPE_BITMAP));
399 400
400 } // namespace 401 } // namespace
401 } // namespace cc 402 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/prioritized_resource_unittest.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698