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

Unified Diff: experimental/PdfViewer/pdfparser/native/SkPdfObject.h

Issue 21919003: pdfviewer: implementation of one type of pattern - simple tile patern, colored, with xstep and yste… (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 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: experimental/PdfViewer/pdfparser/native/SkPdfObject.h
===================================================================
--- experimental/PdfViewer/pdfparser/native/SkPdfObject.h (revision 10498)
+++ experimental/PdfViewer/pdfparser/native/SkPdfObject.h (working copy)
@@ -839,7 +839,7 @@
}
}
- SkString toString(int firstRowLevel = 0, int level = 0) const {
+ SkString toString(int firstRowLevel = 0, int level = 0) {
SkString str;
appendSpaces(&str, firstRowLevel);
switch (fObjectType) {
@@ -905,7 +905,15 @@
appendSpaces(&str, level);
str.append(">>");
if (hasStream()) {
- str.append("stream HAS_STREAM endstream");
+ const unsigned char* stream = NULL;
+ size_t length = 0;
+ if (GetFilteredStreamRef(&stream, &length)) {
+ str.append("stream");
+ str.append((const char*)stream, length > 256 ? 256 : length);
+ str.append("endstream");
+ } else {
+ str.append("stream STREAM_ERROR endstream");
+ }
}
}
break;
« no previous file with comments | « experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.cpp ('k') | experimental/PdfViewer/spec2def.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698