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

Unified Diff: cc/texture_layer.h

Issue 11888010: Cosmetic cleanup to texture_layer mailboxes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years, 11 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
« no previous file with comments | « cc/resource_provider.cc ('k') | cc/texture_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/texture_layer.h
diff --git a/cc/texture_layer.h b/cc/texture_layer.h
index bf6ac46d044ea94f1feb2a1f8e344dec7f77e4c0..f6b17fe61ea399d5f97a5222a732edd52e32db59 100644
--- a/cc/texture_layer.h
+++ b/cc/texture_layer.h
@@ -10,6 +10,7 @@
#include "base/callback.h"
#include "cc/cc_export.h"
#include "cc/layer.h"
+#include "cc/texture_mailbox.h"
namespace WebKit {
class WebGraphicsContext3D;
@@ -22,8 +23,6 @@ class TextureLayerClient;
// A Layer containing a the rendered output of a plugin instance.
class CC_EXPORT TextureLayer : public Layer {
public:
- typedef base::Callback<void(unsigned)> MailboxCallback;
-
// If this texture layer requires special preparation logic for each frame driven by
// the compositor, pass in a non-nil client. Pass in a nil client pointer if texture updates
// are driven by an external process.
@@ -57,7 +56,7 @@ public:
void setTextureId(unsigned);
// Code path for plugins which supply their own texture ID.
- void setTextureMailbox(const std::string&, const MailboxCallback&);
+ void setTextureMailbox(const TextureMailbox&);
void willModifyTexture();
@@ -78,7 +77,6 @@ protected:
private:
TextureLayerClient* m_client;
bool m_usesMailbox;
- MailboxCallback m_mailboxReleaseCallback;
bool m_flipped;
gfx::PointF m_uvTopLeft;
@@ -91,7 +89,7 @@ private:
bool m_contentCommitted;
unsigned m_textureId;
- std::string m_mailboxName;
+ TextureMailbox m_textureMailbox;
};
}
« no previous file with comments | « cc/resource_provider.cc ('k') | cc/texture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698