2838 {
2839 bool do_software = true;
2840 bool do_opengl = false;
2841 bool do_metal = false;
2842 std::vector<std::string>
args = ::testing::internal::GetArgvs();
2843 for (
auto p_arg = std::next(
args.begin()); p_arg !=
args.end(); p_arg++) {
2844 std::string arg = *p_arg;
2845 bool enable = true;
2846 if (arg == "--save-impeller-failures") {
2848 continue;
2849 }
2851 enable = false;
2852 arg = "-" + arg.substr(4);
2854 enable = false;
2855 arg = "--en" + arg.substr(5);
2856 }
2857 if (arg == "--enable-software") {
2858 do_software = enable;
2859 } else if (arg == "--enable-opengl" || arg == "--enable-gl") {
2860 do_opengl = enable;
2861 } else if (arg == "--enable-metal") {
2862 do_metal = enable;
2863 } else if (arg == "--enable-impeller") {
2865 }
2866 }
2867
2868
2870 if (do_software) {
2872 }
2873 if (do_opengl) {
2875 }
2876 if (do_metal) {
2878 }
2879 std::string providers = "";
2880 for (auto& back_end : CanvasCompareTester::TestBackends) {
2882 }
2883 std::string libraries = " Skia";
2886 libraries += " Impeller";
2887 }
2888 FML_LOG(INFO) <<
"Running tests on [" << providers
2889 << " ], and [" << libraries << " ]";
2890 }
static bool SaveImpellerFailureImages
static bool ImpellerSupported
static bool AddProvider(BackendType type)
static void ClearProviders()
static bool StartsWith(std::string str, std::string prefix)
static std::string BackendName(BackendType type)
static bool EnableImpeller
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
#define FML_LOG(severity)