aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/text/GrFontScaler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/text/GrFontScaler.h')
-rw-r--r--src/gpu/text/GrFontScaler.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gpu/text/GrFontScaler.h b/src/gpu/text/GrFontScaler.h
index f6b67706e3..a2be7464a8 100644
--- a/src/gpu/text/GrFontScaler.h
+++ b/src/gpu/text/GrFontScaler.h
@@ -43,10 +43,10 @@ private:
* The client is responsible for instantiating this. The instance is created
* for a specific font+size+matrix.
*/
-class GrFontScaler : public SkRefCnt {
+class GrFontScaler final : public SkNoncopyable {
public:
explicit GrFontScaler(SkGlyphCache* strike);
- virtual ~GrFontScaler();
+ ~GrFontScaler();
const GrFontDescKey* getKey();
GrMaskFormat getMaskFormat() const;
@@ -60,10 +60,12 @@ public:
const SkGlyph& grToSkGlyph(GrGlyph::PackedID);
private:
+ // The SkGlyphCache actually owns this GrFontScaler. The GrFontScaler is deleted when the
+ // SkGlyphCache is deleted.
SkGlyphCache* fStrike;
GrFontDescKey* fKey;
- typedef SkRefCnt INHERITED;
+ typedef SkNoncopyable INHERITED;
};
#endif