blob: 6c3ebc510dac612731fdd256bd820d50cda0e673 [file] [log] [blame]
Hal Canarya9de7602018-01-19 13:08:23 -05001/*
2 * Copyright 2018 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#include <algorithm>
9#include <iostream>
10#include <string>
11#include <vector>
12
Mike Kleinc0bd9f92019-04-23 12:05:21 -050013#include "gm/gm.h"
Hal Canarya9de7602018-01-19 13:08:23 -050014
15int main() {
16 std::vector<std::string> gms;
Hal Canary972eba32018-07-30 17:07:07 -040017 for (skiagm::GMFactory factory : skiagm::GMRegistry::Range()) {
Hal Canaryedda5652019-08-05 10:28:09 -040018 std::unique_ptr<skiagm::GM> gm(factory());
Hal Canarya9de7602018-01-19 13:08:23 -050019 gms.push_back(std::string(gm->getName()));
20 }
21 std::sort(gms.begin(), gms.end());
22 for (const std::string& gm : gms) {
23 std::cout << gm << '\n';
24 }
25}