| Index: cc/texture_layer_impl.h
|
| diff --git a/cc/texture_layer_impl.h b/cc/texture_layer_impl.h
|
| index 47e9ca5686364fc635dbf8125c93cac023ff29b5..1c225a42460ad162c1537b49e824c4e9f7cc502c 100644
|
| --- a/cc/texture_layer_impl.h
|
| +++ b/cc/texture_layer_impl.h
|
| @@ -7,14 +7,16 @@
|
|
|
| #include "cc/cc_export.h"
|
| #include "cc/layer_impl.h"
|
| +#include <string>
|
|
|
| namespace cc {
|
| +class MailboxReleaseClient;
|
|
|
| class CC_EXPORT TextureLayerImpl : public LayerImpl {
|
| public:
|
| - static scoped_ptr<TextureLayerImpl> create(LayerTreeImpl* treeImpl, int id)
|
| + static scoped_ptr<TextureLayerImpl> create(LayerTreeImpl* treeImpl, int id, MailboxReleaseClient* client = 0)
|
| {
|
| - return make_scoped_ptr(new TextureLayerImpl(treeImpl, id));
|
| + return make_scoped_ptr(new TextureLayerImpl(treeImpl, id, client));
|
| }
|
| virtual ~TextureLayerImpl();
|
|
|
| @@ -37,17 +39,26 @@ public:
|
| // 0--3
|
| void setVertexOpacity(const float vertexOpacity[4]);
|
|
|
| + void setTextureMailbox(const std::string& mailboxName);
|
| +
|
| private:
|
| - TextureLayerImpl(LayerTreeImpl* treeImpl, int id);
|
| + TextureLayerImpl(LayerTreeImpl* treeImpl, int id, MailboxReleaseClient* client);
|
|
|
| virtual const char* layerTypeAsString() const OVERRIDE;
|
|
|
| + void handleMailboxResources(ResourceProvider*);
|
| +
|
| unsigned m_textureId;
|
| ResourceProvider::ResourceId m_externalTextureResource;
|
| bool m_premultipliedAlpha;
|
| bool m_flipped;
|
| gfx::RectF m_uvRect;
|
| float m_vertexOpacity[4];
|
| +
|
| + bool m_newMailboxPending;
|
| + std::string m_newMailbox;
|
| + std::string m_lastMailbox;
|
| + MailboxReleaseClient* m_mailboxClient;
|
| };
|
|
|
| }
|
|
|