Flutter Engine
The Flutter Engine
|
#include <SkCanvas.h>
Public Member Functions | |
SkAutoCanvasRestore (SkCanvas *canvas, bool doSave) | |
~SkAutoCanvasRestore () | |
void | restore () |
Stack helper class calls SkCanvas::restoreToCount when SkAutoCanvasRestore goes out of scope. Use this to guarantee that the canvas is restored to a known state.
Definition at line 2639 of file SkCanvas.h.
|
inline |
Preserves SkCanvas::save() count. Optionally saves SkCanvas clip and SkCanvas matrix.
canvas | SkCanvas to guard |
doSave | call SkCanvas::save() |
Definition at line 2648 of file SkCanvas.h.
|
inline |
Restores SkCanvas to saved state. Destructor is called when container goes out of scope.
Definition at line 2660 of file SkCanvas.h.
|
inline |
Restores SkCanvas to saved state immediately. Subsequent calls and ~SkAutoCanvasRestore() have no effect.
Definition at line 2669 of file SkCanvas.h.