Bug 1339289 - Give names to a lot of common runnables (r=ehsan)

MozReview-Commit-ID: 5IdvK6kgoAW
This commit is contained in:
Bill McCloskey
2017-02-10 22:11:48 -08:00
parent 32249a142c
commit f79edeabc9
32 changed files with 84 additions and 40 deletions

View File

@@ -50,7 +50,9 @@ IDecodingTask::NotifyProgress(NotNull<RasterImage*> aImage,
// We're forced to notify asynchronously.
NotNull<RefPtr<RasterImage>> image = aImage;
NS_DispatchToMainThread(NS_NewRunnableFunction([=]() -> void {
NS_DispatchToMainThread(NS_NewRunnableFunction(
"IDecodingTask::NotifyProgress",
[=]() -> void {
image->NotifyProgress(progress, invalidRect, frameCount,
decoderFlags, surfaceFlags);
}));
@@ -83,7 +85,9 @@ IDecodingTask::NotifyDecodeComplete(NotNull<RasterImage*> aImage,
// We're forced to notify asynchronously.
NotNull<RefPtr<RasterImage>> image = aImage;
NS_DispatchToMainThread(NS_NewRunnableFunction([=]() -> void {
NS_DispatchToMainThread(NS_NewRunnableFunction(
"IDecodingTask::NotifyDecodeComplete",
[=]() -> void {
image->NotifyDecodeComplete(finalStatus, metadata, telemetry, progress,
invalidRect, frameCount, decoderFlags,
surfaceFlags);