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

Unified Diff: cc/base/worker_pool.h

Issue 13859012: cc: Remove cheapness estimator usage from tile manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: still need static_cast to print size_t Created 7 years, 8 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 | « cc/base/switches.cc ('k') | cc/base/worker_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/worker_pool.h
diff --git a/cc/base/worker_pool.h b/cc/base/worker_pool.h
index 172165c0153b7336004866ac20bb9b16711e82d6..8e14824024446eb74b148c90ec3b86812c727b9a 100644
--- a/cc/base/worker_pool.h
+++ b/cc/base/worker_pool.h
@@ -22,10 +22,6 @@ class WorkerPoolTask {
public:
virtual ~WorkerPoolTask();
- virtual bool IsCheap() = 0;
-
- virtual void Run() = 0;
-
virtual void RunOnThread(unsigned thread_index) = 0;
void DidComplete();
@@ -73,9 +69,6 @@ class WorkerPool {
// is posted to the thread that called PostTaskAndReply().
void PostTaskAndReply(const Callback& task, const base::Closure& reply);
- // Set time limit for running cheap tasks.
- void SetRunCheapTasksTimeLimit(base::TimeTicks run_cheap_tasks_time_limit);
-
protected:
WorkerPool(WorkerPoolClient* client,
size_t num_threads,
@@ -92,21 +85,13 @@ class WorkerPool {
void OnIdle();
void ScheduleCheckForCompletedTasks();
void CheckForCompletedTasks();
- void CancelCheckForCompletedTasks();
void DispatchCompletionCallbacks();
- void ScheduleRunCheapTasks();
- void RunCheapTasks();
WorkerPoolClient* client_;
scoped_refptr<base::MessageLoopProxy> origin_loop_;
base::WeakPtrFactory<WorkerPool> weak_ptr_factory_;
- base::TimeTicks check_for_completed_tasks_time_;
base::TimeDelta check_for_completed_tasks_delay_;
- base::CancelableClosure check_for_completed_tasks_callback_;
bool check_for_completed_tasks_pending_;
- const base::Closure run_cheap_tasks_callback_;
- base::TimeTicks run_cheap_tasks_time_limit_;
- bool run_cheap_tasks_pending_;
// Holds all completed tasks for which we have not yet dispatched
// reply callbacks.
« no previous file with comments | « cc/base/switches.cc ('k') | cc/base/worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698