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

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

Issue 2251803002: SkPDF: pull out SkPDFMakeCIDGlyphWidthsArray.cpp (Closed) Base URL: https://skia.googlesource.com/skia.git@SkPdfEliminateSkPDFCIDfont
Patch Set: 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
OLDNEW
(Empty)
1 /*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7 #ifndef SkPDFMakeCIDGlyphWidthsArray_DEFINED
8 #define SkPDFMakeCIDGlyphWidthsArray_DEFINED
9
10 #include "SkPDFTypes.h"
11
12 class SkBitSet;
13 class SkGlyphCache;
14
15 /* PDF 32000-1:2008, page 270: "The array’s elements have a variable
16 format that can specify individual widths for consecutive CIDs or
17 one width for a range of CIDs". */
18 sk_sp<SkPDFArray> SkPDFMakeCIDGlyphWidthsArray(SkGlyphCache* cache,
19 const SkBitSet* subset,
20 uint16_t emSize,
21 int16_t* defaultWidth);
22
23
24 // used for unit tests.
25 struct SkPDFAdvancerMock {
26 virtual ~SkPDFAdvancerMock() {}
27 virtual SkScalar operator()(SkGlyphID) const;
28 virtual int count() const;
29 };
30 sk_sp<SkPDFArray> SkPDFMakeCIDGlyphWidthsArray(const SkPDFAdvancerMock& mock,
bungeman-skia 2016/08/16 19:16:25 Having this mocking stuff seems premature if we do
hal.canary 2016/08/16 20:42:09 Done.
31 const SkBitSet* subset,
32 uint16_t emSize,
33 int16_t* defaultWidth);
34
35 #endif // SkPDFMakeCIDGlyphWidthsArray_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698