Lines Matching refs:skp

51  * This is a minimalist program whose sole purpose is to open a .skp or .svg file, benchmark it on a
53 * directly. Limiting the entire process to a single config/skp pair helps to keep the results
56 * No tiling, looping, or other fanciness is used; it just draws the skp whole into a size-matched
65 static DEFINE_bool(ddl, false, "record the skp into DDLs before rendering");
77 "path to a single .skp or .svg file, or 'warmup' for a builtin warmup run");
149 StaticSkp(sk_sp<SkPicture> skp) : fSkp(skp) {}
170 // Load the multi frame skp at the given filename.
181 // skp file containing subpictures separated by annotations.
269 exitf(ExitErr::kUnavailable, "DDL: conversion of skp failed");
378 SkSurface* surface, const SkPicture* skp,
391 draw_skp_and_flush_with_sync(context, surface, skp, gpuSync);
396 draw_skp_and_flush_with_sync(context, surface, skp, gpuSync);
410 draw_skp_and_flush_with_sync(context, surface, skp, gpuSync);
507 // Parse the skp.
510 "invalid input '%s': must specify a single .skp or .svg file, or 'warmup'",
516 sk_sp<SkPicture> skp;
520 skp = create_warmup_skp();
529 skp = create_skp_from_svg(srcstream.get(), srcfile.c_str());
532 // populate skp with it's first frame, for width height determination.
533 skp = mskp->frame(0);
535 skp = SkPicture::MakeFromStream(srcstream.get());
537 if (!skp) {
542 int width = std::min(SkScalarCeilToInt(skp->cullRect().width()), 2048),
543 height = std::min(SkScalarCeilToInt(skp->cullRect().height()), 2048);
545 (width != skp->cullRect().width() || height != skp->cullRect().height())) {
547 srcname.c_str(), SkScalarCeilToInt(skp->cullRect().width()),
548 SkScalarCeilToInt(skp->cullRect().height()), width, height);
618 canvas->translate(-skp->cullRect().x(), -skp->cullRect().y());
624 run_ddl_benchmark(testCtx, ctx, surface, skp.get(), &samples);
626 auto s = std::make_unique<StaticSkp>(skp);
638 run_gpu_time_benchmark(testCtx->gpuTimer(), ctx, surface.get(), skp.get(), &samples);
672 const SkPicture* skp, GpuSync& gpuSync) {
674 canvas->drawPicture(skp);