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

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

Issue 18581004: cc: Remove tile ref counting in tile manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed small helper functions Created 7 years, 5 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 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 #ifndef CC_TEST_FAKE_TILE_MANAGER_H_ 5 #ifndef CC_TEST_FAKE_TILE_MANAGER_H_
6 #define CC_TEST_FAKE_TILE_MANAGER_H_ 6 #define CC_TEST_FAKE_TILE_MANAGER_H_
7 7
8 #include <set>
9 #include <vector>
10
8 #include "cc/resources/tile_manager.h" 11 #include "cc/resources/tile_manager.h"
9 12
10 namespace cc { 13 namespace cc {
11 14
12 class FakeTileManager : public TileManager { 15 class FakeTileManager : public TileManager {
13 public: 16 public:
14 explicit FakeTileManager(TileManagerClient* client); 17 explicit FakeTileManager(TileManagerClient* client);
15 FakeTileManager(TileManagerClient* client, 18 FakeTileManager(TileManagerClient* client,
16 ResourceProvider* resource_provider); 19 ResourceProvider* resource_provider);
17 20
18 virtual void ScheduleTasks() OVERRIDE {} 21 virtual void ScheduleTasks() OVERRIDE {}
19 22
20 void ReassignMemoryToOOMTilesRequiredForActivation(); 23 void ReassignMemoryToOOMTilesRequiredForActivation();
21 bool HasBeenAssignedMemory(Tile* tile); 24 bool HasBeenAssignedMemory(Tile* tile);
25 void AssignMemoryToTiles();
22 26
23 virtual ~FakeTileManager() { } 27 virtual ~FakeTileManager() { }
28
29 std::vector<Tile*> tiles_for_raster;
30 std::vector<scoped_refptr<Tile> > all_tiles;
31 std::set<Tile*> oom_tiles_required_for_activation;
24 }; 32 };
25 33
26 } // namespace cc 34 } // namespace cc
27 35
28 #endif // CC_TEST_FAKE_TILE_MANAGER_H_ 36 #endif // CC_TEST_FAKE_TILE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698