Remove fOrigFontID from SkScalerContextRec.
authorbungeman <bungeman@google.com>
Mon, 18 Aug 2014 14:57:35 +0000 (07:57 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 18 Aug 2014 14:57:35 +0000 (07:57 -0700)
With the recent Android changes and removal of chaining, this is no longer used.

R=djsollen@google.com, reed@google.com

Author: bungeman@google.com

Review URL: https://codereview.chromium.org/476713003

src/core/SkPaint.cpp
src/core/SkScalerContext.h

index 3dd87b7..89a8cd0 100644 (file)
@@ -1553,8 +1553,7 @@ void SkScalerContext::MakeRec(const SkPaint& paint,
     if (NULL == typeface) {
         typeface = SkTypeface::GetDefaultTypeface();
     }
-    rec->fOrigFontID = typeface->uniqueID();
-    rec->fFontID = rec->fOrigFontID;
+    rec->fFontID = typeface->uniqueID();
     rec->fTextSize = paint.getTextSize();
     rec->fPreScaleX = paint.getTextScaleX();
     rec->fPreSkewX  = paint.getTextSkewX();
index 609e9dd..337b2e0 100644 (file)
@@ -25,7 +25,6 @@ class SkRasterizer;
  *  than a nested struct inside SkScalerContext (where it started).
  */
 struct SkScalerContextRec {
-    uint32_t    fOrigFontID;
     uint32_t    fFontID;
     SkScalar    fTextSize, fPreScaleX, fPreSkewX;
     SkScalar    fPost2x2[2][2];