| 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 "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 std::vector<scoped_refptr<Tile> >::iterator iterator_; | 46 std::vector<scoped_refptr<Tile> >::iterator iterator_; |
| 47 bool use_priority_ordering_; | 47 bool use_priority_ordering_; |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 friend class Iterator; | 51 friend class Iterator; |
| 52 | 52 |
| 53 void SortBinIfNeeded(ManagedTileBin bin); | 53 void SortBinIfNeeded(ManagedTileBin bin); |
| 54 | 54 |
| 55 typedef scoped_refptr<Tile> TileRef; | 55 typedef scoped_refptr<Tile> TileRef; |
| 56 std::vector<TileRef> tiles_[NUM_BINS]; | 56 std::vector<TileRef> tiles_[MAX_BIN + 1]; |
| 57 bool bin_sorted_[NUM_BINS]; | 57 bool bin_sorted_[MAX_BIN + 1]; |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace cc | 60 } // namespace cc |
| 61 | 61 |
| 62 #endif // CC_RESOURCES_PRIORITIZED_TILE_SET_H_ | 62 #endif // CC_RESOURCES_PRIORITIZED_TILE_SET_H_ |
| OLD | NEW |