| 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 "cc/base/ref_counted_managed.h" | 9 #include "cc/base/ref_counted_managed.h" |
| 10 #include "cc/resources/raster_source.h" | 10 #include "cc/resources/raster_source.h" |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 const gfx::Size& tile_size, | 149 const gfx::Size& tile_size, |
| 150 const gfx::Rect& content_rect, | 150 const gfx::Rect& content_rect, |
| 151 float contents_scale, | 151 float contents_scale, |
| 152 int layer_id, | 152 int layer_id, |
| 153 int source_frame_number, | 153 int source_frame_number, |
| 154 int flags); | 154 int flags); |
| 155 ~Tile(); | 155 ~Tile(); |
| 156 | 156 |
| 157 bool HasRasterTask() const { return !!raster_task_.get(); } | 157 bool HasRasterTask() const { return !!raster_task_.get(); } |
| 158 | 158 |
| 159 TileManager* tile_manager_; | |
| 160 scoped_refptr<RasterSource> raster_source_; | 159 scoped_refptr<RasterSource> raster_source_; |
| 161 gfx::Size size_; | 160 gfx::Size size_; |
| 162 gfx::Rect content_rect_; | 161 gfx::Rect content_rect_; |
| 163 float contents_scale_; | 162 float contents_scale_; |
| 164 bool is_occluded_[NUM_TREES]; | 163 bool is_occluded_[NUM_TREES]; |
| 165 | 164 |
| 166 TilePriority priority_[NUM_TREES]; | 165 TilePriority priority_[NUM_TREES]; |
| 167 TileDrawInfo draw_info_; | 166 TileDrawInfo draw_info_; |
| 168 | 167 |
| 169 int layer_id_; | 168 int layer_id_; |
| 170 int source_frame_number_; | 169 int source_frame_number_; |
| 171 int flags_; | 170 int flags_; |
| 172 bool is_shared_; | |
| 173 int tiling_i_index_; | 171 int tiling_i_index_; |
| 174 int tiling_j_index_; | 172 int tiling_j_index_; |
| 175 bool required_for_activation_; | 173 bool is_shared_ : 1; |
| 176 bool required_for_draw_; | 174 bool required_for_activation_ : 1; |
| 175 bool required_for_draw_ : 1; |
| 177 | 176 |
| 178 Id id_; | 177 Id id_; |
| 179 static Id s_next_id_; | 178 static Id s_next_id_; |
| 180 | 179 |
| 181 unsigned scheduled_priority_; | 180 unsigned scheduled_priority_; |
| 182 | 181 |
| 183 scoped_refptr<RasterTask> raster_task_; | 182 scoped_refptr<RasterTask> raster_task_; |
| 184 | 183 |
| 185 DISALLOW_COPY_AND_ASSIGN(Tile); | 184 DISALLOW_COPY_AND_ASSIGN(Tile); |
| 186 }; | 185 }; |
| 187 | 186 |
| 188 } // namespace cc | 187 } // namespace cc |
| 189 | 188 |
| 190 #endif // CC_RESOURCES_TILE_H_ | 189 #endif // CC_RESOURCES_TILE_H_ |
| OLD | NEW |