diff options
author | msarett <msarett@google.com> | 2016-01-11 07:23:23 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-11 07:23:23 -0800 |
commit | a4970dc973459d2607ce80623452bf8470adf6f1 (patch) | |
tree | df503260bfaa7d0a736daa93c727a03d0802adc3 /include/codec/SkCodec.h | |
parent | b512aaa5c808bcb1336c147682657882ee54e652 (diff) |
Delete reallyHasAlpha() from SkCodec
TBR=reed
BUG=skia:3582
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1557403002
Review URL: https://codereview.chromium.org/1557403002
Diffstat (limited to 'include/codec/SkCodec.h')
-rw-r--r-- | include/codec/SkCodec.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/include/codec/SkCodec.h b/include/codec/SkCodec.h index d06c2c3399..597ebd039e 100644 --- a/include/codec/SkCodec.h +++ b/include/codec/SkCodec.h @@ -278,18 +278,6 @@ public: Result getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes); /** - * Some images may initially report that they have alpha due to the format - * of the encoded data, but then never use any colors which have alpha - * less than 100%. This function can be called *after* decoding to - * determine if such an image truly had alpha. Calling it before decoding - * is undefined. - * FIXME: see skbug.com/3582. - */ - bool reallyHasAlpha() const { - return kOpaque_SkAlphaType != this->getInfo().alphaType() && this->onReallyHasAlpha(); - } - - /** * The remaining functions revolve around decoding scanlines. */ @@ -487,16 +475,6 @@ protected: } /** - * This is only called if the image indicates that it is not opaque. - * By default we will assume that the image is in fact non-opaque. - * Subclasses may override this function if they intend to verify - * that the image actually has alpha. - */ - virtual bool onReallyHasAlpha() const { - return true; - } - - /** * If the stream was previously read, attempt to rewind. * * If the stream needed to be rewound, call onRewind. |