From c2e682795218268845d097dd41a92e72084c43f0 Mon Sep 17 00:00:00 2001 From: reed Date: Sat, 1 Aug 2015 07:03:20 -0700 Subject: [PATCH] remove now-dead flags BUG=skia: Review URL: https://codereview.chromium.org/1258963005 --- gyp/skia_for_android_framework_defines.gypi | 2 -- include/core/SkImageInfo.h | 8 +------- include/core/SkScalar.h | 3 --- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/gyp/skia_for_android_framework_defines.gypi b/gyp/skia_for_android_framework_defines.gypi index 4694154..e8aa6c3 100644 --- a/gyp/skia_for_android_framework_defines.gypi +++ b/gyp/skia_for_android_framework_defines.gypi @@ -13,13 +13,11 @@ # 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', ], }, } diff --git a/include/core/SkImageInfo.h b/include/core/SkImageInfo.h index aa183cf..459a0ee 100644 --- a/include/core/SkImageInfo.h +++ b/include/core/SkImageInfo.h @@ -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 diff --git a/include/core/SkScalar.h b/include/core/SkScalar.h index 2c42eb8..25d1c61 100644 --- a/include/core/SkScalar.h +++ b/include/core/SkScalar.h @@ -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)) -- 2.7.4