You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
590 B
26 lines
590 B
4 months ago
|
/*
|
||
|
* 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';
|
||
|
}
|
||
|
}
|