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

Unified Diff: cc/layers/picture_layer_impl.h

Issue 742343002: cc: Move LayerRasterTileIterator to a separate file and make it a queue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years 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/cc.gyp ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl.h
diff --git a/cc/layers/picture_layer_impl.h b/cc/layers/picture_layer_impl.h
index 52d8433c93ca94c4edc5b2611dbad50b2093e5a0..ddf928b621ed1d31bc818ef26d585655f97344cd 100644
--- a/cc/layers/picture_layer_impl.h
+++ b/cc/layers/picture_layer_impl.h
@@ -16,6 +16,7 @@
#include "cc/resources/picture_layer_tiling_set.h"
#include "cc/resources/picture_pile_impl.h"
#include "cc/resources/tiling_set_eviction_queue.h"
+#include "cc/resources/tiling_set_raster_queue.h"
#include "skia/ext/refptr.h"
#include "third_party/skia/include/core/SkPicture.h"
@@ -38,36 +39,6 @@ class CC_EXPORT PictureLayerImpl
PictureLayerImpl* pending;
};
- class CC_EXPORT LayerRasterTileIterator {
- public:
- LayerRasterTileIterator();
- LayerRasterTileIterator(PictureLayerImpl* layer, bool prioritize_low_res);
- ~LayerRasterTileIterator();
-
- Tile* operator*();
- const Tile* operator*() const;
- LayerRasterTileIterator& operator++();
- operator bool() const;
-
- private:
- enum IteratorType { LOW_RES, HIGH_RES, NUM_ITERATORS };
-
- void AdvanceToNextStage();
-
- PictureLayerImpl* layer_;
-
- struct IterationStage {
- IteratorType iterator_type;
- TilePriority::PriorityBin tile_type;
- };
-
- size_t current_stage_;
-
- // One low res stage, and three high res stages.
- IterationStage stages_[4];
- PictureLayerTiling::TilingRasterTileIterator iterators_[NUM_ITERATORS];
- };
-
static scoped_ptr<PictureLayerImpl> Create(LayerTreeImpl* tree_impl, int id) {
return make_scoped_ptr(new PictureLayerImpl(tree_impl, id));
}
@@ -75,6 +46,7 @@ class CC_EXPORT PictureLayerImpl
scoped_ptr<TilingSetEvictionQueue> CreateEvictionQueue(
TreePriority tree_priority);
+ scoped_ptr<TilingSetRasterQueue> CreateRasterQueue(bool prioritize_low_res);
// LayerImpl overrides.
const char* LayerTypeAsString() const override;
« no previous file with comments | « cc/cc.gyp ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698