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

Unified Diff: cc/tiles/tiling_set_raster_queue_all.h

Issue 2899403003: cc: Give non-drawing layers that are rasterized a lower priority. (Closed)
Patch Set: type Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/tiles/tile_manager_unittest.cc ('k') | cc/tiles/tiling_set_raster_queue_all.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/tiling_set_raster_queue_all.h
diff --git a/cc/tiles/tiling_set_raster_queue_all.h b/cc/tiles/tiling_set_raster_queue_all.h
index 73bb4c9e17b24c21988e1b4a8985818646437470..e29736d8b02f5a4e10a6ee1faa9c7c0b7116824d 100644
--- a/cc/tiles/tiling_set_raster_queue_all.h
+++ b/cc/tiles/tiling_set_raster_queue_all.h
@@ -22,12 +22,14 @@ namespace cc {
class CC_EXPORT TilingSetRasterQueueAll {
public:
TilingSetRasterQueueAll(PictureLayerTilingSet* tiling_set,
- bool prioritize_low_res);
+ bool prioritize_low_res,
+ bool is_drawing_layer);
~TilingSetRasterQueueAll();
const PrioritizedTile& Top() const;
void Pop();
bool IsEmpty() const;
+ bool is_drawing_layer() const { return is_drawing_layer_; }
private:
// Helper base class for individual region iterators.
@@ -190,6 +192,7 @@ class CC_EXPORT TilingSetRasterQueueAll {
// ideal pending high res.
base::StackVector<IterationStage, 6> stages_;
TilingIterator iterators_[NUM_ITERATORS];
+ bool is_drawing_layer_ = false;
DISALLOW_COPY_AND_ASSIGN(TilingSetRasterQueueAll);
};
« no previous file with comments | « cc/tiles/tile_manager_unittest.cc ('k') | cc/tiles/tiling_set_raster_queue_all.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698