mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 17:03:07 +09:00
Issue #2657 - Remove -moz-samplesize resize-decoding for low-vram mobiles
Resolves #2657
This commit is contained in:
parent
75d698133f
commit
ef5f052d97
18 changed files with 13 additions and 193 deletions
|
|
@ -72,7 +72,6 @@ RasterImage::RasterImage(ImageURL* aURI /* = nullptr */) :
|
|||
mSize(0,0),
|
||||
mLockCount(0),
|
||||
mDecodeCount(0),
|
||||
mRequestedSampleSize(0),
|
||||
mImageProducerID(ImageContainer::AllocateProducerID()),
|
||||
mLastFrameID(0),
|
||||
mLastImageContainerDrawResult(DrawResult::NOT_READY),
|
||||
|
|
@ -1200,8 +1199,7 @@ RasterImage::Decode(const IntSize& aSize,
|
|||
} else {
|
||||
task = DecoderFactory::CreateDecoder(mDecoderType, WrapNotNull(this),
|
||||
mSourceBuffer, mSize, aSize,
|
||||
decoderFlags, surfaceFlags,
|
||||
mRequestedSampleSize);
|
||||
decoderFlags, surfaceFlags);
|
||||
}
|
||||
|
||||
// Make sure DecoderFactory was able to create a decoder successfully.
|
||||
|
|
@ -1228,7 +1226,7 @@ RasterImage::DecodeMetadata(uint32_t aFlags)
|
|||
// Create a decoder.
|
||||
RefPtr<IDecodingTask> task =
|
||||
DecoderFactory::CreateMetadataDecoder(mDecoderType, WrapNotNull(this),
|
||||
mSourceBuffer, mRequestedSampleSize);
|
||||
mSourceBuffer);
|
||||
|
||||
// Make sure DecoderFactory was able to create a decoder successfully.
|
||||
if (!task) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue