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

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

Issue 1217573002: remove SkInstCnt (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « src/pdf/SkPDFShader.h ('k') | src/pdf/SkPDFTypes.h » ('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 SkPDFObjNumMap; 18 class SkPDFObjNumMap;
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 */ 24 */
25 class SkPDFStream : public SkPDFDict { 25 class SkPDFStream : public SkPDFDict {
26 SK_DECLARE_INST_COUNT(SkPDFStream) 26
27 public: 27 public:
28 /** Create a PDF stream. A Length entry is automatically added to the 28 /** Create a PDF stream. A Length entry is automatically added to the
29 * stream dictionary. 29 * stream dictionary.
30 * @param data The data part of the stream. Will be ref()ed. 30 * @param data The data part of the stream. Will be ref()ed.
31 */ 31 */
32 explicit SkPDFStream(SkData* data); 32 explicit SkPDFStream(SkData* data);
33 33
34 /** Create a PDF stream. A Length entry is automatically added to the 34 /** Create a PDF stream. A Length entry is automatically added to the
35 * stream dictionary. 35 * stream dictionary.
36 * @param stream The data part of the stream. Will be duplicate()d. 36 * @param stream The data part of the stream. Will be duplicate()d.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 private: 69 private:
70 // Indicates what form (or if) the stream has been requested. 70 // Indicates what form (or if) the stream has been requested.
71 State fState; 71 State fState;
72 72
73 SkAutoTDelete<SkStreamRewindable> fDataStream; 73 SkAutoTDelete<SkStreamRewindable> fDataStream;
74 74
75 typedef SkPDFDict INHERITED; 75 typedef SkPDFDict INHERITED;
76 }; 76 };
77 77
78 #endif 78 #endif
OLDNEW
« no previous file with comments | « src/pdf/SkPDFShader.h ('k') | src/pdf/SkPDFTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698