Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: cc/resources/picture_layer_tiling.h

Issue 816543004: Update from https://crrev.com/308996 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/resources/picture.cc ('k') | cc/resources/picture_layer_tiling.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « cc/resources/picture.cc ('k') | cc/resources/picture_layer_tiling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698