huangcm
2025-09-01 53d8e046ac1bf2ebe94f671983e3d3be059df91a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Copyright 2018 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
 
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
 
#include "gm.h"
 
int main() {
    std::vector<std::string> gms;
    for (skiagm::GMFactory factory : skiagm::GMRegistry::Range()) {
        std::unique_ptr<skiagm::GM> gm(factory(nullptr));
        gms.push_back(std::string(gm->getName()));
    }
    std::sort(gms.begin(), gms.end());
    for (const std::string& gm : gms) {
        std::cout << gm << '\n';
    }
}