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

Unified Diff: cc/layers/texture_layer_client.h

Issue 23648014: cc: Move TextureMailbox::ReleaseCallback to SingleReleaseCallback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: releasecallback: rebase Created 7 years, 3 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: cc/layers/texture_layer_client.h
diff --git a/cc/layers/texture_layer_client.h b/cc/layers/texture_layer_client.h
index 73d34b30775eedec4fae23a002110225b33d2bca..a1db51ab87e21a15b88420fd541dc27b8a2a6692 100644
--- a/cc/layers/texture_layer_client.h
+++ b/cc/layers/texture_layer_client.h
@@ -5,6 +5,8 @@
#ifndef CC_LAYERS_TEXTURE_LAYER_CLIENT_H_
#define CC_LAYERS_TEXTURE_LAYER_CLIENT_H_
+#include "cc/resources/scoped_release_callback.h"
+
namespace WebKit { class WebGraphicsContext3D; }
namespace cc {
@@ -24,8 +26,10 @@ class TextureLayerClient {
// 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,
- bool use_shared_memory) = 0;
+ virtual bool PrepareTextureMailbox(
+ TextureMailbox* mailbox,
+ scoped_ptr<ScopedReleaseCallback>* release_callback,
+ bool use_shared_memory) = 0;
protected:
virtual ~TextureLayerClient() {}

Powered by Google App Engine
This is Rietveld 408576698