aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkShader.h
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-06-06 13:10:58 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-06 13:10:58 -0700
commit982eb7f377a0c771345276558072deb2fcea0d3e (patch)
tree02ae878610160d6b6c91629424aaf895e5f17497 /include/core/SkShader.h
parentdc27a648d2ff23b2e96232c00c15976c46e1d48d (diff)
Add new SkSourceGammaTreatment enum, used in situations like mipmap construction, where we need to know if we should respect (vs. ignore) the gamma encoding of sRGB tagged images. Plumb that extensively.
Diffstat (limited to 'include/core/SkShader.h')
-rw-r--r--include/core/SkShader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/core/SkShader.h b/include/core/SkShader.h
index 60aa7cd6c9..33ac8db6bc 100644
--- a/include/core/SkShader.h
+++ b/include/core/SkShader.h
@@ -327,7 +327,8 @@ public:
virtual const GrFragmentProcessor* asFragmentProcessor(GrContext*,
const SkMatrix& viewMatrix,
const SkMatrix* localMatrix,
- SkFilterQuality) const;
+ SkFilterQuality,
+ SkSourceGammaTreatment) const;
/**
* If the shader can represent its "average" luminance in a single color, return true and