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

Side by Side Diff: include/pdf/SkPDFDocument.h

Issue 12754004: Update flag to reflect actual meaning. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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 The Android Open Source Project 3 * Copyright 2010 The Android Open Source Project
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 SkPDFDocument_DEFINED 10 #ifndef SkPDFDocument_DEFINED
(...skipping 11 matching lines...) Expand all
22 class SkPDFObject; 22 class SkPDFObject;
23 class SkWStream; 23 class SkWStream;
24 24
25 /** \class SkPDFDocument 25 /** \class SkPDFDocument
26 26
27 A SkPDFDocument assembles pages together and generates the final PDF file. 27 A SkPDFDocument assembles pages together and generates the final PDF file.
28 */ 28 */
29 class SkPDFDocument { 29 class SkPDFDocument {
30 public: 30 public:
31 enum Flags { 31 enum Flags {
32 kNoCompression_Flags = 0x01, //!< mask disable stream compression. 32 kNoCompression_Flags = 0x01, //!< DEPRECATED.
33 kFavorSpeedOverSize_Flags = 0x01, //!< Don't compress the stream, but
34 // if it already compressed return
35 // the compressed stream.
33 kNoLinks_Flags = 0x02, //!< do not honor link annotations. 36 kNoLinks_Flags = 0x02, //!< do not honor link annotations.
34 37
35 kDraftMode_Flags = 0x01, 38 kDraftMode_Flags = 0x01,
36 }; 39 };
37 /** Create a PDF document. 40 /** Create a PDF document.
38 */ 41 */
39 explicit SK_API SkPDFDocument(Flags flags = (Flags)0); 42 explicit SK_API SkPDFDocument(Flags flags = (Flags)0);
40 SK_API ~SkPDFDocument(); 43 SK_API ~SkPDFDocument();
41 44
42 /** Output the PDF to the passed stream. It is an error to call this (it 45 /** Output the PDF to the passed stream. It is an error to call this (it
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 size_t headerSize(); 95 size_t headerSize();
93 96
94 /** Output the PDF footer to the passed stream. 97 /** Output the PDF footer to the passed stream.
95 * @param stream The writable output stream to send the footer to. 98 * @param stream The writable output stream to send the footer to.
96 * @param objCount The number of objects in the PDF. 99 * @param objCount The number of objects in the PDF.
97 */ 100 */
98 void emitFooter(SkWStream* stream, int64_t objCount); 101 void emitFooter(SkWStream* stream, int64_t objCount);
99 }; 102 };
100 103
101 #endif 104 #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