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 (const skiagm::GMRegistry* r = skiagm::GMRegistry::Head(); r; r = r->next()) { 18 std::unique_ptr<skiagm::GM> gm(r->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