SkAutoCanvasRestore Class Reference

#include <SkCanvas.h>

Collaboration diagram for SkAutoCanvasRestore:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SkAutoCanvasRestore (SkCanvas *canvas, bool doSave)
 ~SkAutoCanvasRestore ()

Detailed Description

Stack helper class to automatically call restoreToCount() on the canvas when this object goes out of scope. Use this to guarantee that the canvas is restored to a known state.

Definition at line 781 of file SkCanvas.h.


Constructor & Destructor Documentation

SkAutoCanvasRestore::SkAutoCanvasRestore ( SkCanvas canvas,
bool  doSave 
) [inline]

Definition at line 783 of file SkCanvas.h.

SkAutoCanvasRestore::~SkAutoCanvasRestore (  )  [inline]

Definition at line 790 of file SkCanvas.h.


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

Generated on Tue Oct 20 11:03:41 2009 for Skia by  doxygen 1.6.1