icecat: add release icecat-140.10.1-1gnu1 for ecne

This commit is contained in:
Ark74 2026-05-04 16:58:41 -06:00
parent a5f93cb214
commit ff85d7c623
1256 changed files with 63469 additions and 24141 deletions

View file

@ -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()) {