aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec/SkSwizzler.h
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2016-04-25 11:41:15 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-25 11:41:15 -0700
commit68758aed88b16d67658f634e8dcd855404fedb8a (patch)
treefa34bffb5593778a6bf38ceec45b69c0b019d3a7 /src/codec/SkSwizzler.h
parent7bedaf5606c49f7a81c46605959f5bcd36054c82 (diff)
Remove SkEncodedInfo kPreSwizzled_Color from public API
Diffstat (limited to 'src/codec/SkSwizzler.h')
-rw-r--r--src/codec/SkSwizzler.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/codec/SkSwizzler.h b/src/codec/SkSwizzler.h
index 070652cc8a..4845047048 100644
--- a/src/codec/SkSwizzler.h
+++ b/src/codec/SkSwizzler.h
@@ -27,6 +27,9 @@ public:
* Contains partial scanline information.
* @param frame Is non-NULL if the source pixels are part of an image
* frame that is a subset of the full image.
+ * @param preSwizzled Indicates that the codec has already swizzled to the
+ * destination format. The swizzler only needs to sample
+ * and/or subset.
*
* Note that a deeper discussion of partial scanline subsets and image frame
* subsets is below. Currently, we do not support both simultaneously. If
@@ -36,7 +39,7 @@ public:
*/
static SkSwizzler* CreateSwizzler(const SkEncodedInfo& encodedInfo, const SkPMColor* ctable,
const SkImageInfo& dstInfo, const SkCodec::Options&,
- const SkIRect* frame = nullptr);
+ const SkIRect* frame = nullptr, bool preSwizzled = false);
/**
* Swizzle a line. Generally this will be called height times, once