aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/flags/SkCommonFlagsConfig.h
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-03-10 07:49:08 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-10 07:49:08 -0800
commitd93c1208520376ec062c8e9b6b7e6d0eac6c6faf (patch)
tree9ac9c992ebca5ed921e0eb6a2d44e7bcb57f3e02 /tools/flags/SkCommonFlagsConfig.h
parente6d665e24feabf6c633452885910efd17e5f025e (diff)
Added (color=8888|f16|srgb) option to gpu configurations, along with gpuf16 and gpusrgb predefined configs. Runs the gpu backend in gamma-correct mode (with either FP16 linear or sRGB 8888 frambuffers).
Diffstat (limited to 'tools/flags/SkCommonFlagsConfig.h')
-rw-r--r--tools/flags/SkCommonFlagsConfig.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/flags/SkCommonFlagsConfig.h b/tools/flags/SkCommonFlagsConfig.h
index 423cf1118c..39f1f9788b 100644
--- a/tools/flags/SkCommonFlagsConfig.h
+++ b/tools/flags/SkCommonFlagsConfig.h
@@ -52,18 +52,23 @@ class SkCommandLineConfigGpu : public SkCommandLineConfig {
public:
typedef GrContextFactory::GLContextType ContextType;
SkCommandLineConfigGpu(const SkString& tag, const SkTArray<SkString>& viaParts,
- ContextType contextType, bool useNVPR, bool useDIText, int samples);
+ ContextType contextType, bool useNVPR, bool useDIText, int samples,
+ SkColorType colorType, SkColorProfileType profileType);
const SkCommandLineConfigGpu* asConfigGpu() const override { return this; }
ContextType getContextType() const { return fContextType; }
bool getUseNVPR() const { return fUseNVPR; }
bool getUseDIText() const { return fUseDIText; }
int getSamples() const { return fSamples; }
+ SkColorType getColorType() const { return fColorType; }
+ SkColorProfileType getProfileType() const { return fProfileType; }
private:
ContextType fContextType;
bool fUseNVPR;
bool fUseDIText;
int fSamples;
+ SkColorType fColorType;
+ SkColorProfileType fProfileType;
};
#endif