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

Unified Diff: cc/layers/texture_layer_client.h

Issue 12374028: Allow WebExternalTextureLayerClient to work with mailboxes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Linker Fix Created 7 years, 8 months 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
« no previous file with comments | « cc/layers/texture_layer.cc ('k') | cc/layers/texture_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/texture_layer_client.h
diff --git a/cc/layers/texture_layer_client.h b/cc/layers/texture_layer_client.h
index 39f1e80d4cb6997db6445379e205090b71b2c56b..b5c0de61045086add6a5581d52f88c2b80c65608 100644
--- a/cc/layers/texture_layer_client.h
+++ b/cc/layers/texture_layer_client.h
@@ -9,6 +9,7 @@ namespace WebKit { class WebGraphicsContext3D; }
namespace cc {
class ResourceUpdateQueue;
+class TextureMailbox;
class TextureLayerClient {
public:
@@ -21,6 +22,11 @@ class TextureLayerClient {
// and detecting lost context.
virtual WebKit::WebGraphicsContext3D* Context3d() = 0;
+ // Returns true and provides a mailbox if a new frame is available.
+ // Returns false if no new data is available
+ // and the old mailbox is to be reused.
+ virtual bool PrepareTextureMailbox(TextureMailbox* mailbox) = 0;
+
protected:
virtual ~TextureLayerClient() {}
};
« no previous file with comments | « cc/layers/texture_layer.cc ('k') | cc/layers/texture_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698