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
|
|
@ -391,8 +391,8 @@ static bool HasColorAndAlpha(const WebGLTexelFormat format) {
|
|||
}
|
||||
|
||||
bool TexUnpackBlob::ConvertIfNeeded(
|
||||
const WebGLContext* const webgl, const uint32_t rowLength,
|
||||
const uint32_t rowCount, WebGLTexelFormat srcFormat,
|
||||
const WebGLContext* const webgl, const size_t rowLength,
|
||||
const size_t rowCount, WebGLTexelFormat srcFormat,
|
||||
const uint8_t* const srcBegin, const ptrdiff_t srcStride,
|
||||
WebGLTexelFormat dstFormat, const ptrdiff_t dstStride,
|
||||
const uint8_t** const out_begin,
|
||||
|
|
@ -469,7 +469,7 @@ bool TexUnpackBlob::ConvertIfNeeded(
|
|||
|
||||
////
|
||||
|
||||
const auto dstTotalBytes = CheckedUint32(rowCount) * dstStride;
|
||||
const auto dstTotalBytes = CheckedInt<size_t>(rowCount) * dstStride;
|
||||
if (!dstTotalBytes.isValid()) {
|
||||
webgl->ErrorOutOfMemory("Calculation failed.");
|
||||
return false;
|
||||
|
|
@ -855,9 +855,14 @@ bool TexUnpackImage::TexOrSubImage(bool isSubImage, bool needsRespec,
|
|||
: dom::PredefinedColorSpace::Srgb;
|
||||
bool sameColorSpace = (srcColorSpace == dstColorSpace);
|
||||
|
||||
const auto reason = BlitPreventReason(
|
||||
Maybe<std::string> reason;
|
||||
if (!webgl->IsUploadableSdType(sd)) {
|
||||
reason = Some(std::string("Unsupported surface descriptor type"));
|
||||
} else {
|
||||
reason = BlitPreventReason(
|
||||
level, {xOffset, yOffset, zOffset}, dui->internalFormat, pi, mDesc,
|
||||
webgl->mOptionalRenderableFormatBits, sameColorSpace);
|
||||
}
|
||||
if (reason) {
|
||||
webgl->GeneratePerfWarning(
|
||||
"Failed to hit GPU-copy fast-path."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue