Flutter Engine
The Flutter Engine
|
Public Member Functions | |
JustOneDraw () | |
bool | abort () override |
Public Member Functions inherited from SkPicture::AbortCallback | |
virtual | ~AbortCallback ()=default |
virtual bool | abort ()=0 |
Additional Inherited Members | |
Protected Member Functions inherited from SkPicture::AbortCallback | |
AbortCallback ()=default | |
AbortCallback (const AbortCallback &)=delete | |
AbortCallback & | operator= (const AbortCallback &)=delete |
Definition at line 35 of file RecordDrawTest.cpp.
|
inline |
Definition at line 37 of file RecordDrawTest.cpp.
|
inlineoverridevirtual |
Stops SkPicture playback when some condition is met. A subclass of AbortCallback provides an override for abort() that can stop SkPicture::playback.
The part of SkPicture drawn when aborted is undefined. SkPicture instantiations are free to stop drawing at different points during playback.
If the abort happens inside one or more calls to SkCanvas::save(), stack of SkCanvas matrix and SkCanvas clip values is restored to its state before SkPicture::playback was called.
example: https://fiddle.skia.org/c/@Picture_AbortCallback_abort
Implements SkPicture::AbortCallback.
Definition at line 39 of file RecordDrawTest.cpp.