Lines Matching defs:config
144 if (Benchmark::kRaster_Backend == config.backend) {
167 explicit GPUTarget(const Config& c) : Target(c), context(nullptr) { }
192 uint32_t flags = this->config.useDFText ? SkSurfaceProps::kUseDeviceIndependentFonts_Flag :
195 this->surface = SkSurface::MakeRenderTarget(gGrFactory->get(this->config.ctxType,
196 this->config.ctxOverrides),
198 this->config.samples, &props);
199 this->context = gGrFactory->getContextInfo(this->config.ctxType,
200 this->config.ctxOverrides).testContext();
205 SkDebugf("WARNING: GL context for config \"%s\" does not support fence sync. "
206 "Timings might not be accurate.\n", this->config.name.c_str());
405 static void create_config(const SkCommandLineConfig* config, SkTArray<Config>* configs) {
408 if (const auto* gpuConfig = config->asConfigGpu()) {
424 SkDebugf("No context was available matching config type and options.\n");
428 Config target = {
446 if (config->getTag().equals(#name)) { \
447 Config config = { \
451 configs->push_back(config); \
475 void create_configs(SkTArray<Config>* configs) {
489 // If bench is enabled for config, returns a Target* for it, otherwise nullptr.
490 static Target* is_enabled(Benchmark* bench, const Config& config) {
491 if (!bench->isSuitableFor(config.backend)) {
496 config.color, config.alpha, config.colorSpace);
500 switch (config.backend) {
503 target = new GPUTarget(config);
507 target = new Target(config);
1177 SkTArray<Config> configs;
1225 const char* config = target->config.name.c_str();
1230 , config);
1269 if (Benchmark::kNonRendering_Backend != target->config.backend &&
1271 SkString pngFilename = SkOSPath::Join(FLAGS_writePath[0], config);
1284 log->config(config);
1306 config = ""; // Only print the config if we run the same bench on more than one.
1312 , config);
1320 stats.median*1e3, mark, bench->getUniqueName(), config);
1333 , config
1361 log->config("meta");