Bug 1059033 - Part 4: Avoid recreating DrawTargets too often. r=nical

This commit is contained in:
Matt Woodrow
2014-09-01 15:22:57 +12:00
parent dbf70952d5
commit 31a3d01eed

View File

@@ -689,6 +689,7 @@ BufferTextureClient::BorrowDrawTarget()
MOZ_ASSERT(mLocked, "BorrowDrawTarget should be called on locked textures only");
if (mDrawTarget) {
mDrawTarget->SetTransform(Matrix());
return mDrawTarget;
}
@@ -738,7 +739,6 @@ BufferTextureClient::Unlock()
}
mDrawTarget->Flush();
mDrawTarget = nullptr;
}
bool