Lines Matching refs:skp
141 StaticSkp(sk_sp<SkPicture> skp) : fSkp(skp) {} in StaticSkp() argument
318 const SkPicture* skp, std::vector<Sample>* samples) { in run_gpu_time_benchmark() argument
329 draw_skp_and_flush(surface, skp); in run_gpu_time_benchmark()
335 draw_skp_and_flush(surface, skp); in run_gpu_time_benchmark()
350 draw_skp_and_flush(surface, skp); in run_gpu_time_benchmark()
448 sk_sp<SkPicture> skp; in main() local
452 skp = create_warmup_skp(); in main()
461 skp = create_skp_from_svg(srcstream.get(), srcfile.c_str()); in main()
465 skp = mskp->frame(0); in main()
467 skp = SkPicture::MakeFromStream(srcstream.get()); in main()
469 if (!skp) { in main()
474 int width = std::min(SkScalarCeilToInt(skp->cullRect().width()), 2048), in main()
475 height = std::min(SkScalarCeilToInt(skp->cullRect().height()), 2048); in main()
477 (width != skp->cullRect().width() || height != skp->cullRect().height())) { in main()
479 srcname.c_str(), SkScalarCeilToInt(skp->cullRect().width()), in main()
480 SkScalarCeilToInt(skp->cullRect().height()), width, height); in main()
552 canvas->translate(-skp->cullRect().x(), -skp->cullRect().y()); in main()
558 run_ddl_benchmark(testCtx->fenceSync(), ctx, surface, skp.get(), &samples); in main()
560 auto s = std::make_unique<StaticSkp>(skp); in main()
573 skp.get(), &samples); in main()
595 static void draw_skp_and_flush(SkSurface* surface, const SkPicture* skp) { in draw_skp_and_flush() argument
597 canvas->drawPicture(skp); in draw_skp_and_flush()