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

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: 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
Index: cc/texture_layer.h
diff --git a/cc/texture_layer.h b/cc/texture_layer.h
index 36aa86658fc39a4265b2898ad0d6a3d5adf42eed..fb2e6a764dda04c474ca4a88d7435bc0083ab3f9 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::RectF m_uvRect;
@@ -90,7 +88,7 @@ private:
bool m_contentCommitted;
unsigned m_textureId;
- std::string m_mailboxName;
+ TextureMailbox m_textureMailbox;
};
}
« cc/resource_provider.cc ('K') | « cc/resource_provider.cc ('k') | cc/texture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698