| OLD | NEW |
| 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 Loading... |
| 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 { } |
| 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 Loading... |
| 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 |
| OLD | NEW |