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

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

Issue 1217573002: remove SkInstCnt (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 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 | « include/core/SkSurface.h ('k') | include/core/SkWeakRefCnt.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 23 matching lines...) Expand all
34 34
35 The SkTypeface class specifies the typeface and intrinsic style of a font. 35 The SkTypeface class specifies the typeface and intrinsic style of a font.
36 This is used in the paint, along with optionally algorithmic settings like 36 This is used in the paint, along with optionally algorithmic settings like
37 textSize, textSkewX, textScaleX, kFakeBoldText_Mask, to specify 37 textSize, textSkewX, textScaleX, kFakeBoldText_Mask, to specify
38 how text appears when drawn (and measured). 38 how text appears when drawn (and measured).
39 39
40 Typeface objects are immutable, and so they can be shared between threads. 40 Typeface objects are immutable, and so they can be shared between threads.
41 */ 41 */
42 class SK_API SkTypeface : public SkWeakRefCnt { 42 class SK_API SkTypeface : public SkWeakRefCnt {
43 public: 43 public:
44 SK_DECLARE_INST_COUNT(SkTypeface)
45
46 /** Style specifies the intrinsic style attributes of a given typeface 44 /** Style specifies the intrinsic style attributes of a given typeface
47 */ 45 */
48 enum Style { 46 enum Style {
49 kNormal = 0, 47 kNormal = 0,
50 kBold = 0x01, 48 kBold = 0x01,
51 kItalic = 0x02, 49 kItalic = 0x02,
52 50
53 // helpers 51 // helpers
54 kBoldItalic = 0x03 52 kBoldItalic = 0x03
55 }; 53 };
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 SkFontStyle fStyle; 409 SkFontStyle fStyle;
412 bool fIsFixedPitch; 410 bool fIsFixedPitch;
413 411
414 friend class SkPaint; 412 friend class SkPaint;
415 friend class SkGlyphCache; // GetDefaultTypeface 413 friend class SkGlyphCache; // GetDefaultTypeface
416 414
417 typedef SkWeakRefCnt INHERITED; 415 typedef SkWeakRefCnt INHERITED;
418 }; 416 };
419 417
420 #endif 418 #endif
OLDNEW
« no previous file with comments | « include/core/SkSurface.h ('k') | include/core/SkWeakRefCnt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698