diff options
author | Brian Salomon <bsalomon@google.com> | 2018-03-09 09:01:53 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-09 16:32:10 +0000 |
commit | f865b05fe50ca2c094b9c60e4405c6094415b4f6 (patch) | |
tree | a00eab7c3787b5b977b3ae7c15aa1732f5a42c97 /dm/DMSrcSink.h | |
parent | ad06544cc6ac4b403a24adda4ee36b9f35b3071f (diff) |
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 <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'dm/DMSrcSink.h')
-rw-r--r-- | dm/DMSrcSink.h | 8 |
1 files changed, 6 insertions, 2 deletions
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<SkColorSpace> 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<SkColorSpace> colorSpace, bool threaded, const GrContextOptions& grCtxOptions); |