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

Side by Side Diff: src/fonts/SkGScalerContext.cpp

Issue 488143002: Replace SkTypeface::Style with SkFontStyle. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add expectations, remove whitespace. Created 6 years, 2 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
« no previous file with comments | « src/fonts/SkFontMgr_fontconfig.cpp ('k') | src/fonts/SkTestScalerContext.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/fonts/SkFontMgr_fontconfig.cpp ('k') | src/fonts/SkTestScalerContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698