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

Side by Side Diff: cc/test/fake_tile_manager.cc

Issue 168083002: cc: Remove RasterWorkerPool::Task. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RasterTaskQueue::Task -> RasterTaskQueue::Item Created 6 years, 10 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/test/fake_tile_manager.h" 5 #include "cc/test/fake_tile_manager.h"
6 6
7 #include <deque> 7 #include <deque>
8 #include <limits> 8 #include <limits>
9 9
10 #include "cc/resources/raster_worker_pool.h" 10 #include "cc/resources/raster_worker_pool.h"
11 11
12 namespace cc { 12 namespace cc {
13 13
14 namespace { 14 namespace {
15 15
16 class FakeRasterWorkerPool : public RasterWorkerPool { 16 class FakeRasterWorkerPool : public RasterWorkerPool {
17 public: 17 public:
18 FakeRasterWorkerPool() : RasterWorkerPool(NULL, NULL) {} 18 FakeRasterWorkerPool() : RasterWorkerPool(NULL, NULL) {}
19 19
20 // Overridden from RasterWorkerPool: 20 // Overridden from RasterWorkerPool:
21 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE { 21 virtual void ScheduleTasks(RasterTaskQueue* queue) OVERRIDE {
22 for (RasterTaskQueueIterator it(queue); it; ++it) { 22 for (RasterTaskQueueIterator it(queue); it; ++it) {
23 internal::RasterWorkerPoolTask* task = *it; 23 internal::RasterWorkerPoolTask* task = *it;
24 24
25 task->DidSchedule(); 25 task->DidSchedule();
26 26
27 completed_tasks_.push_back(task); 27 completed_tasks_.push_back(task);
28 } 28 }
29 } 29 }
30 virtual void CheckForCompletedTasks() OVERRIDE { 30 virtual void CheckForCompletedTasks() OVERRIDE {
31 while (!completed_tasks_.empty()) { 31 while (!completed_tasks_.empty()) {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 void FakeTileManager::DidFinishRunningTasksForTesting() { 132 void FakeTileManager::DidFinishRunningTasksForTesting() {
133 DidFinishRunningTasks(); 133 DidFinishRunningTasks();
134 } 134 }
135 135
136 void FakeTileManager::Release(Tile* tile) { 136 void FakeTileManager::Release(Tile* tile) {
137 TileManager::Release(tile); 137 TileManager::Release(tile);
138 CleanUpReleasedTiles(); 138 CleanUpReleasedTiles();
139 } 139 }
140 140
141 } // namespace cc 141 } // namespace cc
OLDNEW
« cc/resources/raster_worker_pool.h ('K') | « cc/resources/tile_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698