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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
167 float contents_scale, | 167 float contents_scale, |
168 int layer_id, | 168 int layer_id, |
169 int source_frame_number, | 169 int source_frame_number, |
170 int flags); | 170 int flags); |
171 ~Tile(); | 171 ~Tile(); |
172 | 172 |
173 ManagedTileState& managed_state() { return managed_state_; } | 173 ManagedTileState& managed_state() { return managed_state_; } |
174 const ManagedTileState& managed_state() const { return managed_state_; } | 174 const ManagedTileState& managed_state() const { return managed_state_; } |
175 RasterMode DetermineRasterModeForResolution(TileResolution resolution) const; | 175 RasterMode DetermineRasterModeForResolution(TileResolution resolution) const; |
176 | 176 |
177 bool HasRasterTask(); | |
reveman
2014/07/21 12:54:26
I still like this 'const'
sohanjg
2014/07/21 14:43:12
Done.
| |
178 | |
177 TileManager* tile_manager_; | 179 TileManager* tile_manager_; |
178 scoped_refptr<PicturePileImpl> picture_pile_; | 180 scoped_refptr<PicturePileImpl> picture_pile_; |
179 gfx::Rect tile_size_; | 181 gfx::Rect tile_size_; |
180 gfx::Rect content_rect_; | 182 gfx::Rect content_rect_; |
181 float contents_scale_; | 183 float contents_scale_; |
182 gfx::Rect opaque_rect_; | 184 gfx::Rect opaque_rect_; |
183 bool is_occluded_[NUM_TREES]; | 185 bool is_occluded_[NUM_TREES]; |
184 | 186 |
185 TilePriority priority_[NUM_TREES]; | 187 TilePriority priority_[NUM_TREES]; |
186 ManagedTileState managed_state_; | 188 ManagedTileState managed_state_; |
187 int layer_id_; | 189 int layer_id_; |
188 int source_frame_number_; | 190 int source_frame_number_; |
189 int flags_; | 191 int flags_; |
190 | 192 |
191 Id id_; | 193 Id id_; |
192 static Id s_next_id_; | 194 static Id s_next_id_; |
193 | 195 |
194 DISALLOW_COPY_AND_ASSIGN(Tile); | 196 DISALLOW_COPY_AND_ASSIGN(Tile); |
195 }; | 197 }; |
196 | 198 |
197 } // namespace cc | 199 } // namespace cc |
198 | 200 |
199 #endif // CC_RESOURCES_TILE_H_ | 201 #endif // CC_RESOURCES_TILE_H_ |
OLD | NEW |