Home | History | Annotate | Download | only in bench

Lines Matching defs:bench

96     AutoPrePostDraw(SkBenchmark* bench) : fBench(bench) {
323 SkBenchmark* bench;
324 while ((bench = iter.next()) != NULL) {
325 SkIPoint dim = bench->getSize();
332 bench->unref();
351 SkDebugf("Usage: bench [-o outDir] [--repeat nr] [--logPerIter 1|0] "
359 SkDebugf(" -o outDir : Image of each bench will be put in outDir.\n");
360 SkDebugf(" --repeat nr : Each bench repeats for nr times.\n");
364 "Display wall, cpu, gpu, truncated wall or truncated cpu time for each bench.\n");
365 SkDebugf(" --rotate : Rotate before each bench runs.\n");
366 SkDebugf(" --scale : Scale before each bench runs.\n");
367 SkDebugf(" --clip : Clip before each bench runs.\n");
378 SkDebugf(" --match name : Only run bench whose name is matched.\n");
390 "Run bench in corresponding config mode.\n");
393 "Run bench in corresponding config mode.\n");
395 SkDebugf(" -Dfoo bar : Add extra definition to bench.\n");
647 str.printf("skia bench: alpha=0x%02X antialias=%d filter=%d "
717 SkBenchmark* bench;
718 while ((bench = iter.next()) != NULL) {
719 SkAutoTUnref<SkBenchmark> benchUnref(bench);
721 SkIPoint dim = bench->getSize();
726 bench->setForceAlpha(forceAlpha);
727 bench->setForceAA(forceAA);
728 bench->setForceFilter(forceFilter);
729 bench->setDither(forceDither);
731 bench->setStrokeWidth(strokeWidth);
735 if (skip_name(fMatches, bench->getName())) {
741 str.printf("running bench [%d %d] %28s", dim.fX, dim.fY,
742 bench->getName());
746 AutoPrePostDraw appd(bench);
750 if (!bench->isRendering() && runOnce) {
790 bench->draw(tempCanvas);
828 bench->draw(canvas);
860 bench->draw(canvas);
892 saveFile(bench->getName(), configName, outDir.c_str(),