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 "cc/base/region.h" | 8 #include "cc/base/region.h" |
9 #include "cc/base/scoped_ptr_vector.h" | 9 #include "cc/base/scoped_ptr_vector.h" |
10 #include "cc/resources/picture_layer_tiling.h" | 10 #include "cc/resources/picture_layer_tiling.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 void RemoveAllTilings(); | 49 void RemoveAllTilings(); |
50 | 50 |
51 // Remove one tiling. | 51 // Remove one tiling. |
52 void Remove(PictureLayerTiling* tiling); | 52 void Remove(PictureLayerTiling* tiling); |
53 | 53 |
54 // Remove all tiles; keep all tilings. | 54 // Remove all tiles; keep all tilings. |
55 void RemoveAllTiles(); | 55 void RemoveAllTiles(); |
56 | 56 |
57 void UpdateTilePriorities( | 57 void UpdateTilePriorities( |
58 WhichTree tree, | 58 WhichTree tree, |
59 const gfx::Size& device_viewport, | |
60 const gfx::Rect& viewport_in_content_space, | |
61 const gfx::Rect& visible_content_rect, | 59 const gfx::Rect& visible_content_rect, |
62 const gfx::Size& last_layer_bounds, | 60 float layer_contents_scale, |
63 const gfx::Size& current_layer_bounds, | 61 double current_frame_time_in_seconds); |
64 float last_layer_contents_scale, | |
65 float current_layer_contents_scale, | |
66 const gfx::Transform& last_screen_transform, | |
67 const gfx::Transform& current_screen_transform, | |
68 double current_frame_time_in_seconds, | |
69 size_t max_tiles_for_interest_area); | |
70 | 62 |
71 void DidBecomeActive(); | 63 void DidBecomeActive(); |
72 void DidBecomeRecycled(); | 64 void DidBecomeRecycled(); |
73 | 65 |
74 // For a given rect, iterates through tiles that can fill it. If no | 66 // For a given rect, iterates through tiles that can fill it. If no |
75 // set of tiles with resources can fill the rect, then it will iterate | 67 // set of tiles with resources can fill the rect, then it will iterate |
76 // through null tiles with valid geometry_rect() until the rect is full. | 68 // through null tiles with valid geometry_rect() until the rect is full. |
77 // If all tiles have resources, the union of all geometry_rects will | 69 // If all tiles have resources, the union of all geometry_rects will |
78 // exactly fill rect with no overlap. | 70 // exactly fill rect with no overlap. |
79 class CC_EXPORT CoverageIterator { | 71 class CC_EXPORT CoverageIterator { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 gfx::Size layer_bounds_; | 115 gfx::Size layer_bounds_; |
124 ScopedPtrVector<PictureLayerTiling> tilings_; | 116 ScopedPtrVector<PictureLayerTiling> tilings_; |
125 | 117 |
126 friend class Iterator; | 118 friend class Iterator; |
127 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); | 119 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); |
128 }; | 120 }; |
129 | 121 |
130 } // namespace cc | 122 } // namespace cc |
131 | 123 |
132 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ | 124 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ |
OLD | NEW |