| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PRIORITIZED_TILE_SET_H_ | 5 #ifndef CC_RESOURCES_PRIORITIZED_TILE_SET_H_ |
| 6 #define CC_RESOURCES_PRIORITIZED_TILE_SET_H_ | 6 #define CC_RESOURCES_PRIORITIZED_TILE_SET_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
| 11 #include "cc/resources/managed_tile_state.h" | 11 #include "cc/resources/managed_tile_state.h" |
| 12 | 12 |
| 13 namespace cc { | 13 namespace cc { |
| 14 class Tile; | 14 class Tile; |
| 15 | 15 |
| 16 class CC_EXPORT PrioritizedTileSet { | 16 class CC_EXPORT PrioritizedTileSet { |
| 17 public: | 17 public: |
| 18 PrioritizedTileSet(); | 18 PrioritizedTileSet(); |
| 19 ~PrioritizedTileSet(); | 19 ~PrioritizedTileSet(); |
| 20 | 20 |
| 21 void InsertTile(Tile* tile, ManagedTileBin bin); | 21 void InsertTile(Tile* tile, ManagedTileBin bin); |
| 22 void Clear(); | 22 void Clear(); |
| 23 bool IsEmpty(); |
| 23 | 24 |
| 24 class CC_EXPORT Iterator { | 25 class CC_EXPORT Iterator { |
| 25 public: | 26 public: |
| 26 Iterator(PrioritizedTileSet* set, bool use_priority_ordering); | 27 Iterator(PrioritizedTileSet* set, bool use_priority_ordering); |
| 27 | 28 |
| 28 ~Iterator(); | 29 ~Iterator(); |
| 29 | 30 |
| 30 void DisablePriorityOrdering(); | 31 void DisablePriorityOrdering(); |
| 31 | 32 |
| 32 Iterator& operator++(); | 33 Iterator& operator++(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 50 | 51 |
| 51 void SortBinIfNeeded(ManagedTileBin bin); | 52 void SortBinIfNeeded(ManagedTileBin bin); |
| 52 | 53 |
| 53 std::vector<Tile*> tiles_[NUM_BINS]; | 54 std::vector<Tile*> tiles_[NUM_BINS]; |
| 54 bool bin_sorted_[NUM_BINS]; | 55 bool bin_sorted_[NUM_BINS]; |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 } // namespace cc | 58 } // namespace cc |
| 58 | 59 |
| 59 #endif // CC_RESOURCES_PRIORITIZED_TILE_SET_H_ | 60 #endif // CC_RESOURCES_PRIORITIZED_TILE_SET_H_ |
| OLD | NEW |