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

Unified Diff: cc/tile_manager.cc

Issue 12079028: cc: Fix RasterWorkerPool shutdown crash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« cc/raster_worker_pool.cc ('K') | « cc/raster_worker_pool.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tile_manager.cc
diff --git a/cc/tile_manager.cc b/cc/tile_manager.cc
index f06c519e102376f193e128fd76eb57115c0730e9..23ca889d484a4d96716a5abe6f43cab819842fe2 100644
--- a/cc/tile_manager.cc
+++ b/cc/tile_manager.cc
@@ -126,6 +126,9 @@ TileManager::TileManager(
manage_tiles_call_count_(0),
bytes_pending_set_pixels_(0),
ever_exceeded_memory_budget_(false) {
+ bool worker_pool_is_running = raster_worker_pool_->Start();
+ CHECK(worker_pool_is_running);
+
for (int i = 0; i < NUM_STATES; ++i) {
for (int j = 0; j < NUM_TREES; ++j) {
for (int k = 0; k < NUM_BINS; ++k)
« cc/raster_worker_pool.cc ('K') | « cc/raster_worker_pool.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698