Chromium Code Reviews| Index: src/core/SkMipMap.h |
| diff --git a/src/core/SkMipMap.h b/src/core/SkMipMap.h |
| index bc6d154939a44c58cd4f0d3b8aa625f18ccfc5b8..6b2c6c54d5b944f802a03b547017199c3d1ceb25 100644 |
| --- a/src/core/SkMipMap.h |
| +++ b/src/core/SkMipMap.h |
| @@ -29,6 +29,8 @@ public: |
| }; |
| bool extractLevel(SkScalar scale, Level*) const; |
| + int countLevels() const; |
| + void getLevel(int index, Level*) const; |
| protected: |
| void onDataChange(void* oldData, void* newData) override { |
| @@ -48,4 +50,8 @@ private: |
| typedef SkCachedData INHERITED; |
| }; |
| +// This function lets you determine how many levels a mipmap will have without |
| +// creating that mipmap. |
| +int SkGetMipMapLevelCount(int baseWidth, int baseHeight); |
|
reed1
2016/01/26 14:25:55
This should be a static method on SkMipMap..
int
cblume
2016/01/26 17:16:53
Done.
|
| + |
| #endif |