Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Unified Diff: cc/layers/texture_layer_client.h

Issue 51653008: Remove WGC3D::isContextLost references from cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698