CCIOSurfaceLayerImpl::~CCIOSurfaceLayerImpl() { if (!m_ioSurfaceTextureId) return; CCGraphicsContext* context = layerTreeHostImpl()->context(); // FIXME: Implement this path for software compositing. WebKit::WebGraphicsContext3D* context3d = context->context3D(); if (context3d) context3d->deleteTexture(m_ioSurfaceTextureId); }
CCVideoLayerImpl::~CCVideoLayerImpl() { // See comment in constructor for why this doesn't need a lock. ASSERT(CCProxy::isMainThreadBlocked()); if (m_provider) { m_provider->setVideoFrameProviderClient(0); m_provider = 0; } freePlaneData(layerTreeHostImpl()->layerRenderer()); #if !ASSERT_DISABLED for (unsigned i = 0; i < WebKit::WebVideoFrame::maxPlanes; ++i) ASSERT(!m_framePlanes[i].textureId); #endif }
void CCVideoLayerImpl::setNeedsRedraw() { layerTreeHostImpl()->setNeedsRedraw(); }
void CCVideoLayerImpl::didLoseContext() { freePlaneData(layerTreeHostImpl()->layerRenderer()); }