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_H_ | 5 #ifndef CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
6 #define CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 6 #define CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 virtual float GetSkewportTargetTimeInSeconds() const = 0; | 50 virtual float GetSkewportTargetTimeInSeconds() const = 0; |
51 virtual int GetSkewportExtrapolationLimitInContentPixels() const = 0; | 51 virtual int GetSkewportExtrapolationLimitInContentPixels() const = 0; |
52 virtual WhichTree GetTree() const = 0; | 52 virtual WhichTree GetTree() const = 0; |
53 | 53 |
54 protected: | 54 protected: |
55 virtual ~PictureLayerTilingClient() {} | 55 virtual ~PictureLayerTilingClient() {} |
56 }; | 56 }; |
57 | 57 |
58 class CC_EXPORT PictureLayerTiling { | 58 class CC_EXPORT PictureLayerTiling { |
59 public: | 59 public: |
| 60 static const int kBorderTexels = 1; |
| 61 |
60 enum EvictionCategory { | 62 enum EvictionCategory { |
61 EVENTUALLY, | 63 EVENTUALLY, |
62 EVENTUALLY_AND_REQUIRED_FOR_ACTIVATION, | 64 EVENTUALLY_AND_REQUIRED_FOR_ACTIVATION, |
63 SOON, | 65 SOON, |
64 SOON_AND_REQUIRED_FOR_ACTIVATION, | 66 SOON_AND_REQUIRED_FOR_ACTIVATION, |
65 NOW, | 67 NOW, |
66 NOW_AND_REQUIRED_FOR_ACTIVATION | 68 NOW_AND_REQUIRED_FOR_ACTIVATION |
67 }; | 69 }; |
68 | 70 |
69 class CC_EXPORT TilingRasterTileIterator { | 71 class CC_EXPORT TilingRasterTileIterator { |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 | 359 |
358 private: | 360 private: |
359 DISALLOW_ASSIGN(PictureLayerTiling); | 361 DISALLOW_ASSIGN(PictureLayerTiling); |
360 | 362 |
361 RectExpansionCache expansion_cache_; | 363 RectExpansionCache expansion_cache_; |
362 }; | 364 }; |
363 | 365 |
364 } // namespace cc | 366 } // namespace cc |
365 | 367 |
366 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 368 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
OLD | NEW |