mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Backed out changeset 3d51d7f54e5d (bug 825519) because of build failures
This commit is contained in:
parent
0d88e34ad1
commit
540313e319
@ -67,10 +67,6 @@ static bool gHQDownscaling = false;
|
||||
// This is interpreted as a floating-point value / 1000
|
||||
static uint32_t gHQDownscalingMinFactor = 1000;
|
||||
|
||||
// The maximum number of times any one RasterImage was decoded. This is only
|
||||
// used for statistics.
|
||||
static uint32_t sMaxDecodeCount = 0;
|
||||
|
||||
static void
|
||||
InitPrefCaches()
|
||||
{
|
||||
@ -2577,16 +2573,6 @@ RasterImage::InitDecoder(bool aDoSizeDecode)
|
||||
Telemetry::GetHistogramById(Telemetry::IMAGE_DECODE_COUNT)->Subtract(mDecodeCount);
|
||||
mDecodeCount++;
|
||||
Telemetry::GetHistogramById(Telemetry::IMAGE_DECODE_COUNT)->Add(mDecodeCount);
|
||||
|
||||
if (mDecodeCount > sMaxDecodeCount) {
|
||||
// Don't subtract out 0 from the histogram, because that causes its count
|
||||
// to go negative, which is not kosher.
|
||||
if (sMaxDecodeCount > 0) {
|
||||
Telemetry::GetHistogramById(Telemetry::IMAGE_MAX_DECODE_COUNT)->Subtract(sMaxDecodeCount);
|
||||
}
|
||||
sMaxDecodeCount = mDecodeCount;
|
||||
Telemetry::GetHistogramById(Telemetry::IMAGE_MAX_DECODE_COUNT)->Add(sMaxDecodeCount);
|
||||
}
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
@ -507,12 +507,6 @@
|
||||
"n_buckets": 50,
|
||||
"description": "Decode count"
|
||||
},
|
||||
"IMAGE_MAX_DECODE_COUNT": {
|
||||
"kind": "exponential",
|
||||
"high": "10000",
|
||||
"n_buckets": 100,
|
||||
"description": "Max decode count over all images"
|
||||
},
|
||||
"IMAGE_DECODE_SPEED_JPEG": {
|
||||
"kind": "exponential",
|
||||
"low": 500,
|
||||
|
Loading…
Reference in New Issue
Block a user