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

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

Issue 2253283004: SkPDF: in-place font subsetting (Closed) Base URL: https://skia.googlesource.com/skia.git@SkPdfCacheMetrics
Patch Set: 2016-08-18 (Thursday) 16:02:16 EDT Created 4 years, 4 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/SkPDFGraphicState.cpp ('k') | src/pdf/SkPDFMakeToUnicodeCmap.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 2016 Google Inc. 2 * Copyright 2016 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 #ifndef SkPDFMakeToUnicodeCmap_DEFINED 7 #ifndef SkPDFMakeToUnicodeCmap_DEFINED
8 #define SkPDFMakeToUnicodeCmap_DEFINED 8 #define SkPDFMakeToUnicodeCmap_DEFINED
9 9
10 #include "SkTDArray.h" 10 #include "SkTDArray.h"
11 #include "SkPDFFont.h" 11 #include "SkPDFFont.h"
12 #include "SkStream.h" 12 #include "SkStream.h"
13 13
14 sk_sp<SkPDFStream> SkPDFMakeToUnicodeCmap( 14 sk_sp<SkPDFStream> SkPDFMakeToUnicodeCmap(
15 const SkTDArray<SkUnichar>& glyphToUnicode, 15 const SkTDArray<SkUnichar>& glyphToUnicode,
16 const SkPDFGlyphSet* subset, 16 const SkBitSet* subset,
17 bool multiByteGlyphs, 17 bool multiByteGlyphs,
18 SkGlyphID firstGlyphID, 18 SkGlyphID firstGlyphID,
19 SkGlyphID lastGlyphID); 19 SkGlyphID lastGlyphID);
20 20
21 // Exposed for unit testing. 21 // Exposed for unit testing.
22 void SkPDFAppendCmapSections(const SkTDArray<SkUnichar>& glyphToUnicode, 22 void SkPDFAppendCmapSections(const SkTDArray<SkUnichar>& glyphToUnicode,
23 const SkPDFGlyphSet* subset, 23 const SkBitSet* subset,
24 SkDynamicMemoryWStream* cmap, 24 SkDynamicMemoryWStream* cmap,
25 bool multiByteGlyphs, 25 bool multiByteGlyphs,
26 SkGlyphID firstGlyphID, 26 SkGlyphID firstGlyphID,
27 SkGlyphID lastGlyphID); 27 SkGlyphID lastGlyphID);
28 28
29 #endif // SkPDFMakeToUnicodeCmap_DEFINED 29 #endif // SkPDFMakeToUnicodeCmap_DEFINED
OLDNEW
« no previous file with comments | « src/pdf/SkPDFGraphicState.cpp ('k') | src/pdf/SkPDFMakeToUnicodeCmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698