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

Unified Diff: cc/resources/prioritized_tile_set.h

Issue 367833003: cc: Start using raster/eviction iterators. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/picture_layer_tiling_unittest.cc ('k') | cc/resources/prioritized_tile_set.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/prioritized_tile_set.h
diff --git a/cc/resources/prioritized_tile_set.h b/cc/resources/prioritized_tile_set.h
deleted file mode 100644
index 2d4693efe3621bc433848492f52b2c715fdcfdaf..0000000000000000000000000000000000000000
--- a/cc/resources/prioritized_tile_set.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CC_RESOURCES_PRIORITIZED_TILE_SET_H_
-#define CC_RESOURCES_PRIORITIZED_TILE_SET_H_
-
-#include <vector>
-
-#include "cc/base/cc_export.h"
-#include "cc/resources/managed_tile_state.h"
-
-namespace cc {
-class Tile;
-
-class CC_EXPORT PrioritizedTileSet {
- public:
- PrioritizedTileSet();
- ~PrioritizedTileSet();
-
- void InsertTile(Tile* tile, ManagedTileBin bin);
- void Clear();
- bool IsEmpty();
-
- class CC_EXPORT Iterator {
- public:
- Iterator(PrioritizedTileSet* set, bool use_priority_ordering);
-
- ~Iterator();
-
- void DisablePriorityOrdering();
-
- Iterator& operator++();
- Tile* operator->() { return *(*this); }
- Tile* operator*();
- operator bool() const {
- return iterator_ != tile_set_->tiles_[current_bin_].end();
- }
-
- private:
- void AdvanceList();
-
- PrioritizedTileSet* tile_set_;
- ManagedTileBin current_bin_;
- std::vector<Tile*>::iterator iterator_;
- bool use_priority_ordering_;
- };
-
- private:
- friend class Iterator;
-
- void SortBinIfNeeded(ManagedTileBin bin);
-
- std::vector<Tile*> tiles_[NUM_BINS];
- bool bin_sorted_[NUM_BINS];
-};
-
-} // namespace cc
-
-#endif // CC_RESOURCES_PRIORITIZED_TILE_SET_H_
« no previous file with comments | « cc/resources/picture_layer_tiling_unittest.cc ('k') | cc/resources/prioritized_tile_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698