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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 WhichTree tree, | 50 WhichTree tree, |
51 gfx::Size device_viewport, | 51 gfx::Size device_viewport, |
52 gfx::Rect viewport_in_content_space, | 52 gfx::Rect viewport_in_content_space, |
53 gfx::Rect visible_content_rect, | 53 gfx::Rect visible_content_rect, |
54 gfx::Size last_layer_bounds, | 54 gfx::Size last_layer_bounds, |
55 gfx::Size current_layer_bounds, | 55 gfx::Size current_layer_bounds, |
56 float last_layer_contents_scale, | 56 float last_layer_contents_scale, |
57 float current_layer_contents_scale, | 57 float current_layer_contents_scale, |
58 const gfx::Transform& last_screen_transform, | 58 const gfx::Transform& last_screen_transform, |
59 const gfx::Transform& current_screen_transform, | 59 const gfx::Transform& current_screen_transform, |
60 int current_source_frame_number, | 60 double current_frame_time_in_seconds, |
61 double current_frame_time, | |
62 bool store_screen_space_quads_on_tiles, | 61 bool store_screen_space_quads_on_tiles, |
63 size_t max_tiles_for_interest_area); | 62 size_t max_tiles_for_interest_area); |
64 | 63 |
65 void DidBecomeActive(); | 64 void DidBecomeActive(); |
66 | 65 |
67 // 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 |
68 // 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 |
69 // 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. |
70 // 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 |
71 // exactly fill rect with no overlap. | 70 // exactly fill rect with no overlap. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 gfx::Size layer_bounds_; | 114 gfx::Size layer_bounds_; |
116 ScopedPtrVector<PictureLayerTiling> tilings_; | 115 ScopedPtrVector<PictureLayerTiling> tilings_; |
117 | 116 |
118 friend class Iterator; | 117 friend class Iterator; |
119 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); | 118 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); |
120 }; | 119 }; |
121 | 120 |
122 } // namespace cc | 121 } // namespace cc |
123 | 122 |
124 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ | 123 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ |
OLD | NEW |