From f865b05fe50ca2c094b9c60e4405c6094415b4f6 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Fri, 9 Mar 2018 09:01:53 -0500 Subject: Add GM configs that test rendering to a GL backend texture and render target This also adds GrGpu::create/deleteTestingOnlyBackendRenderTarget. Implemented in GL only for now. Change-Id: I9e5fdc953c4a249959af89e08332f520cefe9d90 Reviewed-on: https://skia-review.googlesource.com/113305 Reviewed-by: Greg Daniel Commit-Queue: Brian Salomon --- bench/nanobench.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bench/nanobench.cpp') 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* 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)) { -- cgit v1.2.3