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

Side by Side Diff: experimental/PdfViewer/pdfparser/native/SkPdfNativeDoc.h

Issue 849103004: Make SkStream *not* ref counted. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase, just in case. Created 5 years, 11 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 unified diff | Download patch
« no previous file with comments | « experimental/PdfViewer/inc/SkPdfRenderer.h ('k') | gm/coloremoji.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkPdfNativeDoc_DEFINED 8 #ifndef SkPdfNativeDoc_DEFINED
9 #define SkPdfNativeDoc_DEFINED 9 #define SkPdfNativeDoc_DEFINED
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Used to break a recursive reference to itself. 62 // Used to break a recursive reference to itself.
63 bool fIsReferenceResolved; 63 bool fIsReferenceResolved;
64 }; 64 };
65 65
66 public: 66 public:
67 // TODO(edisonn) should be deprecated 67 // TODO(edisonn) should be deprecated
68 SkPdfNativeDoc(const char* path); 68 SkPdfNativeDoc(const char* path);
69 69
70 // TODO(edisonn) should be deprecated 70 // TODO(edisonn) should be deprecated
71 // FIXME: Untested. 71 // FIXME: Untested.
72 // Does not affect ownership of stream.
72 SkPdfNativeDoc(SkStream* stream); 73 SkPdfNativeDoc(SkStream* stream);
73 74
74 ~SkPdfNativeDoc(); 75 ~SkPdfNativeDoc();
75 76
76 // returns the number of pages in the pdf 77 // returns the number of pages in the pdf
77 int pages() const; 78 int pages() const;
78 79
79 // returns the page resources 80 // returns the page resources
80 SkPdfResourceDictionary* pageResources(int page); 81 SkPdfResourceDictionary* pageResources(int page);
81 82
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 const unsigned char* fFileContent; 151 const unsigned char* fFileContent;
151 size_t fContentLength; 152 size_t fContentLength;
152 SkPdfNativeObject* fRootCatalogRef; 153 SkPdfNativeObject* fRootCatalogRef;
153 SkPdfCatalogDictionary* fRootCatalog; 154 SkPdfCatalogDictionary* fRootCatalog;
154 155
155 mutable SkTDArray<PublicObjectEntry> fObjects; 156 mutable SkTDArray<PublicObjectEntry> fObjects;
156 SkTDArray<SkPdfPageObjectDictionary*> fPages; 157 SkTDArray<SkPdfPageObjectDictionary*> fPages;
157 }; 158 };
158 159
159 #endif // SkPdfNativeDoc_DEFINED 160 #endif // SkPdfNativeDoc_DEFINED
OLDNEW
« no previous file with comments | « experimental/PdfViewer/inc/SkPdfRenderer.h ('k') | gm/coloremoji.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698