2841 {
2842 bool do_software = true;
2843 bool do_opengl = false;
2844 bool do_metal = false;
2845 std::vector<std::string>
args = ::testing::internal::GetArgvs();
2846 for (
auto p_arg = std::next(
args.begin()); p_arg !=
args.end(); p_arg++) {
2847 std::string arg = *p_arg;
2848 bool enable = true;
2849 if (arg == "--save-impeller-failures") {
2851 continue;
2852 }
2854 enable = false;
2855 arg = "-" + arg.substr(4);
2857 enable = false;
2858 arg = "--en" + arg.substr(5);
2859 }
2860 if (arg == "--enable-software") {
2861 do_software = enable;
2862 } else if (arg == "--enable-opengl" || arg == "--enable-gl") {
2863 do_opengl = enable;
2864 } else if (arg == "--enable-metal") {
2865 do_metal = enable;
2866 } else if (arg == "--enable-impeller") {
2868 }
2869 }
2870
2871
2873 if (do_software) {
2875 }
2876 if (do_opengl) {
2878 }
2879 if (do_metal) {
2881 }
2882 std::string providers = "";
2883 for (auto& back_end : CanvasCompareTester::TestBackends) {
2885 }
2886 std::string libraries = " Skia";
2889 libraries += " Impeller";
2890 }
2891 FML_LOG(INFO) <<
"Running tests on [" << providers
2892 << " ], and [" << libraries << " ]";
2893 }
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)