1 /* 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 main()15int main() { 16 std::vector<std::string> gms; 17 for (skiagm::GMFactory factory : skiagm::GMRegistry::Range()) { 18 std::unique_ptr<skiagm::GM> gm(factory(nullptr)); 19 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 } 26