mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
Bug 1127405 - Remove the ForceRemove in CanvasClientSharedSurface to prevent crash. r=nical
This commit is contained in:
parent
5b8f79fc23
commit
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;
|
||||
}
|
||||
mFrontTex = nullptr;
|
||||
// It is important to destroy the SharedSurface *after* the TextureClient.
|
||||
mFront = nullptr;
|
||||
mPrevFront = nullptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user