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

@ -494,7 +494,8 @@ already_AddRefed<TextureClient> D3D11TextureData::CreateTextureClient(
data->SetColorRange(aColorRange);
RefPtr<TextureClient> textureClient = MakeAndAddRef<TextureClient>(
data, TextureFlags::NO_FLAGS, aKnowsCompositor->GetTextureForwarder());
data, TextureFlags::NO_FLAGS,
aKnowsCompositor->GetTextureForwarder().get());
const auto textureId = GpuProcessD3D11TextureMap::GetNextTextureId();
data->SetGpuProcessTextureId(textureId);
@ -1338,7 +1339,10 @@ void DXGITextureHostD3D11::PushResourceUpdates(
case gfx::SurfaceFormat::R8G8B8A8:
case gfx::SurfaceFormat::B8G8R8A8:
case gfx::SurfaceFormat::B8G8R8X8: {
MOZ_ASSERT(aImageKeys.length() == 1);
if (aImageKeys.length() != 1) {
MOZ_ASSERT_UNREACHABLE("unexpected key length");
return;
}
wr::ImageDescriptor descriptor(mSize, GetFormat());
// Prefer TextureExternal unless the backend requires TextureRect.
@ -1357,7 +1361,11 @@ void DXGITextureHostD3D11::PushResourceUpdates(
case gfx::SurfaceFormat::P010:
case gfx::SurfaceFormat::P016:
case gfx::SurfaceFormat::NV12: {
MOZ_ASSERT(aImageKeys.length() == 2);
if (aImageKeys.length() != 2) {
MOZ_ASSERT_UNREACHABLE("unexpected key length");
return;
}
MOZ_ASSERT(mSize.width % 2 == 0);
MOZ_ASSERT(mSize.height % 2 == 0);
@ -1412,7 +1420,10 @@ void DXGITextureHostD3D11::PushDisplayItems(
case gfx::SurfaceFormat::R8G8B8A8:
case gfx::SurfaceFormat::B8G8R8A8:
case gfx::SurfaceFormat::B8G8R8X8: {
MOZ_ASSERT(aImageKeys.length() == 1);
if (aImageKeys.length() != 1) {
MOZ_ASSERT_UNREACHABLE("unexpected key length");
return;
}
aBuilder.PushImage(aBounds, aClip, true, false, aFilter, aImageKeys[0],
!(mFlags & TextureFlags::NON_PREMULTIPLIED),
wr::ColorF{1.0f, 1.0f, 1.0f, 1.0f},
@ -1427,7 +1438,10 @@ void DXGITextureHostD3D11::PushDisplayItems(
// it may be handled as if it was DXGI_FORMAT_P016. This is approximately
// perceptually correct. However, due to rounding error, the precise
// quantized value after sampling may be off by 1.
MOZ_ASSERT(aImageKeys.length() == 2);
if (aImageKeys.length() != 2) {
MOZ_ASSERT_UNREACHABLE("unexpected key length");
return;
}
aBuilder.PushNV12Image(
aBounds, aClip, true, aImageKeys[0], aImageKeys[1],
GetFormat() == gfx::SurfaceFormat::NV12 ? wr::ColorDepth::Color8
@ -1515,8 +1529,13 @@ void DXGIYCbCrTextureHostD3D11::PushResourceUpdates(
return;
}
if (aImageKeys.length() != 3) {
MOZ_ASSERT_UNREACHABLE("unexpected key length");
return;
}
MOZ_ASSERT(mHandles[0] && mHandles[1] && mHandles[2]);
MOZ_ASSERT(aImageKeys.length() == 3);
// Assume the chroma planes are rounded up if the luma plane is odd sized.
MOZ_ASSERT((mSizeCbCr.width == mSizeY.width ||
mSizeCbCr.width == (mSizeY.width + 1) >> 1) &&
@ -1560,7 +1579,10 @@ void DXGIYCbCrTextureHostD3D11::PushDisplayItems(
return;
}
MOZ_ASSERT(aImageKeys.length() == 3);
if (aImageKeys.length() != 3) {
MOZ_ASSERT_UNREACHABLE("unexpected key length");
return;
}
aBuilder.PushYCbCrPlanarImage(
aBounds, aClip, true, aImageKeys[0], aImageKeys[1], aImageKeys[2],