nsStubImageDecoderObserver Class Reference

There are two advantages to inheriting from nsStubImageDecoderObserver rather than directly from imgIDecoderObserver: 1. More...

#include <nsStubImageDecoderObserver.h>

Inheritance diagram for nsStubImageDecoderObserver:
Collaboration diagram for nsStubImageDecoderObserver:

List of all members.


Detailed Description

There are two advantages to inheriting from nsStubImageDecoderObserver rather than directly from imgIDecoderObserver: 1.

smaller compiled code size (since there's no need for the code for the empty virtual function implementations for every imgIDecoderObserver implementation) 2. the performance of document's loop over observers benefits from the fact that more of the functions called are the same (which can reduce instruction cache misses and perhaps improve branch prediction)


The documentation for this class was generated from the following file: