From 7e75f1622f36400f421c1673ae640b164ef79794 Mon Sep 17 00:00:00 2001 From: "Carsten \"Tomcat\" Book" Date: Mon, 28 Dec 2015 12:07:16 +0100 Subject: [PATCH] Backed out changeset d569d015069d (bug 1176024) for crashes --- gfx/layers/client/TextureClient.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/gfx/layers/client/TextureClient.cpp b/gfx/layers/client/TextureClient.cpp index 13778783481..3e2646111d6 100644 --- a/gfx/layers/client/TextureClient.cpp +++ b/gfx/layers/client/TextureClient.cpp @@ -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; }