aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkBlitter.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-06-17 09:26:41 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-17 09:26:41 -0700
commit960b2d69bbae19dc814f06d841b94ef71e291b48 (patch)
treeed69d0f4d45e4e7e223a1fc9d8d631addce15e43 /src/core/SkBlitter.cpp
parent7d2f607ac16788eac985d4738b8cb901971f33c3 (diff)
remove colorprofiletype from imageinfo
Diffstat (limited to 'src/core/SkBlitter.cpp')
-rw-r--r--src/core/SkBlitter.cpp4
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);