aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrPaint.cpp
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-03-25 06:01:59 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-25 06:01:59 -0700
commit64d094d7756534a9b9b0997aab225d9ceba098b6 (patch)
treeb1297062c16726548ee940466da4e2fee17887e6 /src/gpu/GrPaint.cpp
parent73233a75752733db16870259cc06b2a5230c8ff8 (diff)
Require sRGB write control for sRGB support. Add flag to GrPaint to suppress linear -> sRGB conversion on write. Use that to fix YUV conversion, which directly produces sRGB data. (Technically, it produces data in whatever the color space of the JPEG might be).
Diffstat (limited to 'src/gpu/GrPaint.cpp')
-rw-r--r--src/gpu/GrPaint.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpu/GrPaint.cpp b/src/gpu/GrPaint.cpp
index 1ec8e502be..c381562b7c 100644
--- a/src/gpu/GrPaint.cpp
+++ b/src/gpu/GrPaint.cpp
@@ -15,6 +15,7 @@
GrPaint::GrPaint()
: fAntiAlias(false)
+ , fDisableOutputConversionToSRGB(false)
, fColor(GrColor_WHITE) {}
void GrPaint::setCoverageSetOpXPFactory(SkRegion::Op regionOp, bool invertCoverage) {