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

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

Issue 24153017: cc: Always check for completed raster tasks before scheduling more tasks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit tests Created 7 years, 3 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/resources/pixel_buffer_raster_worker_pool.cc ('k') | cc/resources/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_RESOURCES_TILE_MANAGER_H_ 5 #ifndef CC_RESOURCES_TILE_MANAGER_H_
6 #define CC_RESOURCES_TILE_MANAGER_H_ 6 #define CC_RESOURCES_TILE_MANAGER_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 size_t bytes_releasable_; 171 size_t bytes_releasable_;
172 size_t resources_releasable_; 172 size_t resources_releasable_;
173 173
174 bool ever_exceeded_memory_budget_; 174 bool ever_exceeded_memory_budget_;
175 MemoryHistory::Entry memory_stats_from_last_assign_; 175 MemoryHistory::Entry memory_stats_from_last_assign_;
176 176
177 RenderingStatsInstrumentation* rendering_stats_instrumentation_; 177 RenderingStatsInstrumentation* rendering_stats_instrumentation_;
178 178
179 bool did_initialize_visible_tile_; 179 bool did_initialize_visible_tile_;
180 bool did_check_for_completed_tasks_since_last_schedule_tasks_;
180 181
181 typedef base::hash_map<uint32_t, RasterWorkerPool::Task> PixelRefTaskMap; 182 typedef base::hash_map<uint32_t, RasterWorkerPool::Task> PixelRefTaskMap;
182 typedef base::hash_map<int, PixelRefTaskMap> LayerPixelRefTaskMap; 183 typedef base::hash_map<int, PixelRefTaskMap> LayerPixelRefTaskMap;
183 LayerPixelRefTaskMap image_decode_tasks_; 184 LayerPixelRefTaskMap image_decode_tasks_;
184 185
185 typedef base::hash_map<int, int> LayerCountMap; 186 typedef base::hash_map<int, int> LayerCountMap;
186 LayerCountMap used_layer_counts_; 187 LayerCountMap used_layer_counts_;
187 188
188 RasterTaskCompletionStats update_visible_tiles_stats_; 189 RasterTaskCompletionStats update_visible_tiles_stats_;
189 190
190 DISALLOW_COPY_AND_ASSIGN(TileManager); 191 DISALLOW_COPY_AND_ASSIGN(TileManager);
191 }; 192 };
192 193
193 } // namespace cc 194 } // namespace cc
194 195
195 #endif // CC_RESOURCES_TILE_MANAGER_H_ 196 #endif // CC_RESOURCES_TILE_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/resources/pixel_buffer_raster_worker_pool.cc ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698