aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec/SkBmpStandardCodec.h
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2016-02-15 10:18:45 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-15 10:18:45 -0800
commitb30d6984e6dfc185bf1eebf927343563057a7bb3 (patch)
treeb019dea2fb2de94a32aaf87e4cb106e812fc182b /src/codec/SkBmpStandardCodec.h
parent8681e60b2ccd4cea37128a129f1adf6a6d59bb7d (diff)
Fix colorType/alphaType checks in SkCodec
Make getPixels() and startScanlineDecode() behave consistently. Require that kGray8 decodes are opaque. Assert that creating the swizzler succeeds. BUG=skia:4203 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1695473002 Committed: https://skia.googlesource.com/skia/+/c7578b6cdd03b61f076ffc7956efd952d6c301c0 Review URL: https://codereview.chromium.org/1695473002
Diffstat (limited to 'src/codec/SkBmpStandardCodec.h')
-rw-r--r--src/codec/SkBmpStandardCodec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codec/SkBmpStandardCodec.h b/src/codec/SkBmpStandardCodec.h
index d3e2ed3e4f..557f6535c9 100644
--- a/src/codec/SkBmpStandardCodec.h
+++ b/src/codec/SkBmpStandardCodec.h
@@ -72,7 +72,7 @@ private:
*/
bool createColorTable(SkAlphaType alphaType, int* colorCount);
- bool initializeSwizzler(const SkImageInfo& dstInfo, const Options& opts);
+ void initializeSwizzler(const SkImageInfo& dstInfo, const Options& opts);
int decodeRows(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes,
const Options& opts) override;