void PluginLayerChromium::pushPropertiesTo(CCLayerImpl* layer)
{
    LayerChromium::pushPropertiesTo(layer);

    CCPluginLayerImpl* pluginLayer = static_cast<CCPluginLayerImpl*>(layer);
    pluginLayer->setTextureId(m_textureId);
    pluginLayer->setFlipped(m_flipped);
}
Example #2
0
void PluginLayerChromium::pushPropertiesTo(CCLayerImpl* layer)
{
    LayerChromium::pushPropertiesTo(layer);

    CCPluginLayerImpl* pluginLayer = static_cast<CCPluginLayerImpl*>(layer);
    pluginLayer->setTextureId(m_textureId);
    pluginLayer->setFlipped(m_flipped);
    pluginLayer->setUVRect(m_uvRect);
    pluginLayer->setIOSurfaceProperties(m_ioSurfaceWidth, m_ioSurfaceHeight, m_ioSurfaceId);
#if OS(ANDROID)
    pluginLayer->setVideoTextureId(m_videoTextureId);
    pluginLayer->setVideoRect(m_videoRect);
#endif
}