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

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

Issue 885443002: Roll Chrome into Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT mojo Created 5 years, 10 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/tiling_set_raster_queue_all.h ('k') | cc/resources/video_resource_updater.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 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_REQUIRED_H_ 5 #ifndef CC_RESOURCES_TILING_SET_RASTER_QUEUE_REQUIRED_H_
6 #define CC_RESOURCES_TILING_SET_RASTER_QUEUE_REQUIRED_H_ 6 #define CC_RESOURCES_TILING_SET_RASTER_QUEUE_REQUIRED_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" 9 #include "cc/resources/picture_layer_tiling_set.h"
10 #include "cc/resources/raster_tile_priority_queue.h" 10 #include "cc/resources/raster_tile_priority_queue.h"
11 #include "cc/resources/tile.h" 11 #include "cc/resources/tile.h"
12 #include "cc/resources/tiling_set_raster_queue.h"
13 12
14 namespace cc { 13 namespace cc {
15 14
16 // This queue only returns tiles that are required for either activation or 15 // This queue only returns tiles that are required for either activation or
17 // draw, as specified by RasterTilePriorityQueue::Type passed in the 16 // draw, as specified by RasterTilePriorityQueue::Type passed in the
18 // constructor. 17 // constructor.
19 class CC_EXPORT TilingSetRasterQueueRequired 18 class CC_EXPORT TilingSetRasterQueueRequired {
20 : public NON_EXPORTED_BASE(TilingSetRasterQueue) {
21 public: 19 public:
22 TilingSetRasterQueueRequired(PictureLayerTilingSet* tiling_set, 20 TilingSetRasterQueueRequired(PictureLayerTilingSet* tiling_set,
23 RasterTilePriorityQueue::Type type); 21 RasterTilePriorityQueue::Type type);
24 ~TilingSetRasterQueueRequired() override; 22 ~TilingSetRasterQueueRequired();
25 23
26 Tile* Top() override; 24 Tile* Top();
27 const Tile* Top() const override; 25 const Tile* Top() const;
28 void Pop() override; 26 void Pop();
29 bool IsEmpty() const override; 27 bool IsEmpty() const;
30 28
31 private: 29 private:
32 // This iterator will return all tiles that are in the NOW bin on the given 30 // This iterator will return all tiles that are in the NOW bin on the given
33 // tiling. The queue can then use these tiles and further filter them based on 31 // tiling. The queue can then use these tiles and further filter them based on
34 // whether they are required or not. 32 // whether they are required or not.
35 class TilingIterator { 33 class TilingIterator {
36 public: 34 public:
37 TilingIterator(); 35 TilingIterator();
38 explicit TilingIterator(PictureLayerTiling* tiling, 36 explicit TilingIterator(PictureLayerTiling* tiling,
39 TilingData* tiling_data); 37 TilingData* tiling_data);
(...skipping 14 matching lines...) Expand all
54 52
55 bool IsTileRequired(const Tile* tile) const; 53 bool IsTileRequired(const Tile* tile) const;
56 54
57 TilingIterator iterator_; 55 TilingIterator iterator_;
58 RasterTilePriorityQueue::Type type_; 56 RasterTilePriorityQueue::Type type_;
59 }; 57 };
60 58
61 } // namespace cc 59 } // namespace cc
62 60
63 #endif // CC_RESOURCES_TILING_SET_RASTER_QUEUE_REQUIRED_H_ 61 #endif // CC_RESOURCES_TILING_SET_RASTER_QUEUE_REQUIRED_H_
OLDNEW
« no previous file with comments | « cc/resources/tiling_set_raster_queue_all.h ('k') | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698