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 bool raster_task_scheduled_with_checker_images() const { | |
vmpstr
2017/03/29 19:11:45
Add a setter as well. I want to remove the friend
Khushal
2017/03/29 22:10:20
Its definitely going to be possible and something
Khushal
2017/03/31 04:31:00
Done.
| |
117 return raster_task_scheduled_with_checker_images_; | |
118 } | |
119 | |
116 const PictureLayerTiling* tiling() const { return tiling_; } | 120 const PictureLayerTiling* tiling() const { return tiling_; } |
117 void set_tiling(const PictureLayerTiling* tiling) { tiling_ = tiling; } | 121 void set_tiling(const PictureLayerTiling* tiling) { tiling_ = tiling; } |
118 | 122 |
119 private: | 123 private: |
120 friend class TileManager; | 124 friend class TileManager; |
121 friend class FakeTileManager; | 125 friend class FakeTileManager; |
122 friend class FakePictureLayerImpl; | 126 friend class FakePictureLayerImpl; |
123 | 127 |
124 // Methods called by by tile manager. | 128 // Methods called by by tile manager. |
125 Tile(TileManager* tile_manager, | 129 Tile(TileManager* tile_manager, |
(...skipping 21 matching lines...) Expand all Loading... | |
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_; |
161 bool raster_task_scheduled_with_checker_images_ = false; | |
157 scoped_refptr<TileTask> raster_task_; | 162 scoped_refptr<TileTask> raster_task_; |
158 | 163 |
159 DISALLOW_COPY_AND_ASSIGN(Tile); | 164 DISALLOW_COPY_AND_ASSIGN(Tile); |
160 }; | 165 }; |
161 | 166 |
162 } // namespace cc | 167 } // namespace cc |
163 | 168 |
164 #endif // CC_TILES_TILE_H_ | 169 #endif // CC_TILES_TILE_H_ |
OLD | NEW |