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 "SkData.h" | 8 #include "SkData.h" |
9 #include "SkGlyphCache.h" | 9 #include "SkGlyphCache.h" |
10 #include "SkPaint.h" | 10 #include "SkPaint.h" |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
718 this->firstGlyphID(), this->lastGlyphID()); | 718 this->firstGlyphID(), this->lastGlyphID()); |
719 } | 719 } |
720 | 720 |
721 //////////////////////////////////////////////////////////////////////////////// | 721 //////////////////////////////////////////////////////////////////////////////// |
722 | 722 |
723 bool SkPDFFont::CanEmbedTypeface(SkTypeface* typeface, SkPDFCanon* canon) { | 723 bool SkPDFFont::CanEmbedTypeface(SkTypeface* typeface, SkPDFCanon* canon) { |
724 const SkAdvancedTypefaceMetrics* metrics = SkPDFFont::GetMetrics(typeface, c anon); | 724 const SkAdvancedTypefaceMetrics* metrics = SkPDFFont::GetMetrics(typeface, c anon); |
725 return metrics && can_embed(*metrics); | 725 return metrics && can_embed(*metrics); |
726 } | 726 } |
727 | 727 |
728 void SkPDFFont::drop() { | 728 void SkPDFFont::drop() { |
bungeman-skia
2016/09/19 17:07:07
Now I'm wierded out about this 'drop' method which
| |
729 fTypeface = nullptr; | 729 fTypeface = nullptr; |
730 fGlyphUsage.reset(); | |
bungeman-skia
2016/09/19 17:07:07
If this guy is really gone maybe just destruct?
| |
730 this->SkPDFDict::drop(); | 731 this->SkPDFDict::drop(); |
731 } | 732 } |
OLD | NEW |