| Index: src/core/SkMipMap.h
|
| diff --git a/src/core/SkMipMap.h b/src/core/SkMipMap.h
|
| index 36c17ba91e3639c8e508a32bd764db12146d0f84..9d5e41240775594f96cf89000852ff9a3bc5445e 100644
|
| --- a/src/core/SkMipMap.h
|
| +++ b/src/core/SkMipMap.h
|
| @@ -10,11 +10,9 @@
|
|
|
| #include "SkCachedData.h"
|
| #include "SkScalar.h"
|
| +#include "SkMipMapLevel.h"
|
|
|
| class SkBitmap;
|
| -class SkDiscardableMemory;
|
| -
|
| -typedef SkDiscardableMemory* (*SkDiscardableFactoryProc)(size_t bytes);
|
|
|
| class SkMipMap : public SkCachedData {
|
| public:
|
| @@ -28,6 +26,11 @@ public:
|
| };
|
|
|
| bool extractLevel(SkScalar scale, Level*) const;
|
| + int getLevelsCount() const;
|
| + // getLevel() is 1-indexed because the SkMipMap contains the generated
|
| + // mipmaps, which does not include the base level (which is normally
|
| + // mipmap level 0). SkMipMap contains mipmap levels 1-x, not 0-x.
|
| + bool getLevel(int levelIndex, Level* levelPtr) const;
|
|
|
| protected:
|
| void onDataChange(void* oldData, void* newData) override {
|
|
|