Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3357)

Unified Diff: include/core/SkBitmap.h

Issue 12699002: Upstream changes from Android. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | include/core/SkPaint.h » ('j') | include/core/SkRRect.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkBitmap.h
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h
index 9347bd93d8e3f529b908cc3d035c3bbbf89a1823..6c0abad24582649f5074f97728401bedf772c169 100644
--- a/include/core/SkBitmap.h
+++ b/include/core/SkBitmap.h
@@ -542,6 +542,16 @@ public:
*/
int extractMipLevel(SkBitmap* dst, SkFixed sx, SkFixed sy);
+#ifdef SK_BUILD_FOR_ANDROID
+ bool hasHardwareMipMap() const {
+ return fHasHardwareMipMap;
+ }
+
reed1 2013/03/08 16:00:39 A comment about what the heck this is would be nic
djsollen 2013/03/08 16:25:39 Done.
+ void setHasHardwareMipMap(bool hasHardwareMipMap) {
+ fHasHardwareMipMap = hasHardwareMipMap;
+ }
+#endif
+
bool extractAlpha(SkBitmap* dst) const {
return this->extractAlpha(dst, NULL, NULL, NULL);
}
@@ -652,6 +662,10 @@ private:
uint8_t fFlags;
uint8_t fBytesPerPixel; // based on config
+#ifdef SK_BUILD_FOR_ANDROID
reed1 2013/03/08 16:00:39 Can this just be an added bit to Flags, so we don'
djsollen 2013/03/08 16:25:39 Done.
+ bool fHasHardwareMipMap;
+#endif
+
/* Internal computations for safe size.
*/
static Sk64 ComputeSafeSize64(Config config,
« no previous file with comments | « no previous file | include/core/SkPaint.h » ('j') | include/core/SkRRect.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698