Lines Matching defs:config
52 * single config, and exit. It is intended to be used through skpbench.py rather than invoked
53 * directly. Limiting the entire process to a single config/skp pair helps to keep the results
85 " accum median max min stddev samples sample_ms clock metric config bench";
445 void print_result(const std::vector<Sample>& samples, const char* config, const char* bench) {
480 config, bench);
498 // Parse the config.
499 const SkCommandLineConfigGpu* config = nullptr; // Initialize for spurious warning.
502 if (configs.count() != 1 || !(config = configs[0]->asConfigGpu())) {
503 exitf(ExitErr::kUsage, "invalid config '%s': must specify one (and only one) GPU config",
559 if (config->getSurfType() != SkCommandLineConfigGpu::SurfType::kDefault) {
561 config->getTag().c_str());
569 factory.getContextInfo(config->getContextType(), config->getContextOverrides());
572 exitf(ExitErr::kUnavailable, "failed to create context for config %s",
573 config->getTag().c_str());
579 GrBackendFormat format = ctx->defaultBackendFormat(config->getColorType(), GrRenderable::kYes);
582 config->getColorType());
585 config->getSamples(), format);
586 if (supportedSampleCount != config->getSamples()) {
588 config->getSamples());
600 width, height, config->getColorType(), config->getAlphaType(), config->refColorSpace());
601 SkSurfaceProps props(config->getSurfaceFlags(), kRGB_H_SkPixelGeometry);
603 SkSurface::MakeRenderTarget(ctx, SkBudgeted::kNo, info, config->getSamples(), &props);
605 exitf(ExitErr::kUnavailable, "failed to create %ix%i render target for config %s",
606 width, height, config->getTag().c_str());
640 print_result(samples, config->getTag().c_str(), srcname.c_str());