Bug 1291045 (Part 5) - Expose the IDecodingTask notification helpers for use in other files. r=edwin

This commit is contained in:
Seth Fowler
2016-07-27 19:40:56 -07:00
parent efe310ef2c
commit 7e7b5765b2
2 changed files with 14 additions and 4 deletions

View File

@@ -24,8 +24,9 @@ namespace image {
// Helpers for sending notifications to the image associated with a decoder.
///////////////////////////////////////////////////////////////////////////////
static void
NotifyProgress(NotNull<RasterImage*> aImage, NotNull<Decoder*> aDecoder)
/* static */ void
IDecodingTask::NotifyProgress(NotNull<RasterImage*> aImage,
NotNull<Decoder*> aDecoder)
{
MOZ_ASSERT(aDecoder->HasProgress() && !aDecoder->IsMetadataDecode());
@@ -56,8 +57,9 @@ NotifyProgress(NotNull<RasterImage*> aImage, NotNull<Decoder*> aDecoder)
}));
}
static void
NotifyDecodeComplete(NotNull<RasterImage*> aImage, NotNull<Decoder*> aDecoder)
/* static */ void
IDecodingTask::NotifyDecodeComplete(NotNull<RasterImage*> aImage,
NotNull<Decoder*> aDecoder)
{
// Synchronously notify if we can.
if (NS_IsMainThread() &&