Lines Matching refs:skp

197                           const SkPicture* skp, std::vector<Sample>* samples) {  in run_benchmark()  argument
202 draw_skp_and_flush(canvas, skp); // draw 1 in run_benchmark()
206 draw_skp_and_flush(canvas, skp); // draw N in run_benchmark()
220 draw_skp_and_flush(canvas, skp); in run_benchmark()
232 const SkPicture* skp, std::vector<Sample>* samples) { in run_gpu_time_benchmark() argument
243 draw_skp_and_flush(canvas, skp); in run_gpu_time_benchmark()
249 draw_skp_and_flush(canvas, skp); in run_gpu_time_benchmark()
264 draw_skp_and_flush(canvas, skp); in run_gpu_time_benchmark()
355 sk_sp<SkPicture> skp; in main() local
358 skp = create_warmup_skp(); in main()
367 skp = create_skp_from_svg(srcstream.get(), srcfile.c_str()); in main()
369 skp = SkPicture::MakeFromStream(srcstream.get()); in main()
371 if (!skp) { in main()
376 int width = SkTMin(SkScalarCeilToInt(skp->cullRect().width()), 2048), in main()
377 height = SkTMin(SkScalarCeilToInt(skp->cullRect().height()), 2048); in main()
379 (width != skp->cullRect().width() || height != skp->cullRect().height())) { in main()
381 srcname.c_str(), SkScalarCeilToInt(skp->cullRect().width()), in main()
382 SkScalarCeilToInt(skp->cullRect().height()), width, height); in main()
446 canvas->translate(-skp->cullRect().x(), -skp->cullRect().y()); in main()
449 run_ddl_benchmark(testCtx->fenceSync(), ctx, canvas, skp.get(), &samples); in main()
451 run_benchmark(testCtx->fenceSync(), canvas, skp.get(), &samples); in main()
460 run_gpu_time_benchmark(testCtx->gpuTimer(), testCtx->fenceSync(), canvas, skp.get(), in main()
483 static void draw_skp_and_flush(SkCanvas* canvas, const SkPicture* skp) { in draw_skp_and_flush() argument
484 canvas->drawPicture(skp); in draw_skp_and_flush()