| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // Remove all tiles; keep all tilings. | 48 // Remove all tiles; keep all tilings. |
| 49 void RemoveAllTiles(); | 49 void RemoveAllTiles(); |
| 50 | 50 |
| 51 // For all tilings, create any tile that intersects |layer_rect|. | 51 // For all tilings, create any tile that intersects |layer_rect|. |
| 52 void CreateTilesFromLayerRect(gfx::Rect layer_rect); | 52 void CreateTilesFromLayerRect(gfx::Rect layer_rect); |
| 53 | 53 |
| 54 void UpdateTilePriorities( | 54 void UpdateTilePriorities( |
| 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::Size last_layer_bounds, | 59 gfx::Size last_layer_bounds, |
| 59 gfx::Size current_layer_bounds, | 60 gfx::Size current_layer_bounds, |
| 60 float last_layer_contents_scale, | 61 float last_layer_contents_scale, |
| 61 float current_layer_contents_scale, | 62 float current_layer_contents_scale, |
| 62 const gfx::Transform& last_screen_transform, | 63 const gfx::Transform& last_screen_transform, |
| 63 const gfx::Transform& current_screen_transform, | 64 const gfx::Transform& current_screen_transform, |
| 64 int current_source_frame_number, | 65 int current_source_frame_number, |
| 65 double current_frame_time, | 66 double current_frame_time, |
| 66 bool store_screen_space_quads_on_tiles, | 67 bool store_screen_space_quads_on_tiles, |
| 67 size_t max_tiles_for_interest_area); | 68 size_t max_tiles_for_interest_area); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 gfx::Size layer_bounds_; | 120 gfx::Size layer_bounds_; |
| 120 ScopedPtrVector<PictureLayerTiling> tilings_; | 121 ScopedPtrVector<PictureLayerTiling> tilings_; |
| 121 | 122 |
| 122 friend class Iterator; | 123 friend class Iterator; |
| 123 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); | 124 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); |
| 124 }; | 125 }; |
| 125 | 126 |
| 126 } // namespace cc | 127 } // namespace cc |
| 127 | 128 |
| 128 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ | 129 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ |
| OLD | NEW |