| Index: cc/scheduler/rate_limiter.h
|
| diff --git a/cc/scheduler/rate_limiter.h b/cc/scheduler/rate_limiter.h
|
| index 0d2de38ebfcc251a6246e3ad4e6ae678379edaae..04b90772e36f777d86d3e61b5585a1d00a6ca7bf 100644
|
| --- a/cc/scheduler/rate_limiter.h
|
| +++ b/cc/scheduler/rate_limiter.h
|
| @@ -7,12 +7,12 @@
|
|
|
| #include "base/memory/ref_counted.h"
|
|
|
| +namespace base { class SingleThreadTaskRunner; }
|
| +
|
| namespace WebKit { class WebGraphicsContext3D; }
|
|
|
| namespace cc {
|
|
|
| -class Thread;
|
| -
|
| class RateLimiterClient {
|
| public:
|
| virtual void RateLimit() = 0;
|
| @@ -31,7 +31,7 @@ class RateLimiter : public base::RefCounted<RateLimiter> {
|
| static scoped_refptr<RateLimiter> Create(
|
| WebKit::WebGraphicsContext3D* context,
|
| RateLimiterClient* client,
|
| - Thread* thread);
|
| + base::SingleThreadTaskRunner* task_runner);
|
|
|
| void Start();
|
|
|
| @@ -43,7 +43,7 @@ class RateLimiter : public base::RefCounted<RateLimiter> {
|
|
|
| RateLimiter(WebKit::WebGraphicsContext3D* context,
|
| RateLimiterClient* client,
|
| - Thread* thread);
|
| + base::SingleThreadTaskRunner* task_runner);
|
| ~RateLimiter();
|
|
|
| void RateLimitContext();
|
| @@ -51,7 +51,7 @@ class RateLimiter : public base::RefCounted<RateLimiter> {
|
| WebKit::WebGraphicsContext3D* context_;
|
| bool active_;
|
| RateLimiterClient* client_;
|
| - Thread* thread_;
|
| + base::SingleThreadTaskRunner* task_runner_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(RateLimiter);
|
| };
|
|
|