| Index: cc/scheduler/rate_limiter.cc
|
| diff --git a/cc/scheduler/rate_limiter.cc b/cc/scheduler/rate_limiter.cc
|
| index f0d44316e54bd07c6379258b90bebbcd2289d57f..68a152f6497480a2b0bfd41a7a37f252bd31449d 100644
|
| --- a/cc/scheduler/rate_limiter.cc
|
| +++ b/cc/scheduler/rate_limiter.cc
|
| @@ -5,7 +5,8 @@
|
| #include "cc/scheduler/rate_limiter.h"
|
|
|
| #include "base/debug/trace_event.h"
|
| -#include "cc/base/thread.h"
|
| +#include "base/location.h"
|
| +#include "base/single_thread_task_runner.h"
|
| #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
|
|
|
| namespace cc {
|
| @@ -13,17 +14,17 @@ namespace cc {
|
| scoped_refptr<RateLimiter> RateLimiter::Create(
|
| WebKit::WebGraphicsContext3D* context,
|
| RateLimiterClient* client,
|
| - Thread* thread) {
|
| - return make_scoped_refptr(new RateLimiter(context, client, thread));
|
| + base::SingleThreadTaskRunner* task_runner) {
|
| + return make_scoped_refptr(new RateLimiter(context, client, task_runner));
|
| }
|
|
|
| RateLimiter::RateLimiter(WebKit::WebGraphicsContext3D* context,
|
| RateLimiterClient* client,
|
| - Thread* thread)
|
| + base::SingleThreadTaskRunner* task_runner)
|
| : context_(context),
|
| active_(false),
|
| client_(client),
|
| - thread_(thread) {
|
| + task_runner_(task_runner) {
|
| DCHECK(context);
|
| }
|
|
|
| @@ -35,7 +36,8 @@ void RateLimiter::Start() {
|
|
|
| TRACE_EVENT0("cc", "RateLimiter::Start");
|
| active_ = true;
|
| - thread_->PostTask(base::Bind(&RateLimiter::RateLimitContext, this));
|
| + task_runner_->PostTask(FROM_HERE,
|
| + base::Bind(&RateLimiter::RateLimitContext, this));
|
| }
|
|
|
| void RateLimiter::Stop() {
|
|
|