Skia
2D Graphics Library
|
AbortCallback is an abstract class. More...
#include <SkPicture.h>
Public Member Functions | |
virtual | ~AbortCallback ()=default |
Has no effect. More... | |
virtual bool | abort ()=0 |
Stops SkPicture playback when some condition is met. More... | |
Protected Member Functions | |
AbortCallback ()=default | |
AbortCallback (const AbortCallback &)=delete | |
AbortCallback & | operator= (const AbortCallback &)=delete |
AbortCallback is an abstract class.
An implementation of AbortCallback may passed as a parameter to SkPicture::playback, to stop it before all drawing commands have been processed.
If AbortCallback::abort returns true, SkPicture::playback is interrupted.
|
virtualdefault |
Has no effect.
|
protecteddefault |
|
protecteddelete |
|
pure virtual |
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
|
protecteddelete |