OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 | 7 |
8 #include <ctype.h> | 8 #include <ctype.h> |
9 | 9 |
10 #include "SkData.h" | 10 #include "SkData.h" |
11 #include "SkGlyphCache.h" | 11 #include "SkGlyphCache.h" |
12 #include "SkPaint.h" | 12 #include "SkPaint.h" |
13 #include "SkPDFCanon.h" | 13 #include "SkPDFCanon.h" |
14 #include "SkPDFDevice.h" | 14 #include "SkPDFDevice.h" |
15 #include "SkPDFFont.h" | 15 #include "SkPDFFont.h" |
16 #include "SkPDFFontImpl.h" | 16 #include "SkPDFFontImpl.h" |
17 #include "SkPDFStream.h" | 17 #include "SkPDFStream.h" |
18 #include "SkPDFTypes.h" | |
19 #include "SkPDFUtils.h" | 18 #include "SkPDFUtils.h" |
20 #include "SkRefCnt.h" | 19 #include "SkRefCnt.h" |
21 #include "SkScalar.h" | 20 #include "SkScalar.h" |
22 #include "SkStream.h" | 21 #include "SkStream.h" |
23 #include "SkTypefacePriv.h" | 22 #include "SkTypefacePriv.h" |
24 #include "SkTypes.h" | 23 #include "SkTypes.h" |
25 #include "SkUtils.h" | 24 #include "SkUtils.h" |
26 | 25 |
27 #if defined (SK_SFNTLY_SUBSETTER) | 26 #if defined (SK_SFNTLY_SUBSETTER) |
28 #if defined (GOOGLE3) | 27 #if defined (GOOGLE3) |
(...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1436 } | 1435 } |
1437 return *canon->fCanEmbedTypeface.set(id, canEmbed); | 1436 return *canon->fCanEmbedTypeface.set(id, canEmbed); |
1438 } | 1437 } |
1439 | 1438 |
1440 void SkPDFFont::drop() { | 1439 void SkPDFFont::drop() { |
1441 fTypeface = nullptr; | 1440 fTypeface = nullptr; |
1442 fFontInfo = nullptr; | 1441 fFontInfo = nullptr; |
1443 fDescriptor = nullptr; | 1442 fDescriptor = nullptr; |
1444 this->SkPDFDict::drop(); | 1443 this->SkPDFDict::drop(); |
1445 } | 1444 } |
OLD | NEW |