diff options
author | Romain Guy <romainguy@google.com> | 2012-10-16 19:12:46 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-10-16 19:12:46 -0700 |
commit | f17ec8a5508a16f99566c65bfebf634319c88196 (patch) | |
tree | a645510f9bdf95d6ec6b3f948281096b44cd1b9c | |
parent | de3bba1bed0b34e1ac2255045ed1fa141889049d (diff) | |
parent | 7cd90d4eecdba0f40a36945749d40df95d6d641b (diff) | |
download | skia-f17ec8a5508a16f99566c65bfebf634319c88196.tar.gz |
am 7cd90d4e: Add Android specific API Bug #7353771
* commit '7cd90d4eecdba0f40a36945749d40df95d6d641b':
Add Android specific API Bug #7353771
-rw-r--r-- | include/core/SkBitmap.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h index 57b80e5f82..2d5fc41229 100644 --- a/include/core/SkBitmap.h +++ b/include/core/SkBitmap.h @@ -513,6 +513,16 @@ public: */ int extractMipLevel(SkBitmap* dst, SkFixed sx, SkFixed sy); +#ifdef SK_BUILD_FOR_ANDROID + bool hasHardwareMipMap() const { + return fHasHardwareMipMap; + } + + void setHasHardwareMipMap(bool hasHardwareMipMap) { + fHasHardwareMipMap = hasHardwareMipMap; + } +#endif + bool extractAlpha(SkBitmap* dst) const { return this->extractAlpha(dst, NULL, NULL, NULL); } @@ -614,6 +624,10 @@ private: uint8_t fFlags; uint8_t fBytesPerPixel; // based on config +#ifdef SK_BUILD_FOR_ANDROID + bool fHasHardwareMipMap; +#endif + /* Internal computations for safe size. */ static Sk64 ComputeSafeSize64(Config config, |