Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
nsGraphicStatePool Class Reference

#include <nsGraphicState.h>

Collaboration diagram for nsGraphicStatePool:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsGraphicStatePool ()
 ~nsGraphicStatePool ()
nsGraphicStateGetNewGS ()
void ReleaseGS (nsGraphicState *aGS)

Private Attributes

nsGraphicStatemFreeList

Detailed Description

Definition at line 96 of file nsGraphicState.h.


Constructor & Destructor Documentation

Definition at line 50 of file nsGraphicState.cpp.

Definition at line 57 of file nsGraphicState.cpp.

{
       nsGraphicState* gs = mFreeList;
       while (gs != nsnull) {
              nsGraphicState* next = gs->mNext;
              delete gs;
              gs = next;
       }
}

Member Function Documentation

Definition at line 69 of file nsGraphicState.cpp.

{
       nsGraphicState* gs = mFreeList;
       if (gs != nsnull) {
              mFreeList = gs->mNext;
              return gs;
       }
       return new nsGraphicState;
}

Here is the caller graph for this function:

Definition at line 81 of file nsGraphicState.cpp.

{
       // clear the graphics state? this will cause its transformation matrix and regions
       // to be released. I'm dubious about that. in fact, shouldn't the matrix always be
       // a member object of the graphics state? why have a separate allocation at all?
       aGS->Clear();
       aGS->mNext = mFreeList;
       mFreeList = aGS;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 107 of file nsGraphicState.h.


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