|
Lines 310-316
void WebPluginContainerImpl::reportGeome
WebKit/chromium/src/WebPluginContainerImpl.cpp_sec1
|
| 310 |
void WebPluginContainerImpl::setBackingTextureId(unsigned id) |
310 |
void WebPluginContainerImpl::setBackingTextureId(unsigned id) |
| 311 |
{ |
311 |
{ |
| 312 |
#if USE(ACCELERATED_COMPOSITING) |
312 |
#if USE(ACCELERATED_COMPOSITING) |
| 313 |
unsigned currId = m_platformLayer->getTextureId(); |
313 |
unsigned currId = m_platformLayer->textureId(); |
| 314 |
if (currId == id) |
314 |
if (currId == id) |
| 315 |
return; |
315 |
return; |
| 316 |
|
316 |
|
|
Lines 443-457
void WebPluginContainerImpl::willDestroy
WebKit/chromium/src/WebPluginContainerImpl.cpp_sec2
|
| 443 |
#if USE(ACCELERATED_COMPOSITING) |
443 |
#if USE(ACCELERATED_COMPOSITING) |
| 444 |
WebCore::LayerChromium* WebPluginContainerImpl::platformLayer() const |
444 |
WebCore::LayerChromium* WebPluginContainerImpl::platformLayer() const |
| 445 |
{ |
445 |
{ |
| 446 |
// FIXME: In the event of a context lost, the texture needs to be recreated on the compositor's |
446 |
return m_platformLayer->textureId() ? m_platformLayer.get() : 0; |
| 447 |
// context and rebound to the platform layer here. |
|
|
| 448 |
unsigned backingTextureId = m_webPlugin->getBackingTextureId(); |
| 449 |
if (!backingTextureId) |
| 450 |
return 0; |
| 451 |
|
| 452 |
m_platformLayer->setTextureId(backingTextureId); |
| 453 |
|
| 454 |
return m_platformLayer.get(); |
| 455 |
} |
447 |
} |
| 456 |
#endif |
448 |
#endif |
| 457 |
|
449 |
|