| 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 "SkGScalerContext.h" | 8 #include "SkGScalerContext.h" |
| 9 #include "SkGlyph.h" | 9 #include "SkGlyph.h" |
| 10 #include "SkPath.h" | 10 #include "SkPath.h" |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 metrics->fXMax = SkScalarMul(metrics->fXMax, scale); | 151 metrics->fXMax = SkScalarMul(metrics->fXMax, scale); |
| 152 metrics->fXHeight = SkScalarMul(metrics->fXHeight, scale); | 152 metrics->fXHeight = SkScalarMul(metrics->fXHeight, scale); |
| 153 } | 153 } |
| 154 } | 154 } |
| 155 | 155 |
| 156 /////////////////////////////////////////////////////////////////////////////// | 156 /////////////////////////////////////////////////////////////////////////////// |
| 157 | 157 |
| 158 #include "SkTypefaceCache.h" | 158 #include "SkTypefaceCache.h" |
| 159 | 159 |
| 160 SkGTypeface::SkGTypeface(SkTypeface* proxy, const SkPaint& paint) | 160 SkGTypeface::SkGTypeface(SkTypeface* proxy, const SkPaint& paint) |
| 161 : SkTypeface(proxy->style(), SkTypefaceCache::NewFontID(), false) | 161 : SkTypeface(proxy->fontStyle(), SkTypefaceCache::NewFontID(), false) |
| 162 , fProxy(SkRef(proxy)) | 162 , fProxy(SkRef(proxy)) |
| 163 , fPaint(paint) {} | 163 , fPaint(paint) {} |
| 164 | 164 |
| 165 SkGTypeface::~SkGTypeface() { | 165 SkGTypeface::~SkGTypeface() { |
| 166 fProxy->unref(); | 166 fProxy->unref(); |
| 167 } | 167 } |
| 168 | 168 |
| 169 SkScalerContext* SkGTypeface::onCreateScalerContext( | 169 SkScalerContext* SkGTypeface::onCreateScalerContext( |
| 170 const SkDescriptor* desc) const { | 170 const SkDescriptor* desc) const { |
| 171 return SkNEW_ARGS(SkGScalerContext, (const_cast<SkGTypeface*>(this), desc)); | 171 return SkNEW_ARGS(SkGScalerContext, (const_cast<SkGTypeface*>(this), desc)); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 | 257 |
| 258 friend class SkGFontBuilder; | 258 friend class SkGFontBuilder; |
| 259 SkGFont(int count, Glyph* array); | 259 SkGFont(int count, Glyph* array); |
| 260 }; | 260 }; |
| 261 | 261 |
| 262 class SkGFontBuilder { | 262 class SkGFontBuilder { |
| 263 public: | 263 public: |
| 264 | 264 |
| 265 }; | 265 }; |
| 266 #endif | 266 #endif |
| OLD | NEW |