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 {} | |
40 | 39 |
41 void set_twin_tiling_set(PictureLayerTilingSet* set) { | 40 void set_twin_tiling_set(PictureLayerTilingSet* set) { |
42 twin_set_ = set; | 41 twin_set_ = set; |
43 twin_tiling_ = nullptr; | 42 twin_tiling_ = nullptr; |
44 } | 43 } |
45 void set_twin_tiling(PictureLayerTiling* tiling) { | 44 void set_twin_tiling(PictureLayerTiling* tiling) { |
46 twin_tiling_ = tiling; | 45 twin_tiling_ = tiling; |
47 twin_set_ = nullptr; | 46 twin_set_ = nullptr; |
48 } | 47 } |
49 void set_recycled_twin_tiling(PictureLayerTiling* tiling) { | 48 void set_recycled_twin_tiling(PictureLayerTiling* tiling) { |
(...skipping 22 matching lines...) Expand all Loading... |
72 PictureLayerTiling* recycled_twin_tiling_; | 71 PictureLayerTiling* recycled_twin_tiling_; |
73 gfx::Rect text_rect_; | 72 gfx::Rect text_rect_; |
74 Region invalidation_; | 73 Region invalidation_; |
75 TilePriority::PriorityBin max_tile_priority_bin_; | 74 TilePriority::PriorityBin max_tile_priority_bin_; |
76 WhichTree tree_; | 75 WhichTree tree_; |
77 }; | 76 }; |
78 | 77 |
79 } // namespace cc | 78 } // namespace cc |
80 | 79 |
81 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ | 80 #endif // CC_TEST_FAKE_PICTURE_LAYER_TILING_CLIENT_H_ |
OLD | NEW |