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

Side by Side Diff: cc/tile_manager.h

Issue 12223050: cc: Fix tile manager shutdown by aborting all pending uploads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
« no previous file with comments | « cc/resource_provider.cc ('k') | cc/tile_manager.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_TILE_MANAGER_H_ 5 #ifndef CC_TILE_MANAGER_H_
6 #define CC_TILE_MANAGER_H_ 6 #define CC_TILE_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <queue> 9 #include <queue>
10 #include <vector> 10 #include <vector>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 bool use_cheapess_estimator); 98 bool use_cheapess_estimator);
99 virtual ~TileManager(); 99 virtual ~TileManager();
100 100
101 const GlobalStateThatImpactsTilePriority& GlobalState() const { 101 const GlobalStateThatImpactsTilePriority& GlobalState() const {
102 return global_state_; 102 return global_state_;
103 } 103 }
104 void SetGlobalState(const GlobalStateThatImpactsTilePriority& state); 104 void SetGlobalState(const GlobalStateThatImpactsTilePriority& state);
105 105
106 void ManageTiles(); 106 void ManageTiles();
107 void CheckForCompletedTileUploads(); 107 void CheckForCompletedTileUploads();
108 void AbortPendingTileUploads();
108 109
109 scoped_ptr<base::Value> AsValue() const; 110 scoped_ptr<base::Value> AsValue() const;
110 void GetMemoryStats(size_t* memoryRequiredBytes, 111 void GetMemoryStats(size_t* memoryRequiredBytes,
111 size_t* memoryNiceToHaveBytes, 112 size_t* memoryNiceToHaveBytes,
112 size_t* memoryUsedBytes) const; 113 size_t* memoryUsedBytes) const;
113 void SetRecordRenderingStats(bool record_rendering_stats); 114 void SetRecordRenderingStats(bool record_rendering_stats);
114 void GetRenderingStats(RenderingStats* stats); 115 void GetRenderingStats(RenderingStats* stats);
115 bool HasPendingWorkScheduled(WhichTree tree) const; 116 bool HasPendingWorkScheduled(WhichTree tree) const;
116 117
117 const MemoryHistory::Entry& memory_stats_from_last_assign() const { return mem ory_stats_from_last_assign_; } 118 const MemoryHistory::Entry& memory_stats_from_last_assign() const { return mem ory_stats_from_last_assign_; }
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 208
208 bool use_cheapness_estimator_; 209 bool use_cheapness_estimator_;
209 int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS]; 210 int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS];
210 211
211 DISALLOW_COPY_AND_ASSIGN(TileManager); 212 DISALLOW_COPY_AND_ASSIGN(TileManager);
212 }; 213 };
213 214
214 } // namespace cc 215 } // namespace cc
215 216
216 #endif // CC_TILE_MANAGER_H_ 217 #endif // CC_TILE_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/resource_provider.cc ('k') | cc/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698