aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec/SkCodecPriv.h
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2016-10-11 12:15:03 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-10-11 12:15:03 -0700
commit31d097e865f266c8398f45114e4c75c0dfdef058 (patch)
tree474aa98958055b0d7e85483c014fccb4235ef7ef /src/codec/SkCodecPriv.h
parent7a1c53d0f67dcc98937ee5f06c6ba3f3b24882c6 (diff)
Add SkColorSpaceXform to the public API
Diffstat (limited to 'src/codec/SkCodecPriv.h')
-rw-r--r--src/codec/SkCodecPriv.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codec/SkCodecPriv.h b/src/codec/SkCodecPriv.h
index b93def8790..f210303598 100644
--- a/src/codec/SkCodecPriv.h
+++ b/src/codec/SkCodecPriv.h
@@ -176,8 +176,8 @@ static inline uint64_t get_color_table_fill_value(SkColorType dstColorType, SkAl
SkASSERT(colorXform);
uint64_t dstColor;
uint32_t srcColor = colorPtr[fillIndex];
- colorXform->apply(&dstColor, &srcColor, 1, select_xform_format(dstColorType),
- SkColorSpaceXform::kRGBA_8888_ColorFormat, alphaType);
+ SkAssertResult(colorXform->apply(select_xform_format(dstColorType), &dstColor,
+ SkColorSpaceXform::kRGBA_8888_ColorFormat, &srcColor, 1, alphaType));
return dstColor;
}
default: