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

Unified Diff: cc/layers/texture_layer_impl.h

Issue 23648014: cc: Move TextureMailbox::ReleaseCallback to SingleReleaseCallback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_impl.h
diff --git a/cc/layers/texture_layer_impl.h b/cc/layers/texture_layer_impl.h
index f85720688a66f544b9eb2374a649d35c3685b0d8..f136834337f2698bd27d85aa8beffa46690934dc 100644
--- a/cc/layers/texture_layer_impl.h
+++ b/cc/layers/texture_layer_impl.h
@@ -10,6 +10,7 @@
#include "base/callback.h"
#include "cc/base/cc_export.h"
#include "cc/layers/layer_impl.h"
+#include "cc/resources/scoped_release_callback.h"
namespace cc {
class ScopedResource;
@@ -61,7 +62,8 @@ class CC_EXPORT TextureLayerImpl : public LayerImpl {
virtual bool CanClipSelf() const OVERRIDE;
- void SetTextureMailbox(const TextureMailbox& mailbox);
+ void SetTextureMailbox(const TextureMailbox& mailbox,
+ ScopedReleaseCallback release_callback);
private:
TextureLayerImpl(LayerTreeImpl* tree_impl, int id, bool uses_mailbox);
@@ -81,6 +83,7 @@ class CC_EXPORT TextureLayerImpl : public LayerImpl {
scoped_ptr<ScopedResource> texture_copy_;
TextureMailbox texture_mailbox_;
+ ScopedReleaseCallback release_callback_;
bool uses_mailbox_;
bool own_mailbox_;
bool valid_texture_copy_;

Powered by Google App Engine
This is Rietveld 408576698