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_PICTURE_LAYER_TILING_SET_H_ | 5 #ifndef CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ |
6 #define CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ | 6 #define CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 172 |
173 private: | 173 private: |
174 explicit PictureLayerTilingSet( | 174 explicit PictureLayerTilingSet( |
175 PictureLayerTilingClient* client, | 175 PictureLayerTilingClient* client, |
176 size_t max_tiles_for_interest_area, | 176 size_t max_tiles_for_interest_area, |
177 float skewport_target_time_in_seconds, | 177 float skewport_target_time_in_seconds, |
178 int skewport_extrapolation_limit_in_content_pixels); | 178 int skewport_extrapolation_limit_in_content_pixels); |
179 | 179 |
180 void CopyTilingsAndPropertiesFromPendingTwin( | 180 void CopyTilingsAndPropertiesFromPendingTwin( |
181 const PictureLayerTilingSet* pending_twin_set, | 181 const PictureLayerTilingSet* pending_twin_set, |
182 const scoped_refptr<RasterSource>& raster_source); | 182 const scoped_refptr<RasterSource>& raster_source, |
| 183 const Region& layer_invalidation); |
183 | 184 |
184 // Remove one tiling. | 185 // Remove one tiling. |
185 void Remove(PictureLayerTiling* tiling); | 186 void Remove(PictureLayerTiling* tiling); |
186 void VerifyTilings(const PictureLayerTilingSet* pending_twin_set) const; | 187 void VerifyTilings(const PictureLayerTilingSet* pending_twin_set) const; |
187 | 188 |
188 ScopedPtrVector<PictureLayerTiling> tilings_; | 189 ScopedPtrVector<PictureLayerTiling> tilings_; |
189 | 190 |
190 const size_t max_tiles_for_interest_area_; | 191 const size_t max_tiles_for_interest_area_; |
191 const float skewport_target_time_in_seconds_; | 192 const float skewport_target_time_in_seconds_; |
192 const int skewport_extrapolation_limit_in_content_pixels_; | 193 const int skewport_extrapolation_limit_in_content_pixels_; |
193 PictureLayerTilingClient* client_; | 194 PictureLayerTilingClient* client_; |
194 | 195 |
195 friend class Iterator; | 196 friend class Iterator; |
196 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); | 197 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); |
197 }; | 198 }; |
198 | 199 |
199 } // namespace cc | 200 } // namespace cc |
200 | 201 |
201 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ | 202 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ |
OLD | NEW |