| 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_PICTURE_LAYER_TILING_CLIENT_H_ | 5 #ifndef CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ |
| 6 #define CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ | 6 #define CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ |
| 7 | 7 |
| 8 #include "cc/resources/picture_layer_tiling.h" | 8 #include "cc/resources/picture_layer_tiling.h" |
| 9 #include "cc/resources/picture_pile_impl.h" | 9 #include "cc/resources/picture_pile_impl.h" |
| 10 #include "cc/resources/tile.h" | 10 #include "cc/resources/tile.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 PictureLayerTiling* tiling, gfx::Rect rect) OVERRIDE; | 24 PictureLayerTiling* tiling, gfx::Rect rect) OVERRIDE; |
| 25 virtual void UpdatePile(Tile* tile) OVERRIDE {} | 25 virtual void UpdatePile(Tile* tile) OVERRIDE {} |
| 26 virtual gfx::Size CalculateTileSize( | 26 virtual gfx::Size CalculateTileSize( |
| 27 gfx::Size current_tile_size, | 27 gfx::Size current_tile_size, |
| 28 gfx::Size content_bounds) OVERRIDE; | 28 gfx::Size content_bounds) OVERRIDE; |
| 29 | 29 |
| 30 void SetTileSize(gfx::Size tile_size); | 30 void SetTileSize(gfx::Size tile_size); |
| 31 gfx::Size TileSize() const { return tile_size_; } | 31 gfx::Size TileSize() const { return tile_size_; } |
| 32 | 32 |
| 33 protected: | 33 protected: |
| 34 scoped_ptr<RenderingStatsInstrumentation> rendering_stats_instrumentation_; |
| 34 FakeTileManagerClient tile_manager_client_; | 35 FakeTileManagerClient tile_manager_client_; |
| 35 TileManager tile_manager_; | 36 TileManager tile_manager_; |
| 36 scoped_refptr<PicturePileImpl> pile_; | 37 scoped_refptr<PicturePileImpl> pile_; |
| 37 gfx::Size tile_size_; | 38 gfx::Size tile_size_; |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 } // namespace cc | 41 } // namespace cc |
| 41 | 42 |
| 42 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ | 43 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ |
| OLD | NEW |