add --dylib to fm

Change-Id: I1b75e703123d90712b001921d5b1e132238076fa
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/265823
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
This commit is contained in:
Mike Klein 2020-01-22 11:36:40 -06:00 committed by Skia Commit-Bot
parent 295cdf8775
commit 31bfa83f91

View File

@ -51,6 +51,7 @@ static DEFINE_string(gamut , "srgb", "The color gamut for any raster backend."
static DEFINE_string(tf , "srgb", "The transfer function for any raster backend.");
static DEFINE_bool (legacy, false, "Use a null SkColorSpace instead of --gamut and --tf?");
static DEFINE_bool (skvm , false, "Use SkVMBlitter when supported?");
static DEFINE_bool (dylib , false, "Use SkVM via dylib?");
static DEFINE_int (samples , 0, "Samples per pixel in GPU backends.");
static DEFINE_bool (stencils, true, "If false, avoid stencil buffers in GPU backends.");
@ -370,6 +371,7 @@ static sk_sp<SkImage> draw_with_gpu(std::function<bool(SkCanvas*)> draw,
}
extern bool gUseSkVMBlitter;
extern bool gSkVMJITViaDylib;
int main(int argc, char** argv) {
CommandLineFlags::Parse(argc, argv);
@ -378,9 +380,8 @@ int main(int argc, char** argv) {
if (FLAGS_cpuDetect) {
SkGraphics::Init();
}
if (FLAGS_skvm) {
gUseSkVMBlitter = true;
}
gUseSkVMBlitter = FLAGS_skvm;
gSkVMJITViaDylib = FLAGS_dylib;
initializeEventTracingForTools();
ToolUtils::SetDefaultFontMgr();