Index: src/core/SkMipMap.h |
diff --git a/src/core/SkMipMap.h b/src/core/SkMipMap.h |
index 36c17ba91e3639c8e508a32bd764db12146d0f84..b3e958d63c6f7e921ed7ee758283cc6d2e596fd9 100644 |
--- a/src/core/SkMipMap.h |
+++ b/src/core/SkMipMap.h |
@@ -9,6 +9,7 @@ |
#define SkMipMap_DEFINED |
#include "SkCachedData.h" |
+#include "SkPixmap.h" |
#include "SkScalar.h" |
class SkBitmap; |
@@ -18,12 +19,11 @@ typedef SkDiscardableMemory* (*SkDiscardableFactoryProc)(size_t bytes); |
class SkMipMap : public SkCachedData { |
public: |
+ static SkMipMap* Build(const SkPixmap& src, SkDiscardableFactoryProc); |
static SkMipMap* Build(const SkBitmap& src, SkDiscardableFactoryProc); |
struct Level { |
- void* fPixels; |
- uint32_t fRowBytes; |
- uint32_t fWidth, fHeight; |
+ SkPixmap fPixmap; |
float fScale; // < 1.0 |
}; |