aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/core/SkBitmap.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h
index 57b80e5..2d5fc41 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,