blob: 666f84bcec02ac08ff7ed96c3dec3c7409e34b4c [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
13#include "gm.h"
14
15int main() {
16 std::vector<std::string> gms;
Hal Canary972eba32018-07-30 17:07:07 -040017 for (skiagm::GMFactory factory : skiagm::GMRegistry::Range()) {
18 std::unique_ptr<skiagm::GM> gm(factory(nullptr));
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}