diff options
author | csmartdalton <csmartdalton@google.com> | 2016-07-29 08:14:20 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-29 08:14:20 -0700 |
commit | e0d362929d6569e8737d80dead791c640390e819 (patch) | |
tree | 3943140ef518a4fc3962672a74039cb776f1ef48 /tools/flags/SkCommonFlagsConfig.h | |
parent | 0d9990f052670a8af29e1e775c414810f8fc6e86 (diff) |
Add test configs for instanced rendering
Adds the following configs and enables them on select bots:
glinst, glinst4, glinstdit4, glinst16, glinstdit16,
esinst, esinst4, esinstdit4
Makes general changes to GrContextOptions, GrCaps, etc. to facilitate
this.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2182783004
Review-Url: https://codereview.chromium.org/2182783004
Diffstat (limited to 'tools/flags/SkCommonFlagsConfig.h')
-rw-r--r-- | tools/flags/SkCommonFlagsConfig.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/flags/SkCommonFlagsConfig.h b/tools/flags/SkCommonFlagsConfig.h index dc38977cb8..641c68b3ee 100644 --- a/tools/flags/SkCommonFlagsConfig.h +++ b/tools/flags/SkCommonFlagsConfig.h @@ -52,11 +52,12 @@ class SkCommandLineConfigGpu : public SkCommandLineConfig { public: typedef sk_gpu_test::GrContextFactory::ContextType ContextType; SkCommandLineConfigGpu(const SkString& tag, const SkTArray<SkString>& viaParts, - ContextType contextType, bool useNVPR, bool useDIText, int samples, - SkColorType colorType, sk_sp<SkColorSpace> colorSpace); + ContextType contextType, bool useNVPR, bool useInstanced, bool useDIText, + int samples, SkColorType colorType, sk_sp<SkColorSpace> colorSpace); const SkCommandLineConfigGpu* asConfigGpu() const override { return this; } ContextType getContextType() const { return fContextType; } bool getUseNVPR() const { return fUseNVPR; } + bool getUseInstanced() const { return fUseInstanced; } bool getUseDIText() const { return fUseDIText; } int getSamples() const { return fSamples; } SkColorType getColorType() const { return fColorType; } @@ -65,6 +66,7 @@ class SkCommandLineConfigGpu : public SkCommandLineConfig { private: ContextType fContextType; bool fUseNVPR; + bool fUseInstanced; bool fUseDIText; int fSamples; SkColorType fColorType; |