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

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: vmpstr's review Created 7 years, 6 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
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 return; 71 return;
72 raster_worker_pool_->Shutdown(); 72 raster_worker_pool_->Shutdown();
73 raster_worker_pool_->CheckForCompletedTasks(); 73 raster_worker_pool_->CheckForCompletedTasks();
74 } 74 }
75 75
76 // Overriden from RasterWorkerPoolClient: 76 // Overriden from RasterWorkerPoolClient:
77 virtual bool ShouldForceTasksRequiredForActivationToComplete() const 77 virtual bool ShouldForceTasksRequiredForActivationToComplete() const
78 OVERRIDE { 78 OVERRIDE {
79 return false; 79 return false;
80 } 80 }
81 virtual void DidFinishedRunningTasks() OVERRIDE { }
vmpstr 2013/06/24 19:16:46 nit: No space between {}, or a space between them
reveman 2013/06/24 21:08:33 Done.
82 virtual void DidFinishedRunningTasksRequiredForActivation() OVERRIDE {}
81 83
82 virtual void BeginTest() = 0; 84 virtual void BeginTest() = 0;
83 virtual void AfterTest() = 0; 85 virtual void AfterTest() = 0;
84 86
85 ResourceProvider* resource_provider() const { 87 ResourceProvider* resource_provider() const {
86 return resource_provider_.get(); 88 return resource_provider_.get();
87 } 89 }
88 90
89 RasterWorkerPool* worker_pool() { 91 RasterWorkerPool* worker_pool() {
90 return raster_worker_pool_.get(); 92 return raster_worker_pool_.get();
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 ASSERT_EQ(1u, tasks_.size()); 270 ASSERT_EQ(1u, tasks_.size());
269 tasks_.clear(); 271 tasks_.clear();
270 } 272 }
271 }; 273 };
272 274
273 PIXEL_BUFFER_AND_IMAGE_TEST_F(RasterWorkerPoolTestFailedMapResource); 275 PIXEL_BUFFER_AND_IMAGE_TEST_F(RasterWorkerPoolTestFailedMapResource);
274 276
275 } // namespace 277 } // namespace
276 278
277 } // namespace cc 279 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698