972eba3c5c
Change-Id: Icf4e31b50bbd91b7ea330a1300f736d6dfd0a41c Reviewed-on: https://skia-review.googlesource.com/144500 Commit-Queue: Ben Wagner <bungeman@google.com> Reviewed-by: Ben Wagner <bungeman@google.com> Auto-Submit: Hal Canary <halcanary@google.com>
26 lines
590 B
C++
26 lines
590 B
C++
/*
|
|
* 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';
|
|
}
|
|
}
|