зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1059033 - Part 4: Avoid recreating DrawTargets too often. r=nical
--HG-- extra : rebase_source : 8413ce440168235196e44f1a166cfff07a4f842f
This commit is contained in:
Родитель
f97e75d2aa
Коммит
0a72e088cb
|
@ -689,6 +689,7 @@ BufferTextureClient::BorrowDrawTarget()
|
||||||
MOZ_ASSERT(mLocked, "BorrowDrawTarget should be called on locked textures only");
|
MOZ_ASSERT(mLocked, "BorrowDrawTarget should be called on locked textures only");
|
||||||
|
|
||||||
if (mDrawTarget) {
|
if (mDrawTarget) {
|
||||||
|
mDrawTarget->SetTransform(Matrix());
|
||||||
return mDrawTarget;
|
return mDrawTarget;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -738,7 +739,6 @@ BufferTextureClient::Unlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
mDrawTarget->Flush();
|
mDrawTarget->Flush();
|
||||||
mDrawTarget = nullptr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
Загрузка…
Ссылка в новой задаче