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