Bug 745141 - Make DiscardTracker::InformAllocation a nop, disabling
bug 732820. r=joe, a=akeybl
--- a/image/src/DiscardTracker.cpp
+++ b/image/src/DiscardTracker.cpp
@@ -123,22 +123,18 @@ DiscardTracker::DiscardAll()
DisableTimer();
}
void
DiscardTracker::InformAllocation(PRInt64 bytes)
{
// This function is called back e.g. from RasterImage::Discard(); be careful!
- sCurrentDecodedImageBytes += bytes;
- MOZ_ASSERT(sCurrentDecodedImageBytes >= 0);
-
- // If we're using too much memory for decoded images, MaybeDiscardSoon will
- // enqueue a callback to discard some images.
- MaybeDiscardSoon();
+ // This function was made into a nop for the FF14 branch. See bug 745141
+ // comments 54-56.
}
/**
* Initialize the tracker.
*/
nsresult
DiscardTracker::Initialize()
{