diff options
author | 2016-06-17 09:26:41 -0700 | |
---|---|---|
committer | 2016-06-17 09:26:41 -0700 | |
commit | 960b2d69bbae19dc814f06d841b94ef71e291b48 (patch) | |
tree | ed69d0f4d45e4e7e223a1fc9d8d631addce15e43 /src/core/SkBlitter.cpp | |
parent | 7d2f607ac16788eac985d4738b8cb901971f33c3 (diff) |
remove colorprofiletype from imageinfo
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2075853002
Review-Url: https://codereview.chromium.org/2075853002
Diffstat (limited to 'src/core/SkBlitter.cpp')
-rw-r--r-- | src/core/SkBlitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkBlitter.cpp b/src/core/SkBlitter.cpp index daced55ef2..43471946c1 100644 --- a/src/core/SkBlitter.cpp +++ b/src/core/SkBlitter.cpp @@ -788,7 +788,7 @@ SkShader::ContextRec::DstType SkBlitter::PreferredShaderDest(const SkImageInfo& #ifdef SK_FORCE_PM4f_FOR_L32_BLITS return SkShader::ContextRec::kPM4f_DstType; #else - return (dstInfo.isSRGB() || dstInfo.colorType() == kRGBA_F16_SkColorType) + return (dstInfo.gammaCloseToSRGB() || dstInfo.colorType() == kRGBA_F16_SkColorType) ? SkShader::ContextRec::kPM4f_DstType : SkShader::ContextRec::kPMColor_DstType; #endif @@ -922,7 +922,7 @@ SkBlitter* SkBlitter::Choose(const SkPixmap& device, #ifdef SK_FORCE_PM4f_FOR_L32_BLITS if (true) #else - if (device.info().isSRGB()) + if (device.info().gammaCloseToSRGB()) #endif { blitter = SkBlitter_ARGB32_Create(device, *paint, shaderContext, allocator); |