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

Side by Side Diff: include/core/SkTypeface.h

Issue 1275393003: Fix for 510931, merge to m44 (Closed) Base URL: https://skia.googlesource.com/skia.git@m44
Patch Set: Created 5 years, 4 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 | « gyp/utils.gypi ('k') | src/core/SkScalerContext.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 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkTypeface_DEFINED 10 #ifndef SkTypeface_DEFINED
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 size_t length, void* data) const = 0; 360 size_t length, void* data) const = 0;
361 361
362 virtual bool onComputeBounds(SkRect*) const; 362 virtual bool onComputeBounds(SkRect*) const;
363 363
364 private: 364 private:
365 friend class SkGTypeface; 365 friend class SkGTypeface;
366 friend class SkPDFFont; 366 friend class SkPDFFont;
367 friend class SkPDFCIDFont; 367 friend class SkPDFCIDFont;
368 friend class GrPathRendering; 368 friend class GrPathRendering;
369 friend class GrGLPathRendering; 369 friend class GrGLPathRendering;
370 friend class SkRandomTypeface; // For debugging
370 371
371 /** Retrieve detailed typeface metrics. Used by the PDF backend. 372 /** Retrieve detailed typeface metrics. Used by the PDF backend.
372 @param perGlyphInfo Indicate what glyph specific information (advances, 373 @param perGlyphInfo Indicate what glyph specific information (advances,
373 names, etc.) should be populated. 374 names, etc.) should be populated.
374 @param glyphIDs For per-glyph info, specify subset of the font by 375 @param glyphIDs For per-glyph info, specify subset of the font by
375 giving glyph ids. Each integer represents a glyph 376 giving glyph ids. Each integer represents a glyph
376 id. Passing NULL means all glyphs in the font. 377 id. Passing NULL means all glyphs in the font.
377 @param glyphIDsCount Number of elements in subsetGlyphIds. Ignored if 378 @param glyphIDsCount Number of elements in subsetGlyphIds. Ignored if
378 glyphIDs is NULL. 379 glyphIDs is NULL.
379 @return The returned object has already been referenced. 380 @return The returned object has already been referenced.
(...skipping 15 matching lines...) Expand all
395 SkFontStyle fStyle; 396 SkFontStyle fStyle;
396 bool fIsFixedPitch; 397 bool fIsFixedPitch;
397 398
398 friend class SkPaint; 399 friend class SkPaint;
399 friend class SkGlyphCache; // GetDefaultTypeface 400 friend class SkGlyphCache; // GetDefaultTypeface
400 401
401 typedef SkWeakRefCnt INHERITED; 402 typedef SkWeakRefCnt INHERITED;
402 }; 403 };
403 404
404 #endif 405 #endif
OLDNEW
« no previous file with comments | « gyp/utils.gypi ('k') | src/core/SkScalerContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698