Bug 1059033 - Part 4: Avoid recreating DrawTargets too often. r=nical
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user