| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 float FakePictureLayerTilingClient::GetSkewportTargetTimeInSeconds() const { | 67 float FakePictureLayerTilingClient::GetSkewportTargetTimeInSeconds() const { |
| 68 return skewport_target_time_in_seconds_; | 68 return skewport_target_time_in_seconds_; |
| 69 } | 69 } |
| 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::GetInvalidation() { |
| 77 return &invalidation_; | 77 return &invalidation_; |
| 78 } | 78 } |
| 79 | 79 |
| 80 const PictureLayerTiling* | 80 const PictureLayerTiling* FakePictureLayerTilingClient::GetTwinTiling( |
| 81 FakePictureLayerTilingClient::GetPendingOrActiveTwinTiling( | 81 const PictureLayerTiling* tiling) const { |
| 82 const PictureLayerTiling* tiling) const { | |
| 83 return twin_tiling_; | 82 return twin_tiling_; |
| 84 } | 83 } |
| 85 | 84 |
| 86 PictureLayerTiling* FakePictureLayerTilingClient::GetRecycledTwinTiling( | 85 PictureLayerTiling* FakePictureLayerTilingClient::GetRecycledTwinTiling( |
| 87 const PictureLayerTiling* tiling) { | 86 const PictureLayerTiling* tiling) { |
| 88 return recycled_twin_tiling_; | 87 return recycled_twin_tiling_; |
| 89 } | 88 } |
| 90 | 89 |
| 91 WhichTree FakePictureLayerTilingClient::GetTree() const { | 90 WhichTree FakePictureLayerTilingClient::GetTree() const { |
| 92 return tree_; | 91 return tree_; |
| 93 } | 92 } |
| 94 | 93 |
| 95 bool FakePictureLayerTilingClient::RequiresHighResToDraw() const { | 94 bool FakePictureLayerTilingClient::RequiresHighResToDraw() const { |
| 96 return false; | 95 return false; |
| 97 } | 96 } |
| 98 | 97 |
| 99 } // namespace cc | 98 } // namespace cc |
| OLD | NEW |