aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/codec/SkCodec.h
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2016-01-11 07:23:23 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-11 07:23:23 -0800
commita4970dc973459d2607ce80623452bf8470adf6f1 (patch)
treedf503260bfaa7d0a736daa93c727a03d0802adc3 /include/codec/SkCodec.h
parentb512aaa5c808bcb1336c147682657882ee54e652 (diff)
Delete reallyHasAlpha() from SkCodec
Diffstat (limited to 'include/codec/SkCodec.h')
-rw-r--r--include/codec/SkCodec.h22
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.