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

Unified Diff: src/pdf/SkPDFStream.h

Issue 2098393002: SkPDF: SkPDFStream takes only SkStreamAsset (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 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 | « src/pdf/SkPDFShader.cpp ('k') | src/pdf/SkPDFStream.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFStream.h
diff --git a/src/pdf/SkPDFStream.h b/src/pdf/SkPDFStream.h
index cf8cda543be9d09e247f64e8b57478f71365eda7..9e4b71dcbf7d1eb9653e2b791f19a7e24187379e 100644
--- a/src/pdf/SkPDFStream.h
+++ b/src/pdf/SkPDFStream.h
@@ -34,7 +34,7 @@ public:
* stream dictionary.
* @param stream The data part of the stream. Will not take ownership.
*/
- explicit SkPDFStream(SkStream* stream) { this->setData(stream); }
+ explicit SkPDFStream(SkStreamAsset* stream) { this->setData(stream); }
virtual ~SkPDFStream();
@@ -51,14 +51,14 @@ protected:
SkPDFStream() {}
/** Only call this function once. */
- void setData(SkStream* stream);
+ void setData(SkStreamAsset* stream);
void setData(SkData* data) {
SkMemoryStream memoryStream(data);
this->setData(&memoryStream);
}
private:
- std::unique_ptr<SkStreamRewindable> fCompressedData;
+ std::unique_ptr<SkStreamAsset> fCompressedData;
typedef SkPDFDict INHERITED;
};
« no previous file with comments | « src/pdf/SkPDFShader.cpp ('k') | src/pdf/SkPDFStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698