Definition at line 13 of file video_decoder.cpp.
◆ VideoDecoderGM()
VideoDecoderGM::VideoDecoderGM |
( |
| ) |
|
|
inline |
◆ getISize()
SkISize VideoDecoderGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString VideoDecoderGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onAnimate()
bool VideoDecoderGM::onAnimate |
( |
double |
nanos | ) |
|
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void VideoDecoderGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 31 of file video_decoder.cpp.
31 {
33 if (!rContext) {
34 return;
35 }
36
38
39 double timeStamp;
40 auto img = fDecoder.
nextImage(&timeStamp);
41 if (!img) {
44 }
45 if (img) {
46 if (0) {
48 }
50 }
51 }
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
virtual GrRecordingContext * recordingContext() const
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
void setGrContext(GrRecordingContext *rContext)
sk_sp< SkImage > nextImage(double *timeStamp=nullptr)
◆ onOnceBeforeDraw()
void VideoDecoderGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 24 of file video_decoder.cpp.
24 {
26 SkDebugf(
"could not load movie file\n");
27 }
29 }
static std::unique_ptr< SkStreamAsset > MakeFromFile(const char path[])
bool loadStream(std::unique_ptr< SkStream >)
The documentation for this class was generated from the following file: