Skip to content

Commit

Permalink
Bug 958040 - Temporarily turn an assertion into a warning to fix OMTC…
Browse files Browse the repository at this point in the history
… Linux. r=bjacob
  • Loading branch information
nical committed Jan 10, 2014
1 parent 248db83 commit bc40f52
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions gfx/layers/client/TextureClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,8 @@ TemporaryRef<gfx::DrawTarget>
BufferTextureClient::GetAsDrawTarget()
{
MOZ_ASSERT(IsValid());
// XXX - uncomment when ContentClient's locking is fixed
// MOZ_ASSERT(mLocked);
// XXX - Turn this into a fatal assertion as soon as Bug 952507 is fixed
NS_WARN_IF_FALSE(mLocked, "GetAsDrawTarget should be called on locked textures only");

if (mDrawTarget) {
return mDrawTarget;
Expand Down Expand Up @@ -560,7 +560,8 @@ BufferTextureClient::GetAsDrawTarget()
bool
BufferTextureClient::Lock(OpenMode aMode)
{
MOZ_ASSERT(!mLocked);
// XXX - Turn this into a fatal assertion as soon as Bug 952507 is fixed
NS_WARN_IF_FALSE(!mLocked, "The TextureClient is already Locked!");
mOpenMode = aMode;
mLocked = true;
return true;
Expand All @@ -569,7 +570,8 @@ BufferTextureClient::Lock(OpenMode aMode)
void
BufferTextureClient::Unlock()
{
MOZ_ASSERT(mLocked);
// XXX - Turn this into a fatal assertion as soon as Bug 952507 is fixed
NS_WARN_IF_FALSE(mLocked, "The TextureClient is already Unlocked!");
mLocked = false;
if (!mDrawTarget) {
mUsingFallbackDrawTarget = false;
Expand Down

0 comments on commit bc40f52

Please sign in to comment.