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

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

Issue 1132443003: cc: Move raster_source from Tile to PrioritizedTile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename var Created 5 years, 7 months 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_layer_tiling.cc ('k') | cc/resources/picture_layer_tiling_set.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_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 <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // Remove all tiles; keep all tilings. 114 // Remove all tiles; keep all tilings.
115 void RemoveAllTiles(); 115 void RemoveAllTiles();
116 116
117 // Update the rects and priorities for tiles based on the given information. 117 // Update the rects and priorities for tiles based on the given information.
118 bool UpdateTilePriorities(const gfx::Rect& required_rect_in_layer_space, 118 bool UpdateTilePriorities(const gfx::Rect& required_rect_in_layer_space,
119 float ideal_contents_scale, 119 float ideal_contents_scale,
120 double current_frame_time_in_seconds, 120 double current_frame_time_in_seconds,
121 const Occlusion& occlusion_in_layer_space, 121 const Occlusion& occlusion_in_layer_space,
122 bool can_require_tiles_for_activation); 122 bool can_require_tiles_for_activation);
123 123
124 void GetAllTilesAndPrioritiesForTracing( 124 void GetAllPrioritizedTilesForTracing(
125 std::map<const Tile*, TilePriority>* tile_map) const; 125 std::vector<PrioritizedTile>* prioritized_tiles) const;
126 126
127 // For a given rect, iterates through tiles that can fill it. If no 127 // For a given rect, iterates through tiles that can fill it. If no
128 // set of tiles with resources can fill the rect, then it will iterate 128 // set of tiles with resources can fill the rect, then it will iterate
129 // through null tiles with valid geometry_rect() until the rect is full. 129 // through null tiles with valid geometry_rect() until the rect is full.
130 // If all tiles have resources, the union of all geometry_rects will 130 // If all tiles have resources, the union of all geometry_rects will
131 // exactly fill rect with no overlap. 131 // exactly fill rect with no overlap.
132 class CC_EXPORT CoverageIterator { 132 class CC_EXPORT CoverageIterator {
133 public: 133 public:
134 CoverageIterator(const PictureLayerTilingSet* set, 134 CoverageIterator(const PictureLayerTilingSet* set,
135 float contents_scale, 135 float contents_scale,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 WhichTree tree_; 197 WhichTree tree_;
198 PictureLayerTilingClient* client_; 198 PictureLayerTilingClient* client_;
199 199
200 friend class Iterator; 200 friend class Iterator;
201 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); 201 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet);
202 }; 202 };
203 203
204 } // namespace cc 204 } // namespace cc
205 205
206 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ 206 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling.cc ('k') | cc/resources/picture_layer_tiling_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698