diff options
author | Romain Guy <romainguy@google.com> | 2010-08-19 14:46:14 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2010-08-19 14:46:14 -0700 |
commit | 99d118f65a9d99c610396ea78b27faadb8d0b9cd (patch) | |
tree | e624b0712578992ba718ae5b57efc7b1ed0a3835 /include | |
parent | 9ffc4c107d443e6e115dadd1f8315cf28672207b (diff) | |
download | external_skia-99d118f65a9d99c610396ea78b27faadb8d0b9cd.zip external_skia-99d118f65a9d99c610396ea78b27faadb8d0b9cd.tar.gz external_skia-99d118f65a9d99c610396ea78b27faadb8d0b9cd.tar.bz2 |
Add an API to correctly copy the isOpaque flage of an ImageRef to Bitmap.
Change-Id: I4aef8381bb6f722c0630ddc15a32a0ef07041613
Diffstat (limited to 'include')
-rw-r--r-- | include/images/SkImageRef.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/images/SkImageRef.h b/include/images/SkImageRef.h index 9c9896f..8672b25 100644 --- a/include/images/SkImageRef.h +++ b/include/images/SkImageRef.h @@ -57,6 +57,12 @@ public: */ bool getInfo(SkBitmap* bm); + /** Return true if the image can be decoded and is opaque. Calling this + method will decode and set the pixels in the specified bitmap and + set the opaque flag. + */ + bool isOpaque(SkBitmap* bm); + SkImageDecoderFactory* getDecoderFactory() const { return fFactory; } // returns the factory parameter SkImageDecoderFactory* setDecoderFactory(SkImageDecoderFactory*); |