| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 WhichTree tree, | 55 WhichTree tree, |
| 56 gfx::Size device_viewport, | 56 gfx::Size device_viewport, |
| 57 gfx::Rect viewport_in_content_space, | 57 gfx::Rect viewport_in_content_space, |
| 58 gfx::Rect visible_content_rect, | 58 gfx::Rect visible_content_rect, |
| 59 gfx::Size last_layer_bounds, | 59 gfx::Size last_layer_bounds, |
| 60 gfx::Size current_layer_bounds, | 60 gfx::Size current_layer_bounds, |
| 61 float last_layer_contents_scale, | 61 float last_layer_contents_scale, |
| 62 float current_layer_contents_scale, | 62 float current_layer_contents_scale, |
| 63 const gfx::Transform& last_screen_transform, | 63 const gfx::Transform& last_screen_transform, |
| 64 const gfx::Transform& current_screen_transform, | 64 const gfx::Transform& current_screen_transform, |
| 65 int current_source_frame_number, | |
| 66 double current_frame_time, | 65 double current_frame_time, |
| 67 bool store_screen_space_quads_on_tiles, | 66 bool store_screen_space_quads_on_tiles, |
| 68 size_t max_tiles_for_interest_area); | 67 size_t max_tiles_for_interest_area); |
| 69 | 68 |
| 70 void DidBecomeActive(); | 69 void DidBecomeActive(); |
| 71 | 70 |
| 72 // For a given rect, iterates through tiles that can fill it. If no | 71 // For a given rect, iterates through tiles that can fill it. If no |
| 73 // set of tiles with resources can fill the rect, then it will iterate | 72 // set of tiles with resources can fill the rect, then it will iterate |
| 74 // through null tiles with valid geometry_rect() until the rect is full. | 73 // through null tiles with valid geometry_rect() until the rect is full. |
| 75 // If all tiles have resources, the union of all geometry_rects will | 74 // If all tiles have resources, the union of all geometry_rects will |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 gfx::Size layer_bounds_; | 119 gfx::Size layer_bounds_; |
| 121 ScopedPtrVector<PictureLayerTiling> tilings_; | 120 ScopedPtrVector<PictureLayerTiling> tilings_; |
| 122 | 121 |
| 123 friend class Iterator; | 122 friend class Iterator; |
| 124 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); | 123 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); |
| 125 }; | 124 }; |
| 126 | 125 |
| 127 } // namespace cc | 126 } // namespace cc |
| 128 | 127 |
| 129 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ | 128 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ |
| OLD | NEW |