| 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 | 11 |
| 12 namespace cc { | 12 namespace cc { |
| 13 | 13 |
| 14 class FakeTileManagerClient : public TileManagerClient { | 14 class FakeTileManagerClient : public TileManagerClient { |
| 15 public: | 15 public: |
| 16 FakeTileManagerClient(); | 16 FakeTileManagerClient(); |
| 17 ~FakeTileManagerClient() override; | 17 ~FakeTileManagerClient() override; |
| 18 | 18 |
| 19 // TileManagerClient implementation. | 19 // TileManagerClient implementation. |
| 20 const std::vector<PictureLayerImpl*>& GetPictureLayers() const override; | 20 const std::vector<PictureLayerImpl*>& GetPictureLayers() const override; |
| 21 void NotifyReadyToActivate() override {} | 21 void NotifyReadyToActivate() override {} |
| 22 void NotifyReadyToDraw() override {} |
| 22 void NotifyTileStateChanged(const Tile* tile) override {} | 23 void NotifyTileStateChanged(const Tile* tile) override {} |
| 23 void BuildRasterQueue(RasterTilePriorityQueue* queue, | 24 void BuildRasterQueue(RasterTilePriorityQueue* queue, |
| 24 TreePriority tree_priority) override {} | 25 TreePriority tree_priority) override {} |
| 25 void BuildEvictionQueue(EvictionTilePriorityQueue* queue, | 26 void BuildEvictionQueue(EvictionTilePriorityQueue* queue, |
| 26 TreePriority tree_priority) override {} | 27 TreePriority tree_priority) override {} |
| 27 | 28 |
| 28 private: | 29 private: |
| 29 std::vector<PictureLayerImpl*> picture_layers_; | 30 std::vector<PictureLayerImpl*> picture_layers_; |
| 30 }; | 31 }; |
| 31 | 32 |
| 32 } // namespace cc | 33 } // namespace cc |
| 33 | 34 |
| 34 #endif // CC_TEST_FAKE_TILE_MANAGER_CLIENT_H_ | 35 #endif // CC_TEST_FAKE_TILE_MANAGER_CLIENT_H_ |
| OLD | NEW |