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

Unified Diff: dm/DMSrcSink.h

Issue 1062043004: Add a Via to DM that records into two pictures and draws using the second. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « dm/DM.cpp ('k') | dm/DMSrcSink.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMSrcSink.h
diff --git a/dm/DMSrcSink.h b/dm/DMSrcSink.h
index 2c21e87ef60c017926fa4dc841667d2f1d94588e..57af9110627dbdf3887e0e1aa28a9edcc9c706b4 100644
--- a/dm/DMSrcSink.h
+++ b/dm/DMSrcSink.h
@@ -266,6 +266,17 @@ private:
SkAutoTDelete<Sink> fSink;
};
+class ViaSecondPicture : public Sink {
+public:
+ explicit ViaSecondPicture(Sink*);
+
+ Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
+ int enclave() const override { return fSink->enclave(); }
+ const char* fileExtension() const override { return fSink->fileExtension(); }
+private:
+ SkAutoTDelete<Sink> fSink;
+};
+
} // namespace DM
#endif//DMSrcSink_DEFINED
« no previous file with comments | « dm/DM.cpp ('k') | dm/DMSrcSink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698