diff options
author | Hal Canary <halcanary@google.com> | 2018-01-19 13:08:23 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-22 20:11:57 +0000 |
commit | a9de760a217cf48c974d6c51b4ba88f08c269bbe (patch) | |
tree | 16924fe7092b51a982ad667524440c5b6bbbe0e7 /tools/list_gms.cpp | |
parent | 3b428cbf8a2f4b8d4fad7f2708e67cf954ba7bf1 (diff) |
SkQP: replace blacklist with: DoNotExecuteInExperimentalMode and NoScoreInCompatibilityTestMode
Also clean up some things, fix docs, whitelist.
Change-Id: I2818d973978ffe1b8ce0cc9c69f8d91ab4a0ef22
Reviewed-on: https://skia-review.googlesource.com/91805
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'tools/list_gms.cpp')
-rw-r--r-- | tools/list_gms.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/list_gms.cpp b/tools/list_gms.cpp new file mode 100644 index 0000000000..dde7f471b6 --- /dev/null +++ b/tools/list_gms.cpp @@ -0,0 +1,25 @@ +/* + * 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 (const skiagm::GMRegistry* r = skiagm::GMRegistry::Head(); r; r = r->next()) { + std::unique_ptr<skiagm::GM> gm(r->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'; + } +} |