summaryrefslogtreecommitdiffstats
path: root/cc/rate_limiter.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/rate_limiter.h')
-rw-r--r--cc/rate_limiter.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/cc/rate_limiter.h b/cc/rate_limiter.h
index 1630864..935e64b 100644
--- a/cc/rate_limiter.h
+++ b/cc/rate_limiter.h
@@ -13,6 +13,8 @@ class WebGraphicsContext3D;
namespace cc {
+class Thread;
+
class RateLimiterClient {
public:
virtual void rateLimit() = 0;
@@ -24,7 +26,7 @@ public:
// compositor.
class RateLimiter : public base::RefCounted<RateLimiter> {
public:
- static scoped_refptr<RateLimiter> create(WebKit::WebGraphicsContext3D*, RateLimiterClient*);
+ static scoped_refptr<RateLimiter> create(WebKit::WebGraphicsContext3D*, RateLimiterClient*, Thread*);
void start();
@@ -32,7 +34,7 @@ public:
void stop();
private:
- RateLimiter(WebKit::WebGraphicsContext3D*, RateLimiterClient*);
+ RateLimiter(WebKit::WebGraphicsContext3D*, RateLimiterClient*, Thread*);
~RateLimiter();
friend class base::RefCounted<RateLimiter>;
@@ -43,6 +45,7 @@ private:
WebKit::WebGraphicsContext3D* m_context;
bool m_active;
RateLimiterClient *m_client;
+ Thread* m_thread;
};
}