Update flag to reflect actual meaning.
Review URL: https://codereview.chromium.org/12754004 git-svn-id: http://skia.googlecode.com/svn/trunk@8118 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
632b9ccebf
commit
8c020612ba
@ -29,7 +29,10 @@ class SkWStream;
|
||||
class SkPDFDocument {
|
||||
public:
|
||||
enum Flags {
|
||||
kNoCompression_Flags = 0x01, //!< mask disable stream compression.
|
||||
kNoCompression_Flags = 0x01, //!< DEPRECATED.
|
||||
kFavorSpeedOverSize_Flags = 0x01, //!< Don't compress the stream, but
|
||||
// if it is already compressed return
|
||||
// the compressed stream.
|
||||
kNoLinks_Flags = 0x02, //!< do not honor link annotations.
|
||||
|
||||
kDraftMode_Flags = 0x01,
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
static bool skip_compression(SkPDFCatalog* catalog) {
|
||||
return SkToBool(catalog->getDocumentFlags() &
|
||||
SkPDFDocument::kNoCompression_Flags);
|
||||
SkPDFDocument::kFavorSpeedOverSize_Flags);
|
||||
}
|
||||
|
||||
SkPDFStream::SkPDFStream(SkStream* stream)
|
||||
|
@ -51,7 +51,7 @@ static void CheckObjectOutput(skiatest::Reporter* reporter, SkPDFObject* obj,
|
||||
bool indirect, bool compression) {
|
||||
SkPDFDocument::Flags docFlags = (SkPDFDocument::Flags) 0;
|
||||
if (!compression) {
|
||||
docFlags = SkTBitOr(docFlags, SkPDFDocument::kNoCompression_Flags);
|
||||
docFlags = SkTBitOr(docFlags, SkPDFDocument::kFavorSpeedOverSize_Flags);
|
||||
}
|
||||
SkPDFCatalog catalog(docFlags);
|
||||
size_t directSize = obj->getOutputSize(&catalog, false);
|
||||
|
Loading…
Reference in New Issue
Block a user