aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkSurfaceProps.h
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-07-26 11:36:05 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-26 11:36:05 -0700
commit3a0dbde1cfa84b08c7dd5b597142e9f6179f2d07 (patch)
tree8415ee29b45878e0c304955b4553fda4431c1d5f /include/core/SkSurfaceProps.h
parentdc2257bfab9fc232f96c6db0595b9d12b2f0cf36 (diff)
Remove SkSurfaceProps gamma-correctness flag entirely.
This is no longer required - gamma-correctness is now just based on the presence or absence of a color space. Public API change is just removal of (unused) flag. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2188463002 TBR=bsalomon@google.com Review-Url: https://codereview.chromium.org/2188463002
Diffstat (limited to 'include/core/SkSurfaceProps.h')
-rw-r--r--include/core/SkSurfaceProps.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/core/SkSurfaceProps.h b/include/core/SkSurfaceProps.h
index 7f56147397..735561f1dc 100644
--- a/include/core/SkSurfaceProps.h
+++ b/include/core/SkSurfaceProps.h
@@ -54,17 +54,6 @@ public:
kDisallowAntiAlias_Flag = 1 << 0,
kDisallowDither_Flag = 1 << 1,
kUseDeviceIndependentFonts_Flag = 1 << 2,
-
- /**
- * This flag causes sRGB inputs to the color pipeline (images and other sRGB-tagged
- * colors) to be gamma-corrected (converted to linear) before use. Without this flag,
- * texture scaling and filtering is not gamma correct, preserving the behavior of Skia
- * up through 2015.
- *
- * It is recommended to enable this flag when rendering to an sRGB or floating point
- * surface.
- */
- kGammaCorrect_Flag = 1 << 3,
};
/** Deprecated alias used by Chromium. Will be removed. */
static const Flags kUseDistanceFieldFonts_Flag = kUseDeviceIndependentFonts_Flag;
@@ -86,7 +75,6 @@ public:
bool isUseDeviceIndependentFonts() const {
return SkToBool(fFlags & kUseDeviceIndependentFonts_Flag);
}
- bool isGammaCorrect() const { return SkToBool(fFlags & kGammaCorrect_Flag); }
private:
SkSurfaceProps();