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

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

Issue 17351017: Re-land: cc: Add raster finished signals to RasterWorkerPool. (Closed) Base URL: http://git.chromium.org/chromium/src.git@new-graph-build
Patch Set: fix flaky unit tests Created 7 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/resources/raster_worker_pool_perftest.cc ('k') | cc/resources/tile.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 <vector> 7 #include <vector>
8 8
9 #include "cc/resources/image_raster_worker_pool.h" 9 #include "cc/resources/image_raster_worker_pool.h"
10 #include "cc/resources/picture_pile.h" 10 #include "cc/resources/picture_pile.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 return; 72 return;
73 raster_worker_pool_->Shutdown(); 73 raster_worker_pool_->Shutdown();
74 raster_worker_pool_->CheckForCompletedTasks(); 74 raster_worker_pool_->CheckForCompletedTasks();
75 } 75 }
76 76
77 // Overriden from RasterWorkerPoolClient: 77 // Overriden from RasterWorkerPoolClient:
78 virtual bool ShouldForceTasksRequiredForActivationToComplete() const 78 virtual bool ShouldForceTasksRequiredForActivationToComplete() const
79 OVERRIDE { 79 OVERRIDE {
80 return false; 80 return false;
81 } 81 }
82 virtual void DidFinishedRunningTasks() OVERRIDE {}
83 virtual void DidFinishedRunningTasksRequiredForActivation() OVERRIDE {}
82 84
83 virtual void BeginTest() = 0; 85 virtual void BeginTest() = 0;
84 virtual void AfterTest() = 0; 86 virtual void AfterTest() = 0;
85 87
86 ResourceProvider* resource_provider() const { 88 ResourceProvider* resource_provider() const {
87 return resource_provider_.get(); 89 return resource_provider_.get();
88 } 90 }
89 91
90 RasterWorkerPool* worker_pool() { 92 RasterWorkerPool* worker_pool() {
91 return raster_worker_pool_.get(); 93 return raster_worker_pool_.get();
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 ASSERT_EQ(1u, tasks_.size()); 271 ASSERT_EQ(1u, tasks_.size());
270 tasks_.clear(); 272 tasks_.clear();
271 } 273 }
272 }; 274 };
273 275
274 PIXEL_BUFFER_AND_IMAGE_TEST_F(RasterWorkerPoolTestFailedMapResource); 276 PIXEL_BUFFER_AND_IMAGE_TEST_F(RasterWorkerPoolTestFailedMapResource);
275 277
276 } // namespace 278 } // namespace
277 279
278 } // namespace cc 280 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/raster_worker_pool_perftest.cc ('k') | cc/resources/tile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698