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

Unified Diff: dm/DMSrcSink.h

Issue 1513053004: Revert of DM: fix `--config $VIA-pdf` to not crash (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« 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 364a814f9d4beaccf800f6e3f5efec7b9b77a531..6b644ecdf36fd6c543d0c62c38ad34ad1b1e0b53 100644
--- a/dm/DMSrcSink.h
+++ b/dm/DMSrcSink.h
@@ -289,25 +289,21 @@
class Via : public Sink {
public:
- explicit Via(Name name, Sink* sink) : fName(name), fSink(sink) {}
+ explicit Via(Sink* sink) : fSink(sink) {}
const char* fileExtension() const override { return fSink->fileExtension(); }
int enclave() const override { return fSink->enclave(); }
- Name decorateName(const Src& src) const {
- return SkStringPrintf("%s-%s", src.name().c_str(), fName.c_str());
- }
SinkFlags flags() const override {
SinkFlags flags = fSink->flags();
flags.approach = SinkFlags::kIndirect;
return flags;
}
protected:
- Name fName;
SkAutoTDelete<Sink> fSink;
};
class ViaMatrix : public Via {
public:
- ViaMatrix(Name, SkMatrix, Sink*);
+ ViaMatrix(SkMatrix, Sink*);
Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
private:
const SkMatrix fMatrix;
@@ -315,7 +311,7 @@
class ViaUpright : public Via {
public:
- ViaUpright(Name, SkMatrix, Sink*);
+ ViaUpright(SkMatrix, Sink*);
Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
private:
const SkMatrix fMatrix;
@@ -323,13 +319,13 @@
class ViaPipe : public Via {
public:
- explicit ViaPipe(Name name, Sink* sink) : Via(name, sink) {}
+ explicit ViaPipe(Sink* sink) : Via(sink) {}
Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
};
class ViaRemote : public Via {
public:
- ViaRemote(Name name, bool cache, Sink* sink) : Via(name, sink), fCache(cache) {}
+ ViaRemote(bool cache, Sink* sink) : Via(sink), fCache(cache) {}
Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
private:
bool fCache;
@@ -337,13 +333,13 @@
class ViaSerialization : public Via {
public:
- explicit ViaSerialization(Name name, Sink* sink) : Via(name, sink) {}
+ explicit ViaSerialization(Sink* sink) : Via(sink) {}
Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
};
class ViaTiles : public Via {
public:
- ViaTiles(Name, int w, int h, SkBBHFactory*, Sink*);
+ ViaTiles(int w, int h, SkBBHFactory*, Sink*);
Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
private:
const int fW, fH;
@@ -352,19 +348,19 @@
class ViaSecondPicture : public Via {
public:
- explicit ViaSecondPicture(Name name, Sink* sink) : Via(name, sink) {}
+ explicit ViaSecondPicture(Sink* sink) : Via(sink) {}
Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
};
class ViaSingletonPictures : public Via {
public:
- explicit ViaSingletonPictures(Name name, Sink* sink) : Via(name, sink) {}
+ explicit ViaSingletonPictures(Sink* sink) : Via(sink) {}
Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
};
class ViaTwice : public Via {
public:
- explicit ViaTwice(Name name, Sink* sink) : Via(name, sink) {}
+ explicit ViaTwice(Sink* sink) : Via(sink) {}
Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
};
« 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