| OLD | NEW |
| 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/tile_manager.h" | 10 #include "cc/resources/tile_manager.h" |
| 11 #include "cc/resources/tile_priority_queue.h" |
| 11 | 12 |
| 12 namespace cc { | 13 namespace cc { |
| 13 | 14 |
| 14 class FakeTileManagerClient : public TileManagerClient { | 15 class FakeTileManagerClient : public TileManagerClient { |
| 15 public: | 16 public: |
| 16 FakeTileManagerClient(); | 17 FakeTileManagerClient(); |
| 17 virtual ~FakeTileManagerClient(); | 18 virtual ~FakeTileManagerClient(); |
| 18 | 19 |
| 19 // TileManagerClient implementation. | 20 // TileManagerClient implementation. |
| 20 virtual const std::vector<PictureLayerImpl*>& GetPictureLayers() OVERRIDE; | 21 virtual const std::vector<PictureLayerImpl*>& GetPictureLayers() |
| 22 const OVERRIDE; |
| 21 virtual void NotifyReadyToActivate() OVERRIDE {} | 23 virtual void NotifyReadyToActivate() OVERRIDE {} |
| 22 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE {} | 24 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE {} |
| 25 virtual RasterTileQueue* GetRasterQueue(TreePriority tree_priority) OVERRIDE; |
| 26 virtual EvictionTileQueue* GetEvictionQueue( |
| 27 TreePriority tree_priority) OVERRIDE; |
| 23 | 28 |
| 24 private: | 29 private: |
| 25 std::vector<PictureLayerImpl*> picture_layers_; | 30 std::vector<PictureLayerImpl*> picture_layers_; |
| 31 RasterTileQueue raster_queue_; |
| 32 EvictionTileQueue eviction_queue_; |
| 26 }; | 33 }; |
| 27 | 34 |
| 28 } // namespace cc | 35 } // namespace cc |
| 29 | 36 |
| 30 #endif // CC_TEST_FAKE_TILE_MANAGER_CLIENT_H_ | 37 #endif // CC_TEST_FAKE_TILE_MANAGER_CLIENT_H_ |
| OLD | NEW |