diff options
author | brianosman <brianosman@google.com> | 2016-07-26 11:36:05 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-26 11:36:05 -0700 |
commit | 3a0dbde1cfa84b08c7dd5b597142e9f6179f2d07 (patch) | |
tree | 8415ee29b45878e0c304955b4553fda4431c1d5f /gm/textblobgeometrychange.cpp | |
parent | dc2257bfab9fc232f96c6db0595b9d12b2f0cf36 (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 'gm/textblobgeometrychange.cpp')
-rw-r--r-- | gm/textblobgeometrychange.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gm/textblobgeometrychange.cpp b/gm/textblobgeometrychange.cpp index a241c5c7ba..1b7bff319d 100644 --- a/gm/textblobgeometrychange.cpp +++ b/gm/textblobgeometrychange.cpp @@ -44,10 +44,7 @@ protected: SkImageInfo info = SkImageInfo::MakeN32(200, 200, kPremul_SkAlphaType, sk_ref_sp(canvas->imageInfo().colorSpace())); - SkSurfaceProps canvasProps(SkSurfaceProps::kLegacyFontHost_InitType); - uint32_t gammaCorrect = canvas->getProps(&canvasProps) - ? canvasProps.flags() & SkSurfaceProps::kGammaCorrect_Flag : 0; - SkSurfaceProps props(gammaCorrect, kUnknown_SkPixelGeometry); + SkSurfaceProps props(0, kUnknown_SkPixelGeometry); auto surface = canvas->makeSurface(info, &props); if (!surface) { surface = SkSurface::MakeRaster(info, &props); |