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

Side by Side Diff: cc/test/fake_tile_manager.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: add missing code 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
« cc/resources/tile_manager.cc ('K') | « cc/resources/tile_manager.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 "cc/resources/raster_worker_pool.h" 7 #include "cc/resources/raster_worker_pool.h"
8 8
9 namespace cc { 9 namespace cc {
10 10
11 namespace { 11 namespace {
12 12
13 class FakeRasterWorkerPool : public RasterWorkerPool { 13 class FakeRasterWorkerPool : public RasterWorkerPool {
14 public: 14 public:
15 FakeRasterWorkerPool() : RasterWorkerPool(NULL, 1) {} 15 FakeRasterWorkerPool() : RasterWorkerPool(NULL, 1) {}
16 16
17 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE {} 17 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE {}
18 virtual void OnRasterTasksFinished() OVERRIDE {}
19 virtual void OnRasterTasksRequiredForActivationFinished() OVERRIDE {}
18 }; 20 };
19 21
20 } // namespace 22 } // namespace
21 23
22 FakeTileManager::FakeTileManager(TileManagerClient* client) 24 FakeTileManager::FakeTileManager(TileManagerClient* client)
23 : TileManager(client, 25 : TileManager(client,
24 NULL, 26 NULL,
25 make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool), 27 make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool),
26 1, 28 1,
27 false, 29 false,
28 NULL, 30 NULL,
29 GL_RGBA) {} 31 GL_RGBA) {}
30 32
31 FakeTileManager::FakeTileManager(TileManagerClient* client, 33 FakeTileManager::FakeTileManager(TileManagerClient* client,
32 ResourceProvider* resource_provider) 34 ResourceProvider* resource_provider)
33 : TileManager(client, 35 : TileManager(client,
34 resource_provider, 36 resource_provider,
35 make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool), 37 make_scoped_ptr<RasterWorkerPool>(new FakeRasterWorkerPool),
36 1, 38 1,
37 false, 39 false,
38 NULL, 40 NULL,
39 resource_provider->best_texture_format()) {} 41 resource_provider->best_texture_format()) {}
40 } 42
43 } // namespace cc
OLDNEW
« cc/resources/tile_manager.cc ('K') | « cc/resources/tile_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698