Index: cc/scheduler/rate_limiter.h |
diff --git a/cc/scheduler/rate_limiter.h b/cc/scheduler/rate_limiter.h |
index 04b90772e36f777d86d3e61b5585a1d00a6ca7bf..73073c49827d9d1eeb2dfc251b8b7736a286f034 100644 |
--- a/cc/scheduler/rate_limiter.h |
+++ b/cc/scheduler/rate_limiter.h |
@@ -9,9 +9,8 @@ |
namespace base { class SingleThreadTaskRunner; } |
-namespace WebKit { class WebGraphicsContext3D; } |
- |
namespace cc { |
+class TextureLayerClient; |
class RateLimiterClient { |
public: |
@@ -21,15 +20,15 @@ class RateLimiterClient { |
virtual ~RateLimiterClient() {} |
}; |
-// A RateLimiter can be used to make sure that a single context does not |
-// dominate all execution time. To use, construct a RateLimiter class around |
-// the context and call Start() whenever calls are made on the context outside |
-// of normal flow control. RateLimiter will block if the context is too far |
-// ahead of the compositor. |
+// A RateLimiter can be used to make sure that a single TextureLayerClient's |
+// context does not dominate all execution time. To use, construct a |
+// RateLimiter class around the client and call Start() whenever calls are made |
+// on the context outside of normal flow control. RateLimiter will block if the |
+// context is too far ahead of the compositor. |
class RateLimiter : public base::RefCounted<RateLimiter> { |
public: |
static scoped_refptr<RateLimiter> Create( |
- WebKit::WebGraphicsContext3D* context, |
+ TextureLayerClient* texture_layer_client, |
RateLimiterClient* client, |
base::SingleThreadTaskRunner* task_runner); |
@@ -41,14 +40,14 @@ class RateLimiter : public base::RefCounted<RateLimiter> { |
private: |
friend class base::RefCounted<RateLimiter>; |
- RateLimiter(WebKit::WebGraphicsContext3D* context, |
+ RateLimiter(TextureLayerClient* texture_layer_client, |
RateLimiterClient* client, |
base::SingleThreadTaskRunner* task_runner); |
~RateLimiter(); |
void RateLimitContext(); |
- WebKit::WebGraphicsContext3D* context_; |
+ TextureLayerClient* texture_layer_client_; |
bool active_; |
RateLimiterClient* client_; |
base::SingleThreadTaskRunner* task_runner_; |