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:
parent
371add80f5
commit
2c31a4678d
@ -529,15 +529,10 @@ public:
|
||||
*/
|
||||
bool canCopyTo(Config newConfig) const;
|
||||
|
||||
bool hasMipMap() const;
|
||||
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.
|
||||
/**
|
||||
* DEPRECATED -- will be replaced with API on SkPaint
|
||||
*/
|
||||
int extractMipLevel(SkBitmap* dst, SkFixed sx, SkFixed sy);
|
||||
void buildMipMap(bool forceRebuild = false);
|
||||
|
||||
#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 {
|
||||
|
Loading…
Reference in New Issue
Block a user