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 --- dm/DMSrcSink.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'dm/DMSrcSink.h') diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h index 227ef5341a..18e854bb0c 100644 --- a/dm/DMSrcSink.h +++ b/dm/DMSrcSink.h @@ -14,6 +14,7 @@ #include "SkBitmap.h" #include "SkBitmapRegionDecoder.h" #include "SkCanvas.h" +#include "SkCommonFlagsConfig.h" #include "SkData.h" #include "SkMultiPictureDocument.h" #include "SkPicture.h" @@ -339,7 +340,8 @@ public: class GPUSink : public Sink { public: GPUSink(sk_gpu_test::GrContextFactory::ContextType, - sk_gpu_test::GrContextFactory::ContextOverrides, int samples, bool diText, + sk_gpu_test::GrContextFactory::ContextOverrides, + SkCommandLineConfigGpu::SurfType surfType, int samples, bool diText, SkColorType colorType, SkAlphaType alphaType, sk_sp colorSpace, bool threaded, const GrContextOptions& grCtxOptions); @@ -359,6 +361,7 @@ public: private: sk_gpu_test::GrContextFactory::ContextType fContextType; sk_gpu_test::GrContextFactory::ContextOverrides fContextOverrides; + SkCommandLineConfigGpu::SurfType fSurfType; int fSampleCount; bool fUseDIText; SkColorType fColorType; @@ -371,7 +374,8 @@ private: class GPUThreadTestingSink : public GPUSink { public: GPUThreadTestingSink(sk_gpu_test::GrContextFactory::ContextType, - sk_gpu_test::GrContextFactory::ContextOverrides, int samples, bool diText, + sk_gpu_test::GrContextFactory::ContextOverrides, + SkCommandLineConfigGpu::SurfType surfType, int samples, bool diText, SkColorType colorType, SkAlphaType alphaType, sk_sp colorSpace, bool threaded, const GrContextOptions& grCtxOptions); -- cgit v1.2.3