OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "SkDescriptor.h" | 8 #include "SkDescriptor.h" |
9 #include "SkGScalerContext.h" | 9 #include "SkGScalerContext.h" |
10 #include "SkGlyph.h" | 10 #include "SkGlyph.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 metrics->fXMax = SkScalarMul(metrics->fXMax, scale); | 145 metrics->fXMax = SkScalarMul(metrics->fXMax, scale); |
146 metrics->fXHeight = SkScalarMul(metrics->fXHeight, scale); | 146 metrics->fXHeight = SkScalarMul(metrics->fXHeight, scale); |
147 } | 147 } |
148 } | 148 } |
149 | 149 |
150 /////////////////////////////////////////////////////////////////////////////// | 150 /////////////////////////////////////////////////////////////////////////////// |
151 | 151 |
152 #include "SkTypefaceCache.h" | 152 #include "SkTypefaceCache.h" |
153 | 153 |
154 SkGTypeface::SkGTypeface(sk_sp<SkTypeface> proxy, const SkPaint& paint) | 154 SkGTypeface::SkGTypeface(sk_sp<SkTypeface> proxy, const SkPaint& paint) |
155 : SkTypeface(proxy->fontStyle(), SkTypefaceCache::NewFontID(), false) | 155 : SkTypeface(proxy->fontStyle(), false) |
156 , fProxy(std::move(proxy)) | 156 , fProxy(std::move(proxy)) |
157 , fPaint(paint) | 157 , fPaint(paint) |
158 {} | 158 {} |
159 | 159 |
160 SkScalerContext* SkGTypeface::onCreateScalerContext(const SkScalerContextEffects
& effects, | 160 SkScalerContext* SkGTypeface::onCreateScalerContext(const SkScalerContextEffects
& effects, |
161 const SkDescriptor* desc) co
nst { | 161 const SkDescriptor* desc) co
nst { |
162 return new SkGScalerContext(const_cast<SkGTypeface*>(this), effects, desc); | 162 return new SkGScalerContext(const_cast<SkGTypeface*>(this), effects, desc); |
163 } | 163 } |
164 | 164 |
165 void SkGTypeface::onFilterRec(SkScalerContextRec* rec) const { | 165 void SkGTypeface::onFilterRec(SkScalerContextRec* rec) const { |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 | 248 |
249 friend class SkGFontBuilder; | 249 friend class SkGFontBuilder; |
250 SkGFont(int count, Glyph* array); | 250 SkGFont(int count, Glyph* array); |
251 }; | 251 }; |
252 | 252 |
253 class SkGFontBuilder { | 253 class SkGFontBuilder { |
254 public: | 254 public: |
255 | 255 |
256 }; | 256 }; |
257 #endif | 257 #endif |
OLD | NEW |