mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 662246. Log image url in profiles during decoding. r=joe
--HG-- extra : rebase_source : 83a418d1b8b5dbb2d5f6bfe2725f04d0459cfca0
This commit is contained in:
parent
9856a3efcb
commit
7be8284f15
@ -89,6 +89,9 @@ ScaleFrameImage(imgFrame *aSrcFrame, imgFrame *aDstFrame,
|
||||
}
|
||||
#endif // MOZ_ENABLE_SKIA
|
||||
|
||||
|
||||
#include "sampler.h"
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::image;
|
||||
using namespace mozilla::layers;
|
||||
@ -2583,6 +2586,7 @@ RasterImage::RequestDecode()
|
||||
// large images will decode a bit and post themselves to the event loop
|
||||
// to finish decoding.
|
||||
if (!mDecoded && !mInDecoder && mHasSourceData) {
|
||||
SAMPLE_LABEL_PRINTF("RasterImage", "DecodeABitOf", "%s", GetURIString());
|
||||
DecodeWorker::Singleton()->DecodeABitOf(this);
|
||||
return NS_OK;
|
||||
}
|
||||
@ -2601,6 +2605,8 @@ RasterImage::SyncDecode()
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
SAMPLE_LABEL_PRINTF("RasterImage", "SyncDecode", "%s", GetURIString());;
|
||||
|
||||
// If we're decoded already, no worries
|
||||
if (mDecoded)
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user