void WebGLLayerChromium::pushPropertiesTo(CCLayerImpl* layer) { CanvasLayerChromium::pushPropertiesTo(layer); CCTextureLayerImpl* textureLayer = static_cast<CCTextureLayerImpl*>(layer); textureLayer->setTextureId(m_textureId); textureLayer->setHasAlpha(m_hasAlpha); textureLayer->setPremultipliedAlpha(m_premultipliedAlpha); }
void TextureLayerChromium::pushPropertiesTo(CCLayerImpl* layer) { LayerChromium::pushPropertiesTo(layer); CCTextureLayerImpl* textureLayer = static_cast<CCTextureLayerImpl*>(layer); textureLayer->setFlipped(m_flipped); textureLayer->setUVRect(m_uvRect); textureLayer->setPremultipliedAlpha(m_premultipliedAlpha); textureLayer->setTextureId(m_textureId); }