Lines Matching refs:skp

148     StaticSkp(sk_sp<SkPicture> skp) : fSkp(skp) {}  in StaticSkp()  argument
377 SkSurface* surface, const SkPicture* skp, in run_gpu_time_benchmark() argument
390 draw_skp_and_flush_with_sync(context, surface, skp, gpuSync); in run_gpu_time_benchmark()
395 draw_skp_and_flush_with_sync(context, surface, skp, gpuSync); in run_gpu_time_benchmark()
409 draw_skp_and_flush_with_sync(context, surface, skp, gpuSync); in run_gpu_time_benchmark()
515 sk_sp<SkPicture> skp; in main() local
519 skp = create_warmup_skp(); in main()
528 skp = create_skp_from_svg(srcstream.get(), srcfile.c_str()); in main()
532 skp = mskp->frame(0); in main()
534 skp = SkPicture::MakeFromStream(srcstream.get()); in main()
536 if (!skp) { in main()
541 int width = std::min(SkScalarCeilToInt(skp->cullRect().width()), 2048), in main()
542 height = std::min(SkScalarCeilToInt(skp->cullRect().height()), 2048); in main()
544 (width != skp->cullRect().width() || height != skp->cullRect().height())) { in main()
546 srcname.c_str(), SkScalarCeilToInt(skp->cullRect().width()), in main()
547 SkScalarCeilToInt(skp->cullRect().height()), width, height); in main()
618 canvas->translate(-skp->cullRect().x(), -skp->cullRect().y()); in main()
624 run_ddl_benchmark(testCtx, ctx, surface, skp.get(), &samples); in main()
626 auto s = std::make_unique<StaticSkp>(skp); in main()
638 run_gpu_time_benchmark(testCtx->gpuTimer(), ctx, surface.get(), skp.get(), &samples); in main()
672 const SkPicture* skp, GpuSync& gpuSync) { in draw_skp_and_flush_with_sync() argument
674 canvas->drawPicture(skp); in draw_skp_and_flush_with_sync()