aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec/SkSwizzler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/codec/SkSwizzler.h')
-rw-r--r--src/codec/SkSwizzler.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/codec/SkSwizzler.h b/src/codec/SkSwizzler.h
index 4845047048..6172af5c43 100644
--- a/src/codec/SkSwizzler.h
+++ b/src/codec/SkSwizzler.h
@@ -72,6 +72,12 @@ public:
*/
int sampleX() const { return fSampleX; }
+ /**
+ * Returns the actual number of pixels written to destination memory, taking
+ * scaling, subsetting, and partial frames into account.
+ */
+ int swizzleWidth() const { return fSwizzleWidth; }
+
private:
/**