Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Unified Diff: src/codec/SkSwizzler.h

Issue 1472933002: Make SkAndroidCodec support ico (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Response to comments Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/codec/SkBmpStandardCodec.cpp ('K') | « src/codec/SkCodec_libico.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codec/SkSwizzler.h
diff --git a/src/codec/SkSwizzler.h b/src/codec/SkSwizzler.h
index 7f5bbc6209b459ceb38fe217319d3759777c2f9a..8aef6c5da98c14c5d05f003585efa96eb8591847 100644
--- a/src/codec/SkSwizzler.h
+++ b/src/codec/SkSwizzler.h
@@ -163,6 +163,15 @@ public:
SkSampler::Fill(fillInfo, dst, rowBytes, colorOrIndex, zeroInit);
}
+ /**
+ * Getter for fSampleX.
scroggo 2015/12/03 19:39:25 This line doesn't state anything that cannot be gl
msarett 2015/12/03 19:54:15 Done.
+ *
+ * Currently used by SkBmpStandardCodec for Bmp-in-Ico decodes. Ideally, the
+ * subclasses of SkCodec would have no knowledge of sampling, but this allows
+ * us to apply a transparency mask to pixels after swizzling.
+ */
+ int sampleX() const { return fSampleX; }
+
private:
/**
« src/codec/SkBmpStandardCodec.cpp ('K') | « src/codec/SkCodec_libico.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698