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

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

Issue 366113002: cc: Do not cleanup tiles with raster tasks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits updated. Created 6 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
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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_
OLDNEW
« 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