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

Unified Diff: Source/Platform/chromium/public/WebExternalTextureLayerClient.h

Issue 13638008: Blink API to allow mailbox usage with texture layers for WebGL and Canvas2D. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase plus copyright header. 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
Index: Source/Platform/chromium/public/WebExternalTextureLayerClient.h
diff --git a/Source/Platform/chromium/public/WebExternalTextureLayerClient.h b/Source/Platform/chromium/public/WebExternalTextureLayerClient.h
index ef67b81a5d581bce73b9a6a68f26232fba11e430..4829600c21f94fd14262fd417331b98c55995be2 100644
--- a/Source/Platform/chromium/public/WebExternalTextureLayerClient.h
+++ b/Source/Platform/chromium/public/WebExternalTextureLayerClient.h
@@ -32,6 +32,7 @@
namespace WebKit {
class WebGraphicsContext3D;
+struct WebExternalTextureMailbox;
class WebTextureUpdater {
public:
@@ -46,6 +47,14 @@ public:
virtual unsigned prepareTexture(WebTextureUpdater&) = 0;
virtual WebGraphicsContext3D* context() = 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 prepareMailbox(WebExternalTextureMailbox*) = 0;
+
+ // Notifies the client when a mailbox is no longer in use by the compositor and provides
+ // a sync point to wait on before the mailbox could be consumes again by the client.
+ virtual void mailboxReleased(const WebExternalTextureMailbox&) = 0;
+
protected:
virtual ~WebExternalTextureLayerClient() { }
};
« no previous file with comments | « Source/Platform/chromium/public/WebExternalTextureLayer.h ('k') | Source/Platform/chromium/public/WebExternalTextureMailbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698