Issue #2657 - Remove -moz-samplesize resize-decoding for low-vram mobiles

Resolves #2657
This commit is contained in:
Moonchild 2024-11-20 14:10:10 +01:00 committed by roytam1
commit ef5f052d97
18 changed files with 13 additions and 193 deletions

View file

@ -261,11 +261,6 @@ public:
*/
nsresult SetSourceSizeHint(uint32_t aSizeHint);
/* Provide a hint for the requested dimension of the resulting image. */
void SetRequestedSampleSize(int requestedSampleSize) {
mRequestedSampleSize = requestedSampleSize;
}
nsCString GetURIString() {
nsCString spec;
if (GetURI()) {
@ -407,9 +402,6 @@ private: // data
// This is currently only used for statistics
int32_t mDecodeCount;
// A hint for image decoder that directly scale the image to smaller buffer
int mRequestedSampleSize;
// A weak pointer to our ImageContainer, which stays alive only as long as
// the layer system needs it.
WeakPtr<layers::ImageContainer> mImageContainer;