| 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_TILES_TILE_H_ | 5 #ifndef CC_TILES_TILE_H_ |
| 6 #define CC_TILES_TILE_H_ | 6 #define CC_TILES_TILE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 bool HasRasterTask() const { return !!raster_task_.get(); } | 107 bool HasRasterTask() const { return !!raster_task_.get(); } |
| 108 | 108 |
| 109 void set_solid_color_analysis_performed(bool performed) { | 109 void set_solid_color_analysis_performed(bool performed) { |
| 110 is_solid_color_analysis_performed_ = performed; | 110 is_solid_color_analysis_performed_ = performed; |
| 111 } | 111 } |
| 112 bool is_solid_color_analysis_performed() const { | 112 bool is_solid_color_analysis_performed() const { |
| 113 return is_solid_color_analysis_performed_; | 113 return is_solid_color_analysis_performed_; |
| 114 } | 114 } |
| 115 | 115 |
| 116 void set_is_checker_imaged() { is_checker_imaged_ = true; } |
| 117 bool is_checker_imaged() const { return is_checker_imaged_; } |
| 118 |
| 116 const PictureLayerTiling* tiling() const { return tiling_; } | 119 const PictureLayerTiling* tiling() const { return tiling_; } |
| 117 void set_tiling(const PictureLayerTiling* tiling) { tiling_ = tiling; } | 120 void set_tiling(const PictureLayerTiling* tiling) { tiling_ = tiling; } |
| 118 | 121 |
| 119 private: | 122 private: |
| 120 friend class TileManager; | 123 friend class TileManager; |
| 121 friend class FakeTileManager; | 124 friend class FakeTileManager; |
| 122 friend class FakePictureLayerImpl; | 125 friend class FakePictureLayerImpl; |
| 123 | 126 |
| 124 // Methods called by by tile manager. | 127 // Methods called by by tile manager. |
| 125 Tile(TileManager* tile_manager, | 128 Tile(TileManager* tile_manager, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 137 TileDrawInfo draw_info_; | 140 TileDrawInfo draw_info_; |
| 138 | 141 |
| 139 const int layer_id_; | 142 const int layer_id_; |
| 140 const int source_frame_number_; | 143 const int source_frame_number_; |
| 141 const int flags_; | 144 const int flags_; |
| 142 const int tiling_i_index_; | 145 const int tiling_i_index_; |
| 143 const int tiling_j_index_; | 146 const int tiling_j_index_; |
| 144 bool required_for_activation_ : 1; | 147 bool required_for_activation_ : 1; |
| 145 bool required_for_draw_ : 1; | 148 bool required_for_draw_ : 1; |
| 146 bool is_solid_color_analysis_performed_ : 1; | 149 bool is_solid_color_analysis_performed_ : 1; |
| 150 bool is_checker_imaged_ = false; |
| 147 | 151 |
| 148 Id id_; | 152 Id id_; |
| 149 | 153 |
| 150 // The rect bounding the changes in this Tile vs the previous tile it | 154 // The rect bounding the changes in this Tile vs the previous tile it |
| 151 // replaced. | 155 // replaced. |
| 152 gfx::Rect invalidated_content_rect_; | 156 gfx::Rect invalidated_content_rect_; |
| 153 // The |id_| of the Tile that was invalidated and replaced by this tile. | 157 // The |id_| of the Tile that was invalidated and replaced by this tile. |
| 154 Id invalidated_id_; | 158 Id invalidated_id_; |
| 155 | 159 |
| 156 unsigned scheduled_priority_; | 160 unsigned scheduled_priority_; |
| 157 scoped_refptr<TileTask> raster_task_; | 161 scoped_refptr<TileTask> raster_task_; |
| 158 | 162 |
| 159 DISALLOW_COPY_AND_ASSIGN(Tile); | 163 DISALLOW_COPY_AND_ASSIGN(Tile); |
| 160 }; | 164 }; |
| 161 | 165 |
| 162 } // namespace cc | 166 } // namespace cc |
| 163 | 167 |
| 164 #endif // CC_TILES_TILE_H_ | 168 #endif // CC_TILES_TILE_H_ |
| OLD | NEW |