Bug 1103328 - Tweak wording of comment for Decoder::PostHasTransparency. r=me DONTBUILD

This commit is contained in:
Seth Fowler 2014-11-25 00:00:00 -08:00
parent 953bfffba9
commit 0f082bced5

View File

@ -217,11 +217,13 @@ protected:
// Called by decoders if they determine that the image has transparency.
//
// This should be fired as early as possible to allow observers to do things
// that affect content, so it's necessarily pessimistic. PostFrameStop's
// aFrameAlpha argument, on the other hand, is only used internally to
// ImageLib. Because PostFrameStop isn't delivered until the entire frame has
// been decoded, decoders may take into account the actual contents of the
// frame.
// that affect content, so it's necessarily pessimistic - if there's a
// possibility that the image has transparency, for example because its header
// specifies that it has an alpha channel, we fire PostHasTransparency
// immediately. PostFrameStop's aFrameAlpha argument, on the other hand, is
// only used internally to ImageLib. Because PostFrameStop isn't delivered
// until the entire frame has been decoded, decoders may take into account the
// actual contents of the frame and give a more accurate result.
void PostHasTransparency();
// Called by decoders when they begin a frame. Informs the image, sends