| 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 13 matching lines...) Expand all Loading... |
| 24 class CC_EXPORT PictureLayerTilingSet { | 24 class CC_EXPORT PictureLayerTilingSet { |
| 25 public: | 25 public: |
| 26 enum TilingRangeType { | 26 enum TilingRangeType { |
| 27 HIGHER_THAN_HIGH_RES, | 27 HIGHER_THAN_HIGH_RES, |
| 28 HIGH_RES, | 28 HIGH_RES, |
| 29 BETWEEN_HIGH_AND_LOW_RES, | 29 BETWEEN_HIGH_AND_LOW_RES, |
| 30 LOW_RES, | 30 LOW_RES, |
| 31 LOWER_THAN_LOW_RES | 31 LOWER_THAN_LOW_RES |
| 32 }; | 32 }; |
| 33 struct TilingRange { | 33 struct TilingRange { |
| 34 TilingRange(size_t start, size_t end) : start(start), end(end) {} | 34 TilingRange(int start, int end) : start(start), end(end) {} |
| 35 | 35 |
| 36 size_t start; | 36 int start; |
| 37 size_t end; | 37 int end; |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 static scoped_ptr<PictureLayerTilingSet> Create( | 40 static scoped_ptr<PictureLayerTilingSet> Create( |
| 41 PictureLayerTilingClient* client, | 41 PictureLayerTilingClient* client, |
| 42 size_t max_tiles_for_interest_area, | 42 size_t max_tiles_for_interest_area, |
| 43 float skewport_target_time_in_seconds, | 43 float skewport_target_time_in_seconds, |
| 44 int skewport_extrapolation_limit_in_content); | 44 int skewport_extrapolation_limit_in_content); |
| 45 | 45 |
| 46 ~PictureLayerTilingSet(); | 46 ~PictureLayerTilingSet(); |
| 47 | 47 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 const int skewport_extrapolation_limit_in_content_pixels_; | 192 const int skewport_extrapolation_limit_in_content_pixels_; |
| 193 PictureLayerTilingClient* client_; | 193 PictureLayerTilingClient* client_; |
| 194 | 194 |
| 195 friend class Iterator; | 195 friend class Iterator; |
| 196 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); | 196 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 } // namespace cc | 199 } // namespace cc |
| 200 | 200 |
| 201 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ | 201 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ |
| OLD | NEW |