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 #include "cc/test/fake_picture_pile_impl.h" | 9 #include "cc/test/fake_picture_pile_impl.h" |
10 #include "cc/test/fake_tile_manager.h" | 10 #include "cc/test/fake_tile_manager.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 int FakePictureLayerTilingClient::GetSkewportExtrapolationLimitInContentPixels() | 71 int FakePictureLayerTilingClient::GetSkewportExtrapolationLimitInContentPixels() |
72 const { | 72 const { |
73 return skewport_extrapolation_limit_in_content_pixels_; | 73 return skewport_extrapolation_limit_in_content_pixels_; |
74 } | 74 } |
75 | 75 |
76 const Region* FakePictureLayerTilingClient::GetPendingInvalidation() { | 76 const Region* FakePictureLayerTilingClient::GetPendingInvalidation() { |
77 return &invalidation_; | 77 return &invalidation_; |
78 } | 78 } |
79 | 79 |
80 const PictureLayerTiling* FakePictureLayerTilingClient::GetTwinTiling( | 80 const PictureLayerTiling* |
81 const PictureLayerTiling* tiling) const { | 81 FakePictureLayerTilingClient::GetPendingOrActiveTwinTiling( |
| 82 const PictureLayerTiling* tiling) const { |
82 return twin_tiling_; | 83 return twin_tiling_; |
83 } | 84 } |
84 | 85 |
85 PictureLayerTiling* FakePictureLayerTilingClient::GetRecycledTwinTiling( | 86 PictureLayerTiling* FakePictureLayerTilingClient::GetRecycledTwinTiling( |
86 const PictureLayerTiling* tiling) { | 87 const PictureLayerTiling* tiling) { |
87 return recycled_twin_tiling_; | 88 return recycled_twin_tiling_; |
88 } | 89 } |
89 | 90 |
90 WhichTree FakePictureLayerTilingClient::GetTree() const { | 91 WhichTree FakePictureLayerTilingClient::GetTree() const { |
91 return tree_; | 92 return tree_; |
92 } | 93 } |
93 | 94 |
94 bool FakePictureLayerTilingClient::RequiresHighResToDraw() const { | 95 bool FakePictureLayerTilingClient::RequiresHighResToDraw() const { |
95 return false; | 96 return false; |
96 } | 97 } |
97 | 98 |
98 } // namespace cc | 99 } // namespace cc |
OLD | NEW |