# 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',
],
},
}
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)
, fAlphaType(at)
, fProfileType(pt)
{}
-
- SkColorProfileType fProfileType;
};
#endif
#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))