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

Unified Diff: trunk/src/cc/base/worker_pool.cc

Issue 13334005: Revert 191400 "cc: Add ‘chromium_code’: 1 to cc.gyp and cc_t..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 9 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
« no previous file with comments | « trunk/src/cc/base/tiling_data_unittest.cc ('k') | trunk/src/cc/cc.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/cc/base/worker_pool.cc
===================================================================
--- trunk/src/cc/base/worker_pool.cc (revision 191411)
+++ trunk/src/cc/base/worker_pool.cc (working copy)
@@ -177,9 +177,7 @@
new base::DelegateSimpleThread(
this,
thread_name_prefix +
- base::StringPrintf(
- "Worker%lu",
- static_cast<unsigned long>(workers_.size() + 1)).c_str()));
+ base::StringPrintf("Worker%lu", workers_.size() + 1).c_str()));
worker->Start();
workers_.push_back(worker.Pass());
}
@@ -193,9 +191,9 @@
// Cancel all pending callbacks.
weak_ptr_factory_.InvalidateWeakPtrs();
- DCHECK_EQ(0u, pending_tasks_.size());
- DCHECK_EQ(0u, completed_tasks_.size());
- DCHECK_EQ(0u, running_task_count_);
+ DCHECK_EQ(pending_tasks_.size(), 0);
+ DCHECK_EQ(completed_tasks_.size(), 0);
+ DCHECK_EQ(running_task_count_, 0);
}
void WorkerPool::Inner::Shutdown() {
@@ -432,7 +430,7 @@
// Cancel all pending callbacks.
weak_ptr_factory_.InvalidateWeakPtrs();
- DCHECK_EQ(0u, completed_tasks_.size());
+ DCHECK_EQ(completed_tasks_.size(), 0);
}
void WorkerPool::Shutdown() {
« no previous file with comments | « trunk/src/cc/base/tiling_data_unittest.cc ('k') | trunk/src/cc/cc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698