Chromium Code Reviews| 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 14 matching lines...) Expand all Loading... | |
| 25 Tile(TileManager* tile_manager, | 25 Tile(TileManager* tile_manager, |
| 26 PicturePileImpl* picture_pile, | 26 PicturePileImpl* picture_pile, |
| 27 gfx::Size tile_size, | 27 gfx::Size tile_size, |
| 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 bool can_use_lcd_text); | 33 bool can_use_lcd_text); |
| 34 | 34 |
| 35 uint64 id() const { | |
| 36 return id_; | |
| 37 } | |
| 38 | |
| 35 PicturePileImpl* picture_pile() { | 39 PicturePileImpl* picture_pile() { |
| 36 return picture_pile_.get(); | 40 return picture_pile_.get(); |
| 37 } | 41 } |
| 38 | 42 |
| 39 const PicturePileImpl* picture_pile() const { | 43 const PicturePileImpl* picture_pile() const { |
| 40 return picture_pile_.get(); | 44 return picture_pile_.get(); |
| 41 } | 45 } |
| 42 | 46 |
| 43 const TilePriority& priority(WhichTree tree) const { | 47 const TilePriority& priority(WhichTree tree) const { |
| 44 return priority_[tree]; | 48 return priority_[tree]; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 143 scoped_refptr<PicturePileImpl> picture_pile_; | 147 scoped_refptr<PicturePileImpl> picture_pile_; |
| 144 gfx::Rect tile_size_; | 148 gfx::Rect tile_size_; |
| 145 gfx::Rect content_rect_; | 149 gfx::Rect content_rect_; |
| 146 float contents_scale_; | 150 float contents_scale_; |
| 147 gfx::Rect opaque_rect_; | 151 gfx::Rect opaque_rect_; |
| 148 | 152 |
| 149 TilePriority priority_[NUM_BIN_PRIORITIES]; | 153 TilePriority priority_[NUM_BIN_PRIORITIES]; |
| 150 ManagedTileState managed_state_; | 154 ManagedTileState managed_state_; |
| 151 int layer_id_; | 155 int layer_id_; |
| 152 int source_frame_number_; | 156 int source_frame_number_; |
| 153 bool can_use_lcd_text_; | 157 bool can_use_lcd_text_; |
|
reveman
2013/07/03 00:32:47
nit: maybe a blank line here.
vmpstr
2013/07/03 19:08:04
Done.
| |
| 158 uint64 id_; | |
| 159 static uint64 s_next_id_; | |
| 154 | 160 |
| 155 DISALLOW_COPY_AND_ASSIGN(Tile); | 161 DISALLOW_COPY_AND_ASSIGN(Tile); |
| 156 }; | 162 }; |
| 157 | 163 |
| 158 } // namespace cc | 164 } // namespace cc |
| 159 | 165 |
| 160 #endif // CC_RESOURCES_TILE_H_ | 166 #endif // CC_RESOURCES_TILE_H_ |
| OLD | NEW |