diff options
author | Matt Sarett <msarett@google.com> | 2016-11-08 16:13:43 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-11-08 22:27:02 +0000 |
commit | 562e681e5c600e919c3b57201b85776c4789f5aa (patch) | |
tree | cd513930870236e8ebd3b6a16aadf0eebd79a4f8 /src/codec/SkBmpRLECodec.cpp | |
parent | 1d3ab12b82e1fa16a0d6b6b9cc1c0290b45cbca9 (diff) |
Refactor RGBA/BGRA xform logic in SkCodecs
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4554
Change-Id: Ic9105a2806b915fc56b6810a80dd444561d0d959
Reviewed-on: https://skia-review.googlesource.com/4554
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: Matt Sarett <msarett@google.com>
Diffstat (limited to 'src/codec/SkBmpRLECodec.cpp')
-rw-r--r-- | src/codec/SkBmpRLECodec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codec/SkBmpRLECodec.cpp b/src/codec/SkBmpRLECodec.cpp index 0bc6f60542..c2574ddef8 100644 --- a/src/codec/SkBmpRLECodec.cpp +++ b/src/codec/SkBmpRLECodec.cpp @@ -341,7 +341,7 @@ int SkBmpRLECodec::decodeRows(const SkImageInfo& info, void* dst, size_t dstRowB SkImageInfo decodeInfo = dstInfo; if (decodeDst) { if (this->colorXform()) { - decodeInfo = decodeInfo.makeColorType(kBGRA_8888_SkColorType); + decodeInfo = decodeInfo.makeColorType(kXformSrcColorType); if (kRGBA_F16_SkColorType == dstInfo.colorType()) { int count = height * dstInfo.width(); this->resetXformBuffer(count); |