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

Side by Side Diff: cc/resources/tiling_set_raster_queue.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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_TILING_SET_RASTER_QUEUE_H_ 5 #ifndef CC_RESOURCES_TILING_SET_RASTER_QUEUE_H_
6 #define CC_RESOURCES_TILING_SET_RASTER_QUEUE_H_ 6 #define CC_RESOURCES_TILING_SET_RASTER_QUEUE_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/resources/picture_layer_tiling_set.h"
10 9
11 namespace cc { 10 namespace cc {
12 11
12 class Tile;
13 class CC_EXPORT TilingSetRasterQueue { 13 class CC_EXPORT TilingSetRasterQueue {
14 public: 14 public:
15 TilingSetRasterQueue(); 15 TilingSetRasterQueue() = default;
16 TilingSetRasterQueue(PictureLayerTilingSet* tiling_set, 16 virtual ~TilingSetRasterQueue() = default;
17 bool prioritize_low_res);
18 ~TilingSetRasterQueue();
19 17
20 Tile* Top(); 18 virtual Tile* Top() = 0;
21 const Tile* Top() const; 19 virtual const Tile* Top() const = 0;
22 void Pop(); 20 virtual void Pop() = 0;
23 bool IsEmpty() const; 21 virtual bool IsEmpty() const = 0;
24
25 private:
26 enum IteratorType { LOW_RES, HIGH_RES, NUM_ITERATORS };
27
28 void AdvanceToNextStage();
29
30 PictureLayerTilingSet* tiling_set_;
31
32 struct IterationStage {
33 IteratorType iterator_type;
34 TilePriority::PriorityBin tile_type;
35 };
36
37 size_t current_stage_;
38
39 // One low res stage, and three high res stages.
40 IterationStage stages_[4];
41 PictureLayerTiling::TilingRasterTileIterator iterators_[NUM_ITERATORS];
42 }; 22 };
43 23
44 } // namespace cc 24 } // namespace cc
45 25
46 #endif // CC_RESOURCES_TILING_SET_RASTER_QUEUE_H_ 26 #endif // CC_RESOURCES_TILING_SET_RASTER_QUEUE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698