remove now-dead flags
authorreed <reed@google.com>
Sat, 1 Aug 2015 14:03:20 +0000 (07:03 -0700)
committerCommit bot <commit-bot@chromium.org>
Sat, 1 Aug 2015 14:03:20 +0000 (07:03 -0700)
BUG=skia:

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

gyp/skia_for_android_framework_defines.gypi
include/core/SkImageInfo.h
include/core/SkScalar.h

index 4694154..e8aa6c3 100644 (file)
     # If these become 'permanent', they should be moved into common_variables.gypi
     #
     'skia_for_android_framework_defines': [
-      'SK_SUPPORT_LEGACY_PUBLIC_IMAGEINFO_FIELDS',
       'SK_SUPPORT_LEGACY_GETDEVICE',
       'SK_SUPPORT_LEGACY_UNBALANCED_PIXELREF_LOCKCOUNT',
       # Needed until we fix skbug.com/2440.
       'SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG',
       'SK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS',
-      'SK_SUPPORT_LEGACY_SCALAR_DIV',
     ],
   },
 }
index aa183cf..459a0ee 100644 (file)
@@ -299,17 +299,13 @@ public:
 
     SkDEBUGCODE(void validate() const;)
 
-#ifdef SK_SUPPORT_LEGACY_PUBLIC_IMAGEINFO_FIELDS
-public:
-#else
 private:
-#endif
     int                 fWidth;
     int                 fHeight;
     SkColorType         fColorType;
     SkAlphaType         fAlphaType;
+    SkColorProfileType  fProfileType;
 
-private:
     SkImageInfo(int width, int height, SkColorType ct, SkAlphaType at, SkColorProfileType pt)
         : fWidth(width)
         , fHeight(height)
@@ -317,8 +313,6 @@ private:
         , fAlphaType(at)
         , fProfileType(pt)
     {}
-
-    SkColorProfileType  fProfileType;
 };
 
 #endif
index 2c42eb8..25d1c61 100644 (file)
@@ -184,9 +184,6 @@ static inline SkScalar SkScalarSquare(SkScalar x) { return x * x; }
 
 #define SkScalarMul(a, b)       ((SkScalar)(a) * (b))
 #define SkScalarMulAdd(a, b, c) ((SkScalar)(a) * (b) + (c))
-#ifdef SK_SUPPORT_LEGACY_SCALAR_DIV
-    #define SkScalarDiv(a, b)       ((SkScalar)(a) / (b))
-#endif
 #define SkScalarMulDiv(a, b, c) ((SkScalar)(a) * (b) / (c))
 #define SkScalarInvert(x)       (SK_Scalar1 / (x))
 #define SkScalarFastInvert(x)   (SK_Scalar1 / (x))