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

Unified Diff: components/exo/buffer.h

Issue 2083853002: exo: Recreate Surface resources on context lost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make ContextFactory pure; hold on to buffer reference Created 4 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: components/exo/buffer.h
diff --git a/components/exo/buffer.h b/components/exo/buffer.h
index 6502cdfa2efae22697c71370cfbf7748e942be4f..36077283465c35f64fa30238d9c7f4f4fc2f0cb9 100644
--- a/components/exo/buffer.h
+++ b/components/exo/buffer.h
@@ -56,11 +56,13 @@ class Buffer : public base::SupportsWeakPtr<Buffer> {
// This function can be used to acquire a texture mailbox for the contents of
// buffer. Returns a release callback on success. The release callback should
// be called before a new texture mailbox can be acquired unless
- // |non_client_usage| is true.
+ // |non_client_usage| is true. |detach_callback| receives a callback that
+ // should be called when the buffer is detached from the current surface.
std::unique_ptr<cc::SingleReleaseCallback> ProduceTextureMailbox(
cc::TextureMailbox* mailbox,
bool secure_output_only,
- bool client_usage);
+ bool client_usage,
+ base::Closure* detach_callback);
reveman 2016/06/22 17:15:26 hm, I see how this works but it took a minute for
jbauman 2016/06/22 23:45:48 Done.
// Returns the size of the buffer.
gfx::Size GetSize() const;

Powered by Google App Engine
This is Rietveld 408576698