mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1059033
- Part 4: Avoid recreating DrawTargets too often. r=nical
--HG-- extra : rebase_source : b25fcc2b2fb298b9654c36a57fc9fa26877bf9ff
This commit is contained in:
parent
dbfc91a41f
commit
0da1f6255a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user