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

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

Issue 1139673008: cc: Make IsReadyToDraw/NeedsRaster usage consistent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 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_ALL_H_ 5 #ifndef CC_RESOURCES_TILING_SET_RASTER_QUEUE_ALL_H_
6 #define CC_RESOURCES_TILING_SET_RASTER_QUEUE_ALL_H_ 6 #define CC_RESOURCES_TILING_SET_RASTER_QUEUE_ALL_H_
7 7
8 #include "base/containers/stack_container.h" 8 #include "base/containers/stack_container.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/resources/picture_layer_tiling_set.h" 10 #include "cc/resources/picture_layer_tiling_set.h"
(...skipping 22 matching lines...) Expand all
33 OnePriorityRectIterator(); 33 OnePriorityRectIterator();
34 OnePriorityRectIterator(PictureLayerTiling* tiling, 34 OnePriorityRectIterator(PictureLayerTiling* tiling,
35 TilingData* tiling_data); 35 TilingData* tiling_data);
36 36
37 bool done() const { return !current_tile_.tile(); } 37 bool done() const { return !current_tile_.tile(); }
38 const PrioritizedTile& operator*() const { return current_tile_; } 38 const PrioritizedTile& operator*() const { return current_tile_; }
39 39
40 protected: 40 protected:
41 ~OnePriorityRectIterator() = default; 41 ~OnePriorityRectIterator() = default;
42 bool TileNeedsRaster(Tile* tile) const { 42 bool TileNeedsRaster(Tile* tile) const {
43 return tile->NeedsRaster() && !tiling_->IsTileOccluded(tile); 43 return tile->draw_info().NeedsRaster() && !tiling_->IsTileOccluded(tile);
44 } 44 }
45 45
46 template <typename TilingIteratorType> 46 template <typename TilingIteratorType>
47 void AdvanceToNextTile(TilingIteratorType* iterator); 47 void AdvanceToNextTile(TilingIteratorType* iterator);
48 template <typename TilingIteratorType> 48 template <typename TilingIteratorType>
49 bool GetFirstTileAndCheckIfValid(TilingIteratorType* iterator); 49 bool GetFirstTileAndCheckIfValid(TilingIteratorType* iterator);
50 50
51 PrioritizedTile current_tile_; 51 PrioritizedTile current_tile_;
52 PictureLayerTiling* tiling_; 52 PictureLayerTiling* tiling_;
53 TilingData* tiling_data_; 53 TilingData* tiling_data_;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // ideal pending high res. 198 // ideal pending high res.
199 base::StackVector<IterationStage, 6> stages_; 199 base::StackVector<IterationStage, 6> stages_;
200 TilingIterator iterators_[NUM_ITERATORS]; 200 TilingIterator iterators_[NUM_ITERATORS];
201 201
202 DISALLOW_COPY_AND_ASSIGN(TilingSetRasterQueueAll); 202 DISALLOW_COPY_AND_ASSIGN(TilingSetRasterQueueAll);
203 }; 203 };
204 204
205 } // namespace cc 205 } // namespace cc
206 206
207 #endif // CC_RESOURCES_TILING_SET_RASTER_QUEUE_ALL_H_ 207 #endif // CC_RESOURCES_TILING_SET_RASTER_QUEUE_ALL_H_
OLDNEW
« no previous file with comments | « cc/resources/tiling_set_eviction_queue.cc ('k') | cc/resources/tiling_set_raster_queue_required.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698