2018-01-19 18:08:23 +00:00
|
|
|
/*
|
|
|
|
* 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>
|
|
|
|
|
2019-04-23 17:05:21 +00:00
|
|
|
#include "gm/gm.h"
|
2018-01-19 18:08:23 +00:00
|
|
|
|
|
|
|
int main() {
|
|
|
|
std::vector<std::string> gms;
|
2018-07-30 21:07:07 +00:00
|
|
|
for (skiagm::GMFactory factory : skiagm::GMRegistry::Range()) {
|
2019-08-05 14:28:09 +00:00
|
|
|
std::unique_ptr<skiagm::GM> gm(factory());
|
2018-01-19 18:08:23 +00:00
|
|
|
gms.push_back(std::string(gm->getName()));
|
|
|
|
}
|
|
|
|
std::sort(gms.begin(), gms.end());
|
|
|
|
for (const std::string& gm : gms) {
|
|
|
|
std::cout << gm << '\n';
|
|
|
|
}
|
|
|
|
}
|