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

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

Issue 22875045: cc: Remove unnecessary "default" cases from switch statements. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698