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

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

Issue 2147733002: Remove user specified typeface id. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove one last straggler. Created 4 years, 5 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/core/SkTypeface.cpp ('k') | src/fonts/SkRandomScalerContext.cpp » ('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 "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
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
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
OLDNEW
« no previous file with comments | « src/core/SkTypeface.cpp ('k') | src/fonts/SkRandomScalerContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698