Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / public / platform / WebExternalTextureLayerClient.h
index 148e63f..bfce0e2 100644 (file)
@@ -43,8 +43,11 @@ public:
     virtual bool prepareMailbox(WebExternalTextureMailbox*, WebExternalBitmap* = 0) = 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;
+    // a sync point to wait on before the mailbox could be consumes again by the client. The
+    // boolean flag indicates if the mailbox resource is treated as lost by client.
+    // FIXME(hmin): Remove the default value for lostResource once the chromium part CL at
+    // https://codereview.chromium.org/369823002 is landed.
+    virtual void mailboxReleased(const WebExternalTextureMailbox&, bool lostResource = false) = 0;
 
 protected:
     virtual ~WebExternalTextureLayerClient() { }