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

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

Issue 367833003: cc: Start using raster/eviction iterators. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 6 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 | 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 #ifndef CC_TEST_FAKE_TILE_MANAGER_CLIENT_H_ 5 #ifndef CC_TEST_FAKE_TILE_MANAGER_CLIENT_H_
6 #define CC_TEST_FAKE_TILE_MANAGER_CLIENT_H_ 6 #define CC_TEST_FAKE_TILE_MANAGER_CLIENT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "cc/resources/eviction_tile_priority_queue.h"
11 #include "cc/resources/raster_tile_priority_queue.h"
10 #include "cc/resources/tile_manager.h" 12 #include "cc/resources/tile_manager.h"
13 #include "cc/resources/tile_priority_queue.h"
11 14
12 namespace cc { 15 namespace cc {
13 16
14 class FakeTileManagerClient : public TileManagerClient { 17 class FakeTileManagerClient : public TileManagerClient {
15 public: 18 public:
16 FakeTileManagerClient(); 19 FakeTileManagerClient();
17 virtual ~FakeTileManagerClient(); 20 virtual ~FakeTileManagerClient();
18 21
19 // TileManagerClient implementation. 22 // TileManagerClient implementation.
20 virtual const std::vector<PictureLayerImpl*>& GetPictureLayers() OVERRIDE; 23 virtual const std::vector<PictureLayerImpl*>& GetPictureLayers()
24 const OVERRIDE;
21 virtual void NotifyReadyToActivate() OVERRIDE {} 25 virtual void NotifyReadyToActivate() OVERRIDE {}
22 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE {} 26 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE {}
27 virtual void BuildRasterQueue(RasterTilePriorityQueue* queue,
28 TreePriority tree_priority) OVERRIDE;
29 virtual void BuildEvictionQueue(EvictionTilePriorityQueue* queue,
30 TreePriority tree_priority) OVERRIDE;
23 31
24 private: 32 private:
25 std::vector<PictureLayerImpl*> picture_layers_; 33 std::vector<PictureLayerImpl*> picture_layers_;
26 }; 34 };
27 35
28 } // namespace cc 36 } // namespace cc
29 37
30 #endif // CC_TEST_FAKE_TILE_MANAGER_CLIENT_H_ 38 #endif // CC_TEST_FAKE_TILE_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698