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

Side by Side Diff: cc/resources/tiling_set_raster_queue_required.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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_RESOURCES_TILING_SET_RASTER_QUEUE_REQUIRED_H_
6 #define CC_RESOURCES_TILING_SET_RASTER_QUEUE_REQUIRED_H_
7
8 #include "cc/base/cc_export.h"
9 #include "cc/resources/picture_layer_tiling_set.h"
10 #include "cc/resources/raster_tile_priority_queue.h"
11 #include "cc/resources/tiling_set_raster_queue.h"
12
13 namespace cc {
14
15 // This queue only returns tiles that are required for either activation or
16 // draw, as specified by RasterTilePriorityQueue::Type passed in the
17 // constructor.
18 class CC_EXPORT TilingSetRasterQueueRequired : public TilingSetRasterQueue {
19 public:
20 TilingSetRasterQueueRequired(PictureLayerTilingSet* tiling_set,
21 RasterTilePriorityQueue::Type type);
22 ~TilingSetRasterQueueRequired() override;
23
24 Tile* Top() override;
25 const Tile* Top() const override;
26 void Pop() override;
27 bool IsEmpty() const override;
28
29 private:
30 bool IsTileRequired(const Tile* tile) const;
31
32 PictureLayerTiling::TilingRasterTileIterator iterator_;
33 RasterTilePriorityQueue::Type type_;
34 };
35
36 } // namespace cc
37
38 #endif // CC_RESOURCES_TILING_SET_RASTER_QUEUE_REQUIRED_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698