Index: cc/scheduler/frame_rate_controller.h |
diff --git a/cc/scheduler/frame_rate_controller.h b/cc/scheduler/frame_rate_controller.h |
index 70964e25f9834410a49e45033f384076e65d911f..bf6674460175da870121e53351b6f1715cfafc84 100644 |
--- a/cc/scheduler/frame_rate_controller.h |
+++ b/cc/scheduler/frame_rate_controller.h |
@@ -11,9 +11,10 @@ |
#include "base/time.h" |
#include "cc/base/cc_export.h" |
+namespace base { class SingleThreadTaskRunner; } |
+ |
namespace cc { |
-class Thread; |
class TimeSource; |
class FrameRateController; |
@@ -38,7 +39,7 @@ class CC_EXPORT FrameRateController { |
explicit FrameRateController(scoped_refptr<TimeSource> timer); |
// Alternate form of FrameRateController with unthrottled frame-rate. |
- explicit FrameRateController(Thread* thread); |
+ explicit FrameRateController(base::SingleThreadTaskRunner* task_runner); |
virtual ~FrameRateController(); |
void SetClient(FrameRateControllerClient* client) { client_ = client; } |
@@ -85,7 +86,7 @@ class CC_EXPORT FrameRateController { |
// Members for unthrottled frame-rate. |
bool is_time_source_throttling_; |
base::WeakPtrFactory<FrameRateController> weak_factory_; |
- Thread* thread_; |
+ base::SingleThreadTaskRunner* task_runner_; |
private: |
DISALLOW_COPY_AND_ASSIGN(FrameRateController); |