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

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

Issue 816453008: cc: Split tiling set raster queues into all and required. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 11 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/layers/picture_layer_impl_unittest.cc ('k') | cc/resources/raster_tile_priority_queue.h » ('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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 int64 target_area, 226 int64 target_area,
227 const gfx::Rect& bounding_rect, 227 const gfx::Rect& bounding_rect,
228 RectExpansionCache* cache); 228 RectExpansionCache* cache);
229 229
230 bool has_ever_been_updated() const { 230 bool has_ever_been_updated() const {
231 return last_impl_frame_time_in_seconds_ != 0.0; 231 return last_impl_frame_time_in_seconds_ != 0.0;
232 } 232 }
233 233
234 protected: 234 protected:
235 friend class CoverageIterator; 235 friend class CoverageIterator;
236 friend class TilingSetRasterQueue; 236 friend class TilingSetRasterQueueAll;
237 friend class TilingSetRasterQueueRequired;
237 friend class TilingSetEvictionQueue; 238 friend class TilingSetEvictionQueue;
238 239
239 typedef std::pair<int, int> TileMapKey; 240 typedef std::pair<int, int> TileMapKey;
240 typedef base::hash_map<TileMapKey, scoped_refptr<Tile>> TileMap; 241 typedef base::hash_map<TileMapKey, scoped_refptr<Tile>> TileMap;
241 242
242 PictureLayerTiling(float contents_scale, 243 PictureLayerTiling(float contents_scale,
243 scoped_refptr<RasterSource> raster_source, 244 scoped_refptr<RasterSource> raster_source,
244 PictureLayerTilingClient* client, 245 PictureLayerTilingClient* client,
245 size_t max_tiles_for_interest_area, 246 size_t max_tiles_for_interest_area,
246 float skewport_target_time_in_seconds, 247 float skewport_target_time_in_seconds,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 317
317 private: 318 private:
318 DISALLOW_ASSIGN(PictureLayerTiling); 319 DISALLOW_ASSIGN(PictureLayerTiling);
319 320
320 RectExpansionCache expansion_cache_; 321 RectExpansionCache expansion_cache_;
321 }; 322 };
322 323
323 } // namespace cc 324 } // namespace cc
324 325
325 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ 326 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/resources/raster_tile_priority_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698