Index: cc/texture_layer_impl.cc |
diff --git a/cc/texture_layer_impl.cc b/cc/texture_layer_impl.cc |
index b94fe1363d1c49e77447bc7f218c55e02b7dc89b..de3e62aab85337c3aec479d67e80cc58d14e73c6 100644 |
--- a/cc/texture_layer_impl.cc |
+++ b/cc/texture_layer_impl.cc |
@@ -54,6 +54,29 @@ void TextureLayerImpl::setTextureMailbox(const std::string& mailboxName, const b |
m_pendingMailboxReleaseCallback = releaseCallback; |
} |
+scoped_ptr<LayerImpl> TextureLayerImpl::createLayerImpl(LayerTreeImpl* treeImpl) |
+{ |
+ return TextureLayerImpl::create(treeImpl, id(), m_usesMailbox).PassAs<LayerImpl>(); |
+} |
+ |
+void TextureLayerImpl::pushPropertiesTo(LayerImpl* layer) |
+{ |
+ LayerImpl::pushPropertiesTo(layer); |
+ |
+ TextureLayerImpl* textureLayer = static_cast<TextureLayerImpl*>(layer); |
+ textureLayer->setFlipped(m_flipped); |
+ textureLayer->setUVRect(m_uvRect); |
+ textureLayer->setVertexOpacity(m_vertexOpacity); |
+ textureLayer->setPremultipliedAlpha(m_premultipliedAlpha); |
+ if (m_usesMailbox) { |
+ textureLayer->setTextureMailbox(m_pendingMailboxName, m_pendingMailboxReleaseCallback); |
+ m_pendingMailboxReleaseCallback.Reset(); |
+ } else { |
+ textureLayer->setTextureId(m_textureId); |
+ } |
+} |
+ |
+ |
void TextureLayerImpl::willDraw(ResourceProvider* resourceProvider) |
{ |
if (!m_usesMailbox) { |