Lines Matching defs:const

92 static const int kAutoTuneLoops = 0;
225 explicit GPUTarget(const Config& c) : Target(c) {}
248 bool needsFrameTiming(int* maxFrameLag) const override {
329 static bool write_canvas_png(Target* target, const SkString& filename) {
363 static int setup_cpu_bench(const double overhead, Target* target, Benchmark* bench) {
396 const double numer = overhead / FLAGS_overheadGoal - overhead;
397 const double denom = bench_plus_overhead - overhead;
448 static skstd::optional<Config> create_config(const SkCommandLineConfig* config) {
449 if (const auto* gpuConfig = config->asConfigGpu()) {
455 const auto ctxType = gpuConfig->getContextType();
456 const auto ctxOverrides = gpuConfig->getContextOverrides();
457 const auto sampleCount = gpuConfig->getSamples();
458 const auto colorType = gpuConfig->getColorType();
465 if (const auto ctx = factory.get(ctxType, ctxOverrides)) {
550 static Target* is_enabled(Benchmark* bench, const Config& config) {
607 static void collect_files(const CommandLineFlags::StringArray& paths,
608 const char* ext,
664 static sk_sp<SkPicture> ReadPicture(const char* path) {
680 static std::unique_ptr<MSKPPlayer> ReadMSKP(const char* path) {
696 static sk_sp<SkPicture> ReadSVGPicture(const char* path) {
715 static const SkSize kDefaultContainerSize = SkSize::Make(128, 128);
776 const SkString& path = fSKPs[fCurrentRecording++];
791 const SkString& path = fSKPs[fCurrentDeserialPicture++];
807 const SkString& path = fSKPs[fCurrentSKP++];
830 const char* path = fSVGs[fCurrentSVG++].c_str();
847 const SkString& path = fSKPs[fCurrentAnimSKP];
865 const SkString& path = fMSKPs[fCurrentMSKP++];
879 const SkString& path = fImages[fCurrentCodec];
892 const SkColorType colorType = fColorTypes[fCurrentColorType];
930 const size_t rowBytes = info.minRowBytes();
933 const SkCodec::Result result = codec->getPixels(
953 const int sampleSizes[] = { 2, 4, 8 };
958 const SkString& path = fImages[fCurrentAndroidCodec];
998 const uint32_t brdSampleSizes[] = { 1, 2, 4, 8, 16 };
999 const uint32_t minOutputSize = 512;
1004 const SkString& path = fImages[fCurrentBRDImage];
1014 const SkColorType colorType = fColorTypes[fCurrentColorType];
1027 const uint32_t subsetSize = sampleSize * minOutputSize;
1073 void fillCurrentOptions(NanoJSONResultsWriter& log) const {
1085 void fillCurrentMetrics(NanoJSONResultsWriter& log) const {
1107 const BenchRegistry* fBenches;
1108 const skiagm::GMRegistry* fGMs;
1122 const char* fSourceType; // What we're benching: bench, GM, SKP, ...
1123 const char* fBenchType; // How we bench it: micro, recording, playback, ...
1148 static const int kSec = 1200;
1161 void compileError(const char* shader, const char* errors) override {
1231 const double overhead = estimate_timer_overhead();
1287 const char* config = target->config.name.c_str();
1357 const auto& dmsaaStats = canvas->recordingContext()->priv().dmsaaStats();
1376 const bool want_plot = !FLAGS_quiet && !FLAGS_ms;
1419 const char* mark = " ";
1420 const double stddev_percent =
1428 const double stddev_percent =
1440 const char* format = "%4d/%-4dMB\t%d\t%s\t%s\t%s\t%s\t%.0f%%\t%s\t%s\t%s\n";
1441 const double stddev_percent =