| 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 16 matching lines...) Expand all Loading... |
| 27 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; | 27 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; |
| 28 size_t GetMaxTilesForInterestArea() const override; | 28 size_t GetMaxTilesForInterestArea() const override; |
| 29 float GetSkewportTargetTimeInSeconds() const override; | 29 float GetSkewportTargetTimeInSeconds() const override; |
| 30 int GetSkewportExtrapolationLimitInContentPixels() const override; | 30 int GetSkewportExtrapolationLimitInContentPixels() const override; |
| 31 bool RequiresHighResToDraw() const override; | 31 bool RequiresHighResToDraw() const override; |
| 32 | 32 |
| 33 void SetTileSize(const gfx::Size& tile_size); | 33 void SetTileSize(const gfx::Size& tile_size); |
| 34 gfx::Size TileSize() const { return tile_size_; } | 34 gfx::Size TileSize() const { return tile_size_; } |
| 35 | 35 |
| 36 const Region* GetPendingInvalidation() override; | 36 const Region* GetPendingInvalidation() override; |
| 37 const PictureLayerTiling* GetTwinTiling( | 37 const PictureLayerTiling* GetPendingOrActiveTwinTiling( |
| 38 const PictureLayerTiling* tiling) const override; | 38 const PictureLayerTiling* tiling) const override; |
| 39 PictureLayerTiling* GetRecycledTwinTiling( | 39 PictureLayerTiling* GetRecycledTwinTiling( |
| 40 const PictureLayerTiling* tiling) override; | 40 const PictureLayerTiling* tiling) override; |
| 41 WhichTree GetTree() const override; | 41 WhichTree GetTree() const override; |
| 42 | 42 |
| 43 void set_twin_tiling(PictureLayerTiling* tiling) { twin_tiling_ = tiling; } | 43 void set_twin_tiling(PictureLayerTiling* tiling) { twin_tiling_ = tiling; } |
| 44 void set_recycled_twin_tiling(PictureLayerTiling* tiling) { | 44 void set_recycled_twin_tiling(PictureLayerTiling* tiling) { |
| 45 recycled_twin_tiling_ = tiling; | 45 recycled_twin_tiling_ = tiling; |
| 46 } | 46 } |
| 47 void set_text_rect(const gfx::Rect& rect) { text_rect_ = rect; } | 47 void set_text_rect(const gfx::Rect& rect) { text_rect_ = rect; } |
| (...skipping 27 matching lines...) Expand all Loading... |
| 75 Region invalidation_; | 75 Region invalidation_; |
| 76 size_t max_tiles_for_interest_area_; | 76 size_t max_tiles_for_interest_area_; |
| 77 float skewport_target_time_in_seconds_; | 77 float skewport_target_time_in_seconds_; |
| 78 int skewport_extrapolation_limit_in_content_pixels_; | 78 int skewport_extrapolation_limit_in_content_pixels_; |
| 79 WhichTree tree_; | 79 WhichTree tree_; |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // namespace cc | 82 } // namespace cc |
| 83 | 83 |
| 84 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ | 84 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ |
| OLD | NEW |