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

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

Issue 140333006: cc: Move internal::Task::did_schedule_ to internal::WorkerPoolTask. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix cc_unittests 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
« no previous file with comments | « cc/resources/task_graph_runner_perftest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 internal::WorkerPoolTaskClient {
18 public: 17 public:
19 FakeRasterWorkerPool() : RasterWorkerPool(NULL, NULL) {} 18 FakeRasterWorkerPool() : RasterWorkerPool(NULL, NULL) {}
20 19
21 // Overridden from RasterWorkerPool: 20 // Overridden from RasterWorkerPool:
22 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE { 21 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE {
23 RasterWorkerPool::SetRasterTasks(queue); 22 RasterWorkerPool::SetRasterTasks(queue);
24 for (RasterTaskVector::const_iterator it = raster_tasks().begin(); 23 for (RasterTaskVector::const_iterator it = raster_tasks().begin();
25 it != raster_tasks().end(); ++it) { 24 it != raster_tasks().end(); ++it) {
26 internal::WorkerPoolTask* task = it->get(); 25 internal::WorkerPoolTask* task = it->get();
27 26
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void FakeTileManager::CheckForCompletedTasks() { 116 void FakeTileManager::CheckForCompletedTasks() {
118 RasterWorkerPoolForTesting()->CheckForCompletedTasks(); 117 RasterWorkerPoolForTesting()->CheckForCompletedTasks();
119 } 118 }
120 119
121 void FakeTileManager::Release(Tile* tile) { 120 void FakeTileManager::Release(Tile* tile) {
122 TileManager::Release(tile); 121 TileManager::Release(tile);
123 CleanUpReleasedTiles(); 122 CleanUpReleasedTiles();
124 } 123 }
125 124
126 } // namespace cc 125 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/task_graph_runner_perftest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698