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

Unified Diff: cc/base/worker_pool.h

Issue 12519006: cc:: Add RenderingStatsInstrumentation to manage collection of RenderingStats (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Updated all tests 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 | « no previous file | 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 8e00b6b8e541f7d9cc693cf94e105d106e117242..af130f3717d7376d87e8c1e1f2820c0167a8d4ef 100644
--- a/cc/base/worker_pool.h
+++ b/cc/base/worker_pool.h
@@ -15,7 +15,6 @@
#include "cc/base/scoped_ptr_deque.h"
namespace cc {
-struct RenderingStats;
namespace internal {
@@ -25,10 +24,9 @@ class WorkerPoolTask {
virtual bool IsCheap() = 0;
- virtual void Run(RenderingStats* rendering_stats) = 0;
+ virtual void Run() = 0;
- virtual void RunOnThread(
- RenderingStats* rendering_stats, unsigned thread_index) = 0;
+ virtual void RunOnThread(unsigned thread_index) = 0;
void DidComplete();
@@ -52,7 +50,7 @@ class CC_EXPORT WorkerPoolClient {
// of all pending tasks at shutdown.
class WorkerPool {
public:
- typedef base::Callback<void(RenderingStats*)> Callback;
+ typedef base::Callback<void()> Callback;
virtual ~WorkerPool();
@@ -78,12 +76,6 @@ class WorkerPool {
// Set time limit for running cheap tasks.
void SetRunCheapTasksTimeLimit(base::TimeTicks run_cheap_tasks_time_limit);
- // Toggle rendering stats collection.
- void SetRecordRenderingStats(bool record_rendering_stats);
-
- // Collect rendering stats of all completed tasks.
- void GetRenderingStats(RenderingStats* stats);
-
protected:
WorkerPool(WorkerPoolClient* client,
size_t num_threads,
« no previous file with comments | « no previous file | cc/base/worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698