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> |
| 9 |
8 #include "cc/resources/tile_manager.h" | 10 #include "cc/resources/tile_manager.h" |
9 | 11 |
10 namespace cc { | 12 namespace cc { |
11 | 13 |
12 class FakeTileManagerClient : public TileManagerClient { | 14 class FakeTileManagerClient : public TileManagerClient { |
13 public: | 15 public: |
14 virtual ~FakeTileManagerClient() {} | 16 FakeTileManagerClient(); |
| 17 virtual ~FakeTileManagerClient(); |
15 | 18 |
16 // TileManagerClient implementation. | 19 // TileManagerClient implementation. |
| 20 virtual const std::vector<PictureLayerImpl*>& GetPictureLayers() OVERRIDE; |
17 virtual void NotifyReadyToActivate() OVERRIDE {} | 21 virtual void NotifyReadyToActivate() OVERRIDE {} |
18 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE {} | 22 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE {} |
| 23 |
| 24 private: |
| 25 std::vector<PictureLayerImpl*> picture_layers_; |
19 }; | 26 }; |
20 | 27 |
21 } // namespace cc | 28 } // namespace cc |
22 | 29 |
23 #endif // CC_TEST_FAKE_TILE_MANAGER_CLIENT_H_ | 30 #endif // CC_TEST_FAKE_TILE_MANAGER_CLIENT_H_ |
OLD | NEW |