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

Unified Diff: dm/DMSrcSink.h

Issue 978823002: Run CodecSrc DM. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase, plus cleanups Created 5 years, 10 months 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
Index: dm/DMSrcSink.h
diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h
index dcd169e32283977beabfb2655a821374370be0e8..ace7c71c84ce171f41e93ec5005d95a5b4f8c534 100644
--- a/dm/DMSrcSink.h
+++ b/dm/DMSrcSink.h
@@ -95,6 +95,33 @@ private:
const int fDivisor;
};
+class CodecSrc : public Src {
+public:
+ enum SkipZeroes {
+ kSkipZeroes,
+ kNo_SkipZeroes,
+ };
+
+ enum Scanlines {
+ kNormal_Scanlines,
+ kIterator_Scanlines,
+ kScaling_Scanlines,
+ kSubset_Scanlines,
+ };
+
+ CodecSrc(Path path, SkColorType dstCT, SkAlphaType dstAT, SkipZeroes, Scanlines);
+
+ Error draw(SkCanvas*) const SK_OVERRIDE;
+ SkISize size() const SK_OVERRIDE;
+ Name name() const SK_OVERRIDE;
+private:
+ Path fPath;
+ SkColorType fDstColorType;
+ SkAlphaType fDstAlphaType;
+ SkipZeroes fSkipZeroes;
+ Scanlines fScanlines;
+};
+
class SKPSrc : public Src {
public:
explicit SKPSrc(Path path);

Powered by Google App Engine
This is Rietveld 408576698