diff options
Diffstat (limited to 'bench/nanobench.cpp')
-rw-r--r-- | bench/nanobench.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp index 2246fbb07d..ea0de3398e 100644 --- a/bench/nanobench.cpp +++ b/bench/nanobench.cpp @@ -424,6 +424,10 @@ static void create_config(const SkCommandLineConfig* config, SkTArray<Config>* c const auto sampleCount = gpuConfig->getSamples(); const auto colorType = gpuConfig->getColorType(); auto colorSpace = gpuConfig->getColorSpace(); + if (gpuConfig->getSurfType() != SkCommandLineConfigGpu::SurfType::kDefault) { + SkDebugf("This tool only supports the default surface type."); + return; + } GrContextFactory factory(grContextOpts); if (const GrContext* ctx = factory.get(ctxType, ctxOverrides)) { |