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_RESOURCES_TILE_H_ | 5 #ifndef CC_RESOURCES_TILE_H_ |
6 #define CC_RESOURCES_TILE_H_ | 6 #define CC_RESOURCES_TILE_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 gfx::Rect content_rect, | 28 gfx::Rect content_rect, |
29 gfx::Rect opaque_rect, | 29 gfx::Rect opaque_rect, |
30 float contents_scale, | 30 float contents_scale, |
31 int layer_id, | 31 int layer_id, |
32 int source_frame_number); | 32 int source_frame_number); |
33 | 33 |
34 PicturePileImpl* picture_pile() { | 34 PicturePileImpl* picture_pile() { |
35 return picture_pile_.get(); | 35 return picture_pile_.get(); |
36 } | 36 } |
37 | 37 |
| 38 const PicturePileImpl* picture_pile() const { |
| 39 return picture_pile_.get(); |
| 40 } |
| 41 |
38 const TilePriority& priority(WhichTree tree) const { | 42 const TilePriority& priority(WhichTree tree) const { |
39 return priority_[tree]; | 43 return priority_[tree]; |
40 } | 44 } |
41 | 45 |
42 TilePriority combined_priority() const { | 46 TilePriority combined_priority() const { |
43 return TilePriority(priority_[ACTIVE_TREE], | 47 return TilePriority(priority_[ACTIVE_TREE], |
44 priority_[PENDING_TREE]); | 48 priority_[PENDING_TREE]); |
45 } | 49 } |
46 | 50 |
47 void SetPriority(WhichTree tree, const TilePriority& priority) { | 51 void SetPriority(WhichTree tree, const TilePriority& priority) { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 ManagedTileState managed_state_; | 121 ManagedTileState managed_state_; |
118 int layer_id_; | 122 int layer_id_; |
119 int source_frame_number_; | 123 int source_frame_number_; |
120 | 124 |
121 DISALLOW_COPY_AND_ASSIGN(Tile); | 125 DISALLOW_COPY_AND_ASSIGN(Tile); |
122 }; | 126 }; |
123 | 127 |
124 } // namespace cc | 128 } // namespace cc |
125 | 129 |
126 #endif // CC_RESOURCES_TILE_H_ | 130 #endif // CC_RESOURCES_TILE_H_ |
OLD | NEW |