зеркало из https://github.com/mozilla/pjs.git
Bug 732820 - Part 4: Followup, use PRUint64 instead of ssize_t, since ssize_t doesn't exist on Windows.
--HG-- extra : rebase_source : 3319d5541bac26fb4bc63323c88b4efd65a47fe1
This commit is contained in:
Родитель
9e015200e0
Коммит
36e3a62365
|
@ -19,7 +19,7 @@ static const char* sDiscardTimeoutPref = "image.mem.min_discard_timeout_ms";
|
|||
/* static */ bool DiscardTracker::sInitialized = false;
|
||||
/* static */ bool DiscardTracker::sTimerOn = false;
|
||||
/* static */ bool DiscardTracker::sDiscardRunnablePending = false;
|
||||
/* static */ ssize_t DiscardTracker::sCurrentDecodedImageBytes = 0;
|
||||
/* static */ PRUint64 DiscardTracker::sCurrentDecodedImageBytes = 0;
|
||||
/* static */ PRUint32 DiscardTracker::sMinDiscardTimeoutMs = 10000;
|
||||
/* static */ PRUint32 DiscardTracker::sMaxDecodedImageKB = 42 * 1024;
|
||||
|
||||
|
@ -119,7 +119,7 @@ DiscardTracker::DiscardAll()
|
|||
}
|
||||
|
||||
void
|
||||
DiscardTracker::InformAllocation(ssize_t bytes)
|
||||
DiscardTracker::InformAllocation(PRUint64 bytes)
|
||||
{
|
||||
// This function is called back e.g. from RasterImage::Discard(); be careful!
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@ class DiscardTracker
|
|||
* memory for a decoded image. We use this to determine when we've
|
||||
* allocated too much memory and should discard some images.
|
||||
*/
|
||||
static void InformAllocation(ssize_t bytes);
|
||||
static void InformAllocation(PRUint64 bytes);
|
||||
|
||||
private:
|
||||
/**
|
||||
|
@ -105,7 +105,7 @@ class DiscardTracker
|
|||
static bool sInitialized;
|
||||
static bool sTimerOn;
|
||||
static bool sDiscardRunnablePending;
|
||||
static ssize_t sCurrentDecodedImageBytes;
|
||||
static PRUint64 sCurrentDecodedImageBytes;
|
||||
static PRUint32 sMinDiscardTimeoutMs;
|
||||
static PRUint32 sMaxDecodedImageKB;
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче