icecat: add release icecat-140.10.1-1gnu1 for ecne
This commit is contained in:
parent
a5f93cb214
commit
ff85d7c623
1256 changed files with 63469 additions and 24141 deletions
|
|
@ -19,6 +19,7 @@
|
|||
#include "mozilla/Unused.h"
|
||||
#include "nsDebug.h" // for NS_WARNING, NS_ASSERTION
|
||||
#include "nsRegion.h" // for nsIntRegion
|
||||
#include "nsTHashSet.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace layers {
|
||||
|
|
@ -126,6 +127,21 @@ void CompositableParentManager::DestroyActor(const OpDestroy& aOp) {
|
|||
}
|
||||
}
|
||||
|
||||
void CompositableParentManager::DestroyActors(
|
||||
const nsTArray<OpDestroy>& aToDestroy) {
|
||||
nsTHashSet<PTextureParent*> seenTextureParents;
|
||||
for (const auto& op : aToDestroy) {
|
||||
if (op.type() == OpDestroy::TPTexture) {
|
||||
PTextureParent* textureParent = op.get_PTexture().AsParent();
|
||||
if (!seenTextureParents.EnsureInserted(textureParent)) {
|
||||
// Already destroyed this one in the current batch; skip.
|
||||
continue;
|
||||
}
|
||||
}
|
||||
DestroyActor(op);
|
||||
}
|
||||
}
|
||||
|
||||
RefPtr<CompositableHost> CompositableParentManager::AddCompositable(
|
||||
const CompositableHandle& aHandle, const TextureInfo& aInfo) {
|
||||
if (mCompositables.find(aHandle.Value()) != mCompositables.end()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue