Lines Matching defs:config
33 * config, and exit. It is intended to be used through skpbench.py rather than invoked directly.
34 * Limiting the entire process to a single config/skp pair helps to keep the results repeatable.
53 " accum median max min stddev samples sample_ms clock metric config bench";
191 void print_result(const std::vector<Sample>& samples, const char* config, const char* bench) {
218 config, bench);
235 // Parse the config.
236 const SkCommandLineConfigGpu* config = nullptr; // Initialize for spurious warning.
239 if (configs.count() != 1 || !(config = configs[0]->asConfigGpu())) {
240 exitf(ExitErr::kUsage, "invalid config '%s': must specify one (and only one) GPU config",
280 factory.getContextInfo(config->getContextType(), config->getContextOverrides());
283 exitf(ExitErr::kUnavailable, "failed to create context for config %s",
284 config->getTag().c_str());
290 if (ctx->caps()->maxSampleCount() < config->getSamples()) {
292 config->getSamples(), ctx->caps()->maxSampleCount());
303 SkImageInfo info = SkImageInfo::Make(width, height, config->getColorType(),
304 kPremul_SkAlphaType, sk_ref_sp(config->getColorSpace()));
305 uint32_t flags = config->getUseDIText() ? SkSurfaceProps::kUseDeviceIndependentFonts_Flag : 0;
308 SkSurface::MakeRenderTarget(ctx, SkBudgeted::kNo, info, config->getSamples(), &props);
310 exitf(ExitErr::kUnavailable, "failed to create %ix%i render target for config %s",
311 width, height, config->getTag().c_str());
333 print_result(samples, config->getTag().c_str(), skpname.c_str());