Lines Matching defs:surf
33 static void produce_frame(SkSurface* surf, skottie::Animation* anim, double frame) {
35 surf->getCanvas()->clear(SK_ColorWHITE);
36 anim->render(surf->getCanvas());
97 sk_sp<SkSurface> surf;
110 if (!surf) {
113 surf = SkSurface::MakeRenderTarget(grctx,
119 if (!surf) {
123 if (!surf) {
124 surf = SkSurface::MakeRaster(info);
126 surf->getCanvas()->scale(scale, scale);
135 produce_frame(surf.get(), animation.get(), frame);
146 surf->asyncRescaleAndReadPixels(info, {0, 0, info.width(), info.height()},
153 SkAssertResult(surf->peekPixels(&pm));