2726 {
2727 bool do_software = true;
2728 bool do_opengl = false;
2729 bool do_metal = false;
2730 std::vector<std::string>
args = ::testing::internal::GetArgvs();
2732 std::string arg = *p_arg;
2733 bool enable = true;
2734 if (arg == "--save-impeller-failures") {
2736 continue;
2737 }
2739 enable = false;
2740 arg = "-" + arg.substr(4);
2742 enable = false;
2743 arg = "--en" + arg.substr(5);
2744 }
2745 if (arg == "--enable-software") {
2746 do_software = enable;
2747 } else if (arg == "--enable-opengl" || arg == "--enable-gl") {
2748 do_opengl = enable;
2749 } else if (arg == "--enable-metal") {
2750 do_metal = enable;
2751 } else if (arg == "--enable-impeller") {
2753 }
2754 }
2755
2756
2758 if (do_software) {
2760 }
2761 if (do_opengl) {
2763 }
2764 if (do_metal) {
2766 }
2767 std::string providers = "";
2770 }
2771 std::string libraries = " Skia";
2774 libraries += " Impeller";
2775 }
2776 FML_LOG(INFO) <<
"Running tests on [" << providers
2777 << " ], and [" << libraries << " ]";
2778 }
static float next(float f)
static std::vector< BackendType > TestBackends
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)