#include <SkCanvas.h>
Public Member Functions | |
SkAutoCanvasRestore (SkCanvas *canvas, bool doSave) | |
~SkAutoCanvasRestore () |
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.
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.