зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1127405 - Remove the ForceRemove in CanvasClientSharedSurface to prevent crash. r=nical
This commit is contained in:
Родитель
5b8f79fc23
Коммит
83c3bcea0a
|
@ -409,13 +409,7 @@ CanvasClientSharedSurface::Update(gfx::IntSize aSize, ClientCanvasLayer* aLayer)
|
|||
void
|
||||
CanvasClientSharedSurface::ClearSurfaces()
|
||||
{
|
||||
if (mFrontTex && (mFront || mPrevFront)) {
|
||||
// Force a synchronous destruction so that the TextureHost does not
|
||||
// outlive the SharedSurface. This won't be needed once TextureClient/Host
|
||||
// and SharedSurface are merged.
|
||||
mFrontTex->ForceRemove(true /* sync */);
|
||||
mFrontTex = nullptr;
|
||||
}
|
||||
// It is important to destroy the SharedSurface *after* the TextureClient.
|
||||
mFront = nullptr;
|
||||
mPrevFront = nullptr;
|
||||
|
|
Загрузка…
Ссылка в новой задаче