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

Side by Side Diff: src/pdf/SkPDFStream.h

Issue 23437004: [PDF] Fix printing crashes caused by font streams that don't support getMemoryBase(). (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Add comment Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/pdf/SkPDFStream.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 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkPDFStream_DEFINED 10 #ifndef SkPDFStream_DEFINED
11 #define SkPDFStream_DEFINED 11 #define SkPDFStream_DEFINED
12 12
13 #include "SkPDFTypes.h" 13 #include "SkPDFTypes.h"
14 #include "SkRefCnt.h" 14 #include "SkRefCnt.h"
15 #include "SkStream.h" 15 #include "SkStream.h"
16 #include "SkTemplates.h" 16 #include "SkTemplates.h"
17 17
18 class SkPDFCatalog; 18 class SkPDFCatalog;
19 19
20 /** \class SkPDFStream 20 /** \class SkPDFStream
21 21
22 A stream object in a PDF. Note, all streams must be indirect objects (via 22 A stream object in a PDF. Note, all streams must be indirect objects (via
23 SkObjRef). 23 SkObjRef).
24 TODO(vandebo): SkStream should be replaced by SkStreamRewindable when that
25 is feasible.
24 */ 26 */
25 class SkPDFStream : public SkPDFDict { 27 class SkPDFStream : public SkPDFDict {
26 public: 28 public:
27 /** Create a PDF stream. A Length entry is automatically added to the 29 /** Create a PDF stream. A Length entry is automatically added to the
28 * stream dictionary. The stream may be retained (stream->ref() may be 30 * stream dictionary. The stream may be retained (stream->ref() may be
29 * called) so its contents must not be changed after calling this. 31 * called) so its contents must not be changed after calling this.
30 * @param data The data part of the stream. 32 * @param data The data part of the stream.
31 */ 33 */
32 explicit SkPDFStream(SkData* data); 34 explicit SkPDFStream(SkData* data);
33 /** Deprecated constructor. */ 35 /** Deprecated constructor. */
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 State fState; 90 State fState;
89 91
90 // TODO(vandebo): Use SkData (after removing deprecated constructor). 92 // TODO(vandebo): Use SkData (after removing deprecated constructor).
91 SkAutoTUnref<SkStream> fData; 93 SkAutoTUnref<SkStream> fData;
92 SkAutoTUnref<SkPDFStream> fSubstitute; 94 SkAutoTUnref<SkPDFStream> fSubstitute;
93 95
94 typedef SkPDFDict INHERITED; 96 typedef SkPDFDict INHERITED;
95 }; 97 };
96 98
97 #endif 99 #endif
OLDNEW
« no previous file with comments | « no previous file | src/pdf/SkPDFStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698