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 18 matching lines...) Expand all Loading... |
29 void SetTileSize(const gfx::Size& tile_size); | 29 void SetTileSize(const gfx::Size& tile_size); |
30 gfx::Size TileSize() const { return tile_size_; } | 30 gfx::Size TileSize() const { return tile_size_; } |
31 | 31 |
32 const Region* GetPendingInvalidation() override; | 32 const Region* GetPendingInvalidation() override; |
33 const PictureLayerTiling* GetPendingOrActiveTwinTiling( | 33 const PictureLayerTiling* GetPendingOrActiveTwinTiling( |
34 const PictureLayerTiling* tiling) const override; | 34 const PictureLayerTiling* tiling) const override; |
35 PictureLayerTiling* GetRecycledTwinTiling( | 35 PictureLayerTiling* GetRecycledTwinTiling( |
36 const PictureLayerTiling* tiling) override; | 36 const PictureLayerTiling* tiling) override; |
37 bool RequiresHighResToDraw() const override; | 37 bool RequiresHighResToDraw() const override; |
38 WhichTree GetTree() const override; | 38 WhichTree GetTree() const override; |
| 39 void TilingLiveRectChanged() override {} |
39 | 40 |
40 void set_twin_tiling_set(PictureLayerTilingSet* set) { | 41 void set_twin_tiling_set(PictureLayerTilingSet* set) { |
41 twin_set_ = set; | 42 twin_set_ = set; |
42 twin_tiling_ = nullptr; | 43 twin_tiling_ = nullptr; |
43 } | 44 } |
44 void set_twin_tiling(PictureLayerTiling* tiling) { | 45 void set_twin_tiling(PictureLayerTiling* tiling) { |
45 twin_tiling_ = tiling; | 46 twin_tiling_ = tiling; |
46 twin_set_ = nullptr; | 47 twin_set_ = nullptr; |
47 } | 48 } |
48 void set_recycled_twin_tiling(PictureLayerTiling* tiling) { | 49 void set_recycled_twin_tiling(PictureLayerTiling* tiling) { |
(...skipping 22 matching lines...) Expand all Loading... |
71 PictureLayerTiling* recycled_twin_tiling_; | 72 PictureLayerTiling* recycled_twin_tiling_; |
72 gfx::Rect text_rect_; | 73 gfx::Rect text_rect_; |
73 Region invalidation_; | 74 Region invalidation_; |
74 TilePriority::PriorityBin max_tile_priority_bin_; | 75 TilePriority::PriorityBin max_tile_priority_bin_; |
75 WhichTree tree_; | 76 WhichTree tree_; |
76 }; | 77 }; |
77 | 78 |
78 } // namespace cc | 79 } // namespace cc |
79 | 80 |
80 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ | 81 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ |
OLD | NEW |