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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 const Occlusion& occlusion_in_layer_space); | 312 const Occlusion& occlusion_in_layer_space); |
313 | 313 |
314 void UpdateTileAndTwinPriority(Tile* tile) const; | 314 void UpdateTileAndTwinPriority(Tile* tile) const; |
315 void UpdateTilePriority(Tile* tile) const; | 315 void UpdateTilePriority(Tile* tile) const; |
316 | 316 |
317 const size_t max_tiles_for_interest_area_; | 317 const size_t max_tiles_for_interest_area_; |
318 const float skewport_target_time_in_seconds_; | 318 const float skewport_target_time_in_seconds_; |
319 const int skewport_extrapolation_limit_in_content_pixels_; | 319 const int skewport_extrapolation_limit_in_content_pixels_; |
320 | 320 |
321 // Given properties. | 321 // Given properties. |
322 float contents_scale_; | 322 const float contents_scale_; |
| 323 PictureLayerTilingClient* const client_; |
323 gfx::Size layer_bounds_; | 324 gfx::Size layer_bounds_; |
324 TileResolution resolution_; | 325 TileResolution resolution_; |
325 PictureLayerTilingClient* client_; | |
326 | 326 |
327 // Internal data. | 327 // Internal data. |
328 TilingData tiling_data_; | 328 TilingData tiling_data_; |
329 TileMap tiles_; // It is not legal to have a NULL tile in the tiles_ map. | 329 TileMap tiles_; // It is not legal to have a NULL tile in the tiles_ map. |
330 gfx::Rect live_tiles_rect_; | 330 gfx::Rect live_tiles_rect_; |
331 | 331 |
332 // State saved for computing velocities based upon finite differences. | 332 // State saved for computing velocities based upon finite differences. |
333 double last_impl_frame_time_in_seconds_; | 333 double last_impl_frame_time_in_seconds_; |
334 gfx::Rect last_viewport_in_layer_space_; | 334 gfx::Rect last_viewport_in_layer_space_; |
335 gfx::Rect last_visible_rect_in_content_space_; | 335 gfx::Rect last_visible_rect_in_content_space_; |
(...skipping 16 matching lines...) Expand all Loading... |
352 | 352 |
353 private: | 353 private: |
354 DISALLOW_ASSIGN(PictureLayerTiling); | 354 DISALLOW_ASSIGN(PictureLayerTiling); |
355 | 355 |
356 RectExpansionCache expansion_cache_; | 356 RectExpansionCache expansion_cache_; |
357 }; | 357 }; |
358 | 358 |
359 } // namespace cc | 359 } // namespace cc |
360 | 360 |
361 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 361 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
OLD | NEW |