diff options
author | msarett <msarett@google.com> | 2015-08-06 15:34:42 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-06 15:34:42 -0700 |
commit | 4ab9d5f1bc6d05c49dc765c3de5ade816f4c968e (patch) | |
tree | ecab1b0e6d12a892197f81a89b3bd1df3e0e7a58 /src/codec/SkMaskSwizzler.h | |
parent | 74992b579422a5e31fa07705d1f9206e0d919706 (diff) |
Split SkBmpCodec into three separate classes
Will regress behavior on gold on test32bfv4.bmp, where we
will no longer fix transparent decodes.
TODO: Start fixing transparent decodes again, or decide
that we don't want to fix them and remove isTransparent
from SkSwizzler. I think this may become more clear when I
start implementing the scanline decoder.
BUG=skia:
Review URL: https://codereview.chromium.org/1258863008
Diffstat (limited to 'src/codec/SkMaskSwizzler.h')
-rw-r--r-- | src/codec/SkMaskSwizzler.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/codec/SkMaskSwizzler.h b/src/codec/SkMaskSwizzler.h index 4ccc3ae4a4..9f4dd440aa 100644 --- a/src/codec/SkMaskSwizzler.h +++ b/src/codec/SkMaskSwizzler.h @@ -4,6 +4,8 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ +#ifndef SkMaskSwizzler_DEFINED +#define SkMaskSwizzler_DEFINED #include "SkMasks.h" #include "SkSwizzler.h" @@ -19,37 +21,29 @@ class SkMaskSwizzler { public: /* - * * Create a new swizzler * @param masks Unowned pointer to helper class - * */ static SkMaskSwizzler* CreateMaskSwizzler(const SkImageInfo& imageInfo, SkMasks* masks, uint32_t bitsPerPixel); /* - * * Swizzle a row - * */ SkSwizzler::ResultAlpha swizzle(void* dst, const uint8_t* SK_RESTRICT src); private: /* - * * Row procedure used for swizzle - * */ typedef SkSwizzler::ResultAlpha (*RowProc)( void* dstRow, const uint8_t* srcRow, int width, SkMasks* masks); /* - * * Constructor for mask swizzler - * */ SkMaskSwizzler(const SkImageInfo& info, SkMasks* masks, RowProc proc); @@ -58,3 +52,5 @@ private: SkMasks* fMasks; // unowned const RowProc fRowProc; }; + +#endif |