diff options
author | Matt Sarett <msarett@google.com> | 2016-11-02 16:18:01 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-11-03 16:33:33 +0000 |
commit | d851795e7992565c1eb2b9474ee5ad01d1a01fad (patch) | |
tree | a7293bc7bf6609e882092ded278956f58852a981 /src/codec/SkMaskSwizzler.h | |
parent | eea7c16d59a163bd5b858891bc916c49063ed8ac (diff) |
Add F16, SkColorSpaceXform support to SkBmpCodec
BUG=skia:4895
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4300
Change-Id: I2f2b8d3854ea3a8c5904dd3c5bea0342e2be9789
Reviewed-on: https://skia-review.googlesource.com/4300
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: Matt Sarett <msarett@google.com>
Diffstat (limited to 'src/codec/SkMaskSwizzler.h')
-rw-r--r-- | src/codec/SkMaskSwizzler.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/codec/SkMaskSwizzler.h b/src/codec/SkMaskSwizzler.h index 3bf8d1758f..5d2955caab 100644 --- a/src/codec/SkMaskSwizzler.h +++ b/src/codec/SkMaskSwizzler.h @@ -45,6 +45,13 @@ public: SkSampler::Fill(fillInfo, dst, rowBytes, colorOrIndex, zeroInit); } + /** + * Returns the byte offset at which we write to destination memory, taking + * scaling, subsetting, and partial frames into account. + * A similar function exists on SkSwizzler. + */ + int swizzleWidth() const { return fDstWidth; } + private: /* |