Backed out changeset d569d015069d (bug 1176024) for crashes

This commit is contained in:
Carsten "Tomcat" Book 2015-12-28 12:07:16 +01:00
parent 0c3e17bd54
commit 7e75f1622f

View File

@ -363,15 +363,6 @@ TextureClient::Lock(OpenMode aMode)
mIsLocked = mData->Lock(aMode, mReleaseFenceHandle.IsValid() ? &mReleaseFenceHandle : nullptr);
mOpenMode = aMode;
if (mIsLocked && CanExposeDrawTarget() && (aMode & OpenMode::OPEN_WRITE) && NS_IsMainThread()) {
if (!BorrowDrawTarget()) {
// Failed to get a DrawTarget, means we won't be able to write into the
// texture, might as well fail now.
Unlock();
return false;
}
}
return mIsLocked;
}