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