From 982eb7f377a0c771345276558072deb2fcea0d3e Mon Sep 17 00:00:00 2001 From: brianosman Date: Mon, 6 Jun 2016 13:10:58 -0700 Subject: 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. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2037413002 Review-Url: https://codereview.chromium.org/2037413002 --- include/core/SkImageInfo.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/core/SkImageInfo.h') diff --git a/include/core/SkImageInfo.h b/include/core/SkImageInfo.h index 743ca59481..2d89fbf0d6 100644 --- a/include/core/SkImageInfo.h +++ b/include/core/SkImageInfo.h @@ -176,6 +176,11 @@ enum SkColorProfileType { kLastEnum_SkColorProfileType = kSRGB_SkColorProfileType }; +enum class SkSourceGammaTreatment { + kRespect, + kIgnore, +}; + /** * Describe an image's dimensions and pixel type. * Used for both src images and render-targets (surfaces). -- cgit v1.2.3