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 #include "cc/test/fake_picture_layer_tiling_client.h" | 5 #include "cc/test/fake_picture_layer_tiling_client.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 namespace cc { | 9 namespace cc { |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 gfx::Rect(), | 48 gfx::Rect(), |
49 1, | 49 1, |
50 0)); | 50 0)); |
51 } | 51 } |
52 | 52 |
53 void FakePictureLayerTilingClient::SetTileSize(gfx::Size tile_size) { | 53 void FakePictureLayerTilingClient::SetTileSize(gfx::Size tile_size) { |
54 tile_size_ = tile_size; | 54 tile_size_ = tile_size; |
55 } | 55 } |
56 | 56 |
57 gfx::Size FakePictureLayerTilingClient::CalculateTileSize( | 57 gfx::Size FakePictureLayerTilingClient::CalculateTileSize( |
58 gfx::Size /* current_tile_size */, | |
59 gfx::Size /* content_bounds */) { | 58 gfx::Size /* content_bounds */) { |
60 return tile_size_; | 59 return tile_size_; |
61 } | 60 } |
62 | 61 |
| 62 const Region* FakePictureLayerTilingClient::GetInvalidation() { |
| 63 return NULL; |
| 64 } |
| 65 |
| 66 const PictureLayerTiling* FakePictureLayerTilingClient::GetTwinTiling( |
| 67 const PictureLayerTiling* tiling) { |
| 68 return NULL; |
| 69 } |
| 70 |
63 } // namespace cc | 71 } // namespace cc |
OLD | NEW |