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

Unified Diff: dm/DMSrcSink.h

Issue 1126613005: DM: add a Via to simulate SP pictures. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: int->scalar Created 5 years, 7 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 ea5572a7b906ff964c569d04b8afe4312cfc76db..0d612d0b933997358086d8ad35c4f0dfc861959e 100644
--- a/dm/DMSrcSink.h
+++ b/dm/DMSrcSink.h
@@ -295,6 +295,17 @@ private:
SkAutoTDelete<Sink> fSink;
};
+class ViaSingletonPictures : public Sink {
+public:
+ explicit ViaSingletonPictures(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