Index: cc/texture_layer_impl.cc |
diff --git a/cc/texture_layer_impl.cc b/cc/texture_layer_impl.cc |
index 6ea69bc9ab66fa72d2633f66536874fc688fa358..279decc948123f6dbd50908bb4a57ccb96ecf598 100644 |
--- a/cc/texture_layer_impl.cc |
+++ b/cc/texture_layer_impl.cc |
@@ -54,6 +54,29 @@ void TextureLayerImpl::setTextureMailbox(const TextureMailbox& mailbox) |
m_hasPendingMailbox = true; |
} |
+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->setUVTopLeft(m_uvTopLeft); |
+ textureLayer->setUVBottomRight(m_uvBottomRight); |
+ textureLayer->setVertexOpacity(m_vertexOpacity); |
+ textureLayer->setPremultipliedAlpha(m_premultipliedAlpha); |
+ if (m_usesMailbox) { |
+ textureLayer->setTextureMailbox(m_pendingTextureMailbox); |
+ } else { |
+ textureLayer->setTextureId(m_textureId); |
+ } |
+} |
+ |
+ |
void TextureLayerImpl::willDraw(ResourceProvider* resourceProvider) |
{ |
if (!m_usesMailbox) { |