From ac6c75056f1e8e5a5d7c3c4b64df4113368d9c31 Mon Sep 17 00:00:00 2001 From: msarett Date: Mon, 25 Apr 2016 09:30:24 -0700 Subject: Remove SkEncodedInfo kUnknown_Color and kUnknown_Alpha from public API BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1918873002 Review URL: https://codereview.chromium.org/1918873002 --- include/codec/SkEncodedInfo.h | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'include/codec') diff --git a/include/codec/SkEncodedInfo.h b/include/codec/SkEncodedInfo.h index 60bfdc5a1e..27511e1e93 100644 --- a/include/codec/SkEncodedInfo.h +++ b/include/codec/SkEncodedInfo.h @@ -21,10 +21,6 @@ public: // Each pixel is either fully opaque or fully transparent. // There is no difference between requesting kPremul or kUnpremul. kBinary_Alpha, - - // Allows us to have a default constructor. Should be treated as - // invalid. - kUnknown_Alpha, }; /* @@ -72,10 +68,6 @@ public: // Used internally to indicate that the decoding library has // pre-swizzled to the desired output format. kPreSwizzled_Color, - - // Allows us to have a default constructor. Should be treated as - // invalid. - kUnknown_Color, }; static SkEncodedInfo Make(Color color, Alpha alpha, int bitsPerComponent) { @@ -195,12 +187,6 @@ public: } } - SkEncodedInfo() - : fColor(kUnknown_Color) - , fAlpha(kUnknown_Alpha) - , fBitsPerComponent(0) - {} - private: SkEncodedInfo(Color color, Alpha alpha, uint8_t bitsPerComponent) -- cgit v1.2.3