Index: cc/layers/texture_layer_client.h |
diff --git a/cc/layers/texture_layer_client.h b/cc/layers/texture_layer_client.h |
index 187b12f16c4851a19227c3a9a082b64dbc939048..06de8ad8986a3874afe50f61892cfebaa75af8fc 100644 |
--- a/cc/layers/texture_layer_client.h |
+++ b/cc/layers/texture_layer_client.h |
@@ -19,9 +19,13 @@ class TextureLayerClient { |
// Returns the texture ID to be used for compositing. |
virtual unsigned PrepareTexture() = 0; |
- // Returns the context that is providing the texture. Used for rate limiting |
- // and detecting lost context. |
- virtual WebKit::WebGraphicsContext3D* Context3d() = 0; |
+ // Returns whether the context that provided this texture is lost. |
+ virtual bool IsContextLost() = 0; |
+ |
+ // Insert a rate limiting token into the context used to prepare the texture |
+ // for this layer. This will block if the producing context is too far ahead |
+ // of the consumer. |
+ virtual void RateLimitContext() = 0; |
// Returns true and provides a mailbox if a new frame is available. |
// Returns false if no new data is available |