aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/flags/SkCommonFlagsConfig.h
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-03-01 12:53:06 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-01 12:53:06 -0800
commita6f58194733c1c50e4fe5f98585e42344f29b6f0 (patch)
tree788d199ef37b8596e5be52bb94b32208282afbc9 /tools/flags/SkCommonFlagsConfig.h
parent4bc31815ba1aa42ea13c5637c6b52262422b7bdb (diff)
Progress on gamma-correctness in the GPU backend. Fixed conversion of color and profile type to pixel config, which makes many things "just work".
Added (color=8888|f16|srgb) option to gpu configurations, along with gpuf16, gpusrgb, and anglesrgb predefined configs. Runs the gpu backend in gamma-correct mode (with either FP16 linear or sRGB 8888 frambuffers). BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1750383002 Review URL: https://codereview.chromium.org/1750383002
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