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

Unified Diff: public/platform/WebExternalTextureLayerClient.h

Issue 369043003: Let canvas decide how to handle the case of resource lost reported by client: 2D part (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: not use lostResource flag Created 6 years, 6 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: public/platform/WebExternalTextureLayerClient.h
diff --git a/public/platform/WebExternalTextureLayerClient.h b/public/platform/WebExternalTextureLayerClient.h
index 148e63ffb9dd171d3f7c8ff6e83958e7d9a8a268..83c6b32bf6651852eb11d8933ccc48242d141272 100644
--- a/public/platform/WebExternalTextureLayerClient.h
+++ b/public/platform/WebExternalTextureLayerClient.h
@@ -43,8 +43,9 @@ 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.
+ virtual void mailboxReleased(const WebExternalTextureMailbox&, bool = false) = 0;
danakj 2014/07/03 15:09:02 can you give this a variable name, variable names
Hongbo Min 2014/07/07 04:30:28 Done.
protected:
virtual ~WebExternalTextureLayerClient() { }

Powered by Google App Engine
This is Rietveld 408576698