move legacy mipmap apis to private, save one that is currently called by chrome. It will go soon...

git-svn-id: http://skia.googlecode.com/svn/trunk@9782 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2013-06-26 21:09:37 +00:00
parent 371add80f5
commit 2c31a4678d

View File

@ -529,15 +529,10 @@ public:
*/
bool canCopyTo(Config newConfig) const;
bool hasMipMap() const;
/**
* DEPRECATED -- will be replaced with API on SkPaint
*/
void buildMipMap(bool forceRebuild = false);
void freeMipMap();
/** Given scale factors sx, sy, determine the miplevel available in the
bitmap, and return it (this is the amount to shift matrix iterators
by). If dst is not null, it is set to the correct level.
*/
int extractMipLevel(SkBitmap* dst, SkFixed sx, SkFixed sy);
#ifdef SK_BUILD_FOR_ANDROID
bool hasHardwareMipMap() const {
@ -687,6 +682,16 @@ private:
void updatePixelsFromRef() const;
static SkFixed ComputeMipLevel(SkFixed sx, SkFixed dy);
/** Given scale factors sx, sy, determine the miplevel available in the
bitmap, and return it (this is the amount to shift matrix iterators
by). If dst is not null, it is set to the correct level.
*/
int extractMipLevel(SkBitmap* dst, SkFixed sx, SkFixed sy);
bool hasMipMap() const;
void freeMipMap();
friend class SkBitmapProcState;
};
class SkAutoLockPixels : public SkNoncopyable {