2793 {
2794 bool do_software = true;
2795 bool do_opengl = false;
2796 bool do_metal = false;
2797 std::vector<std::string>
args = ::testing::internal::GetArgvs();
2798 for (
auto p_arg = std::next(
args.begin()); p_arg !=
args.end(); p_arg++) {
2799 std::string arg = *p_arg;
2800 bool enable = true;
2801 if (arg == "--save-impeller-failures") {
2803 continue;
2804 }
2806 enable = false;
2807 arg = "-" + arg.substr(4);
2808 }
2809 if (arg == "--enable-software") {
2810 do_software = enable;
2811 } else if (arg == "--enable-opengl" || arg == "--enable-gl") {
2812 do_opengl = enable;
2813 } else if (arg == "--enable-metal") {
2814 do_metal = enable;
2815 }
2816 }
2817 if (do_software) {
2819 }
2820 if (do_opengl) {
2822 }
2823 if (do_metal) {
2825 }
2826 std::string providers = "";
2827 for (auto& back_end : CanvasCompareTester::TestBackends) {
2829 }
2830 FML_LOG(INFO) <<
"Running tests on [" << providers <<
" ]";
2831 }
static bool SaveImpellerFailureImages
static bool AddProvider(BackendType type)
static bool StartsWith(std::string str, std::string prefix)
static std::string BackendName(BackendType type)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
#define FML_LOG(severity)