зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1059033 - Part 4: Avoid recreating DrawTargets too often. r=nical
--HG-- extra : rebase_source : b25fcc2b2fb298b9654c36a57fc9fa26877bf9ff
This commit is contained in:
Родитель
a1e0fcbb84
Коммит
9777e1de08
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче